Lib for developing web applications with sanic using python Object Oriented programming. This will help you to build large and scalable applications.
Because you've gotta go fast... But you've gotta grow smart!
from sanic_oop import SanicOOP
from app_setup import *
class AppSetup(SanicAppSetup):
def __init__(self, app):
super().__init__(app)
self.app_middlewares = middlewares
self.blueprints = blueprints
# ...
def run():
configuration = get_config_variables()
app = SanicOOP()
app.setup(AppSetup)
app.run(**configuration)
if __name__ == "__main__":
run()
- Check it out the sanic_boilerplate
- python:
- 3.5
- 3.6
- sanic==0.7.0