mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-05 21:03:14 +03:00
Update sanic example
This commit is contained in:
parent
67b8e122bf
commit
4762fcecd3
|
@ -7,7 +7,7 @@ from . import handlers
|
||||||
|
|
||||||
|
|
||||||
def create_app() -> Sanic:
|
def create_app() -> Sanic:
|
||||||
"""Create and return aiohttp application."""
|
"""Create and return Sanic application."""
|
||||||
container = Container()
|
container = Container()
|
||||||
container.config.from_yaml('config.yml')
|
container.config.from_yaml('config.yml')
|
||||||
container.config.giphy.api_key.from_env('GIPHY_API_KEY')
|
container.config.giphy.api_key.from_env('GIPHY_API_KEY')
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
dependency-injector
|
dependency-injector
|
||||||
sanic
|
sanic
|
||||||
|
aiohttp
|
||||||
pyyaml
|
pyyaml
|
||||||
pytest-sanic
|
pytest-sanic
|
||||||
pytest-cov
|
pytest-cov
|
||||||
|
|
Loading…
Reference in New Issue
Block a user