Rename bundles example

This commit is contained in:
Roman Mogylatov 2017-12-21 22:06:00 +02:00
parent 6a64b6e297
commit 81718c5b6a
13 changed files with 16 additions and 7 deletions

View File

@ -0,0 +1,8 @@
Dependency Injector Bundles example
===================================
Instructions for running
.. code-block:: bash
python run.py

View File

@ -0,0 +1 @@
"""Bundles package."""

View File

@ -1,4 +1,4 @@
"""Photos package."""
"""Photos bundle."""
from core import containers
from core import providers
@ -8,7 +8,7 @@ from . import repositories
class Photos(containers.DeclarativeContainer):
"""Photos package container."""
"""Photos bundle container."""
database = providers.Dependency()
file_storage = providers.Dependency()

View File

@ -1,4 +1,4 @@
"""Users package."""
"""Users bundle."""
from core import containers
from core import providers
@ -8,7 +8,7 @@ from . import repositories
class Users(containers.DeclarativeContainer):
"""Users container."""
"""Users bundle container."""
database = providers.Dependency()

View File

@ -1,9 +1,9 @@
"""Example applications."""
"""Example application - Bundles."""
from core import containers, providers
from users import Users
from photos import Photos
from bundles.users import Users
from bundles.photos import Photos
class Core(containers.DeclarativeContainer):