├── .coveragerc ├── .editorconfig ├── .flake8 ├── .gitattributes ├── .gitignore ├── .travis.yml ├── CHANGELOG.rst ├── LICENSE.txt ├── MANIFEST.in ├── Makefile ├── README.rst ├── environment.yml ├── examples ├── blueprint_example.py ├── contextualize_example.py ├── contextualize_sqalchemy_example.py ├── example.py ├── example_stk.ini ├── my_blueprint.py ├── my_plugin.py ├── single_file.py ├── spf_config_example.py ├── view_example.py └── websocket_test.py ├── poetry.lock ├── pyproject.toml ├── sanic_plugin_toolkit ├── __init__.py ├── config.py ├── context.py ├── plugin.py ├── plugins │ ├── __init__.py │ └── contextualize.py └── realm.py └── tests ├── conftest.py ├── static ├── decode me.txt ├── python.png ├── test.file └── test.html ├── test_context.py ├── test_contextualize_plugin.py ├── test_plugin_asgi.py ├── test_plugin_exception.py ├── test_plugin_log.py ├── test_plugin_middleware.py ├── test_plugin_pickle.py ├── test_plugin_registration.py ├── test_plugin_route.py ├── test_plugin_signal_handlers.py ├── test_plugin_static.py ├── test_plugin_urlfor.py ├── test_plugin_websocket.py └── test_spf_singleton.py /.coveragerc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/.coveragerc -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/.editorconfig -------------------------------------------------------------------------------- /.flake8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/.flake8 -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/CHANGELOG.rst -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/Makefile -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/README.rst -------------------------------------------------------------------------------- /environment.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/environment.yml -------------------------------------------------------------------------------- /examples/blueprint_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/examples/blueprint_example.py -------------------------------------------------------------------------------- /examples/contextualize_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/examples/contextualize_example.py -------------------------------------------------------------------------------- /examples/contextualize_sqalchemy_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/examples/contextualize_sqalchemy_example.py -------------------------------------------------------------------------------- /examples/example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/examples/example.py -------------------------------------------------------------------------------- /examples/example_stk.ini: -------------------------------------------------------------------------------- 1 | [plugins] 2 | Contextualize 3 | 4 | 5 | -------------------------------------------------------------------------------- /examples/my_blueprint.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/examples/my_blueprint.py -------------------------------------------------------------------------------- /examples/my_plugin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/examples/my_plugin.py -------------------------------------------------------------------------------- /examples/single_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/examples/single_file.py -------------------------------------------------------------------------------- /examples/spf_config_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/examples/spf_config_example.py -------------------------------------------------------------------------------- /examples/view_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/examples/view_example.py -------------------------------------------------------------------------------- /examples/websocket_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/examples/websocket_test.py -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/poetry.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/pyproject.toml -------------------------------------------------------------------------------- /sanic_plugin_toolkit/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/sanic_plugin_toolkit/__init__.py -------------------------------------------------------------------------------- /sanic_plugin_toolkit/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/sanic_plugin_toolkit/config.py -------------------------------------------------------------------------------- /sanic_plugin_toolkit/context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/sanic_plugin_toolkit/context.py -------------------------------------------------------------------------------- /sanic_plugin_toolkit/plugin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/sanic_plugin_toolkit/plugin.py -------------------------------------------------------------------------------- /sanic_plugin_toolkit/plugins/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/sanic_plugin_toolkit/plugins/__init__.py -------------------------------------------------------------------------------- /sanic_plugin_toolkit/plugins/contextualize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/sanic_plugin_toolkit/plugins/contextualize.py -------------------------------------------------------------------------------- /sanic_plugin_toolkit/realm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/sanic_plugin_toolkit/realm.py -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/static/decode me.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/tests/static/decode me.txt -------------------------------------------------------------------------------- /tests/static/python.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/tests/static/python.png -------------------------------------------------------------------------------- /tests/static/test.file: -------------------------------------------------------------------------------- 1 | I am just a regular static file 2 | -------------------------------------------------------------------------------- /tests/static/test.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/tests/static/test.html -------------------------------------------------------------------------------- /tests/test_context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/tests/test_context.py -------------------------------------------------------------------------------- /tests/test_contextualize_plugin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/tests/test_contextualize_plugin.py -------------------------------------------------------------------------------- /tests/test_plugin_asgi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/tests/test_plugin_asgi.py -------------------------------------------------------------------------------- /tests/test_plugin_exception.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/tests/test_plugin_exception.py -------------------------------------------------------------------------------- /tests/test_plugin_log.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/tests/test_plugin_log.py -------------------------------------------------------------------------------- /tests/test_plugin_middleware.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/tests/test_plugin_middleware.py -------------------------------------------------------------------------------- /tests/test_plugin_pickle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/tests/test_plugin_pickle.py -------------------------------------------------------------------------------- /tests/test_plugin_registration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/tests/test_plugin_registration.py -------------------------------------------------------------------------------- /tests/test_plugin_route.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/tests/test_plugin_route.py -------------------------------------------------------------------------------- /tests/test_plugin_signal_handlers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/tests/test_plugin_signal_handlers.py -------------------------------------------------------------------------------- /tests/test_plugin_static.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/tests/test_plugin_static.py -------------------------------------------------------------------------------- /tests/test_plugin_urlfor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/tests/test_plugin_urlfor.py -------------------------------------------------------------------------------- /tests/test_plugin_websocket.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/tests/test_plugin_websocket.py -------------------------------------------------------------------------------- /tests/test_spf_singleton.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashleysommer/sanic-plugin-toolkit/HEAD/tests/test_spf_singleton.py --------------------------------------------------------------------------------