Getting Started¶
Prerequisites¶
Python >= 3.6+ (for asyncio)
Running
redis-serverif you plan to use the async redis backend storage
Initializing¶
Since Infuse is an extension for Insanic, with your initialized Insanic application.
from insanic import Insanic
from infuse import Infuse
app = Insanic("example", version="0.1.0")
Infuse.init_app(app)
What init_app does is:
Loads all the necessary infuse configurations
Patches the
Serviceobject’s dispatch method to check for state before sending the request.Initializes the applications’ status on your storage of choice during
Insanicstart up.