1- Objects
2- =======
1+ Dependency Injector
2+ ===================
33
44Dependency injection framework for Python projects.
55
6- +---------------------------------------+-------------------------------------------------------------------+
7- | *PyPi * | .. image:: https://img.shields.io/pypi/v/Objects .svg |
8- | | :target: https://pypi.python.org/pypi/Objects / |
9- | | :alt: Latest Version |
10- | | .. image:: https://img.shields.io/pypi/dm/Objects .svg |
11- | | :target: https://pypi.python.org/pypi/Objects / |
12- | | :alt: Downloads |
13- | | .. image:: https://img.shields.io/pypi/l/Objects .svg |
14- | | :target: https://pypi.python.org/pypi/Objects / |
15- | | :alt: License |
16- +---------------------------------------+-------------------------------------------------------------------+
17- | *Python versions and implementations * | .. image:: https://img.shields.io/pypi/pyversions/Objects .svg |
18- | | :target: https://pypi.python.org/pypi/Objects / |
19- | | :alt: Supported Python versions |
20- | | .. image:: https://img.shields.io/pypi/implementation/Objects .svg |
21- | | :target: https://pypi.python.org/pypi/Objects / |
22- | | :alt: Supported Python implementations |
23- +---------------------------------------+-------------------------------------------------------------------+
24- | *Builds and tests coverage * | .. image:: https://travis-ci.org/rmk135/objects .svg?branch=master |
25- | | :target: https://travis-ci.org/rmk135/objects |
26- | | :alt: Build Status |
27- | | .. image:: https://coveralls.io/repos/rmk135/objects /badge.svg |
28- | | :target: https://coveralls.io/r/rmk135/objects |
29- | | :alt: Coverage Status |
30- +---------------------------------------+-------------------------------------------------------------------+
31-
32- *Objects * is a dependency injection framework for Python projects.
6+ +---------------------------------------+------------------------------------------------------------------------------- +
7+ | *PyPi * | .. image:: https://img.shields.io/pypi/v/dependency_injector .svg |
8+ | | :target: https://pypi.python.org/pypi/dependency_injector / |
9+ | | :alt: Latest Version |
10+ | | .. image:: https://img.shields.io/pypi/dm/dependency_injector .svg |
11+ | | :target: https://pypi.python.org/pypi/dependency_injector / |
12+ | | :alt: Downloads |
13+ | | .. image:: https://img.shields.io/pypi/l/dependency_injector .svg |
14+ | | :target: https://pypi.python.org/pypi/dependency_injector / |
15+ | | :alt: License |
16+ +---------------------------------------+------------------------------------------------------------------------------- +
17+ | *Python versions and implementations * | .. image:: https://img.shields.io/pypi/pyversions/dependency_injector .svg |
18+ | | :target: https://pypi.python.org/pypi/dependency_injector / |
19+ | | :alt: Supported Python versions |
20+ | | .. image:: https://img.shields.io/pypi/implementation/dependency_injector .svg |
21+ | | :target: https://pypi.python.org/pypi/dependency_injector / |
22+ | | :alt: Supported Python implementations |
23+ +---------------------------------------+------------------------------------------------------------------------------- +
24+ | *Builds and tests coverage * | .. image:: https://travis-ci.org/rmk135/dependency_injector .svg?branch=master |
25+ | | :target: https://travis-ci.org/rmk135/dependency_injector |
26+ | | :alt: Build Status |
27+ | | .. image:: https://coveralls.io/repos/rmk135/dependency_injector /badge.svg |
28+ | | :target: https://coveralls.io/r/rmk135/dependency_injector |
29+ | | :alt: Coverage Status |
30+ +---------------------------------------+------------------------------------------------------------------------------- +
31+
32+ *Dependency Injector * is a dependency injection framework for Python projects.
3333It was designed to be unified, developer's friendly tool for managing any kind
3434of Python objects and their dependencies in formal, pretty way.
3535
36- Below is a list of some key features and points of *Objects * framework:
36+ Below is a list of some key features and points of *Dependency Injector *
37+ framework:
3738
3839- Easy, smart, pythonic style.
3940- Obvious, clear structure.
4041- Memory efficiency.
4142- Semantic versioning.
4243
43- Main idea of *Objects * is to keep dependencies under control.
44+ Main idea of *Dependency Injector * is to keep dependencies under control.
4445
4546Installation
4647------------
4748
48- *Objects * library is available on PyPi _::
49+ *Dependency Injector * library is available on PyPi _::
4950
50- pip install objects
51+ pip install dependency_injector
5152
5253Documentation
5354-------------
5455
55- *Objects * documentation is hosted on ReadTheDocs:
56+ *Dependency Injector * documentation is hosted on ReadTheDocs:
5657
5758- `Stable version `_
5859- `Latest version `_
@@ -62,16 +63,16 @@ Examples
6263
6364.. code-block :: python
6465
65- """ Concept example of `Objects `."""
66+ """ Concept example of `Dependency Injector `."""
6667
67- from objects .catalog import AbstractCatalog
68+ from dependency_injector .catalog import AbstractCatalog
6869
69- from objects .providers import Factory
70- from objects .providers import Singleton
70+ from dependency_injector .providers import Factory
71+ from dependency_injector .providers import Singleton
7172
72- from objects .injections import KwArg
73- from objects .injections import Attribute
74- from objects .injections import inject
73+ from dependency_injector .injections import KwArg
74+ from dependency_injector .injections import Attribute
75+ from dependency_injector .injections import inject
7576
7677 import sqlite3
7778
@@ -97,21 +98,21 @@ Examples
9798
9899 class Catalog (AbstractCatalog ):
99100
100- """ Catalog of objects providers."""
101+ """ Catalog of dependency_injector providers."""
101102
102103 database = Singleton(sqlite3.Connection,
103104 KwArg(' database' , ' :memory:' ),
104105 Attribute(' row_factory' , sqlite3.Row))
105- """ :type: (objects .Provider) -> sqlite3.Connection"""
106+ """ :type: (dependency_injector .Provider) -> sqlite3.Connection"""
106107
107108 object_a_factory = Factory(ObjectA,
108109 KwArg(' db' , database))
109- """ :type: (objects .Provider) -> ObjectA"""
110+ """ :type: (dependency_injector .Provider) -> ObjectA"""
110111
111112 object_b_factory = Factory(ObjectB,
112113 KwArg(' a' , object_a_factory),
113114 KwArg(' db' , database))
114- """ :type: (objects .Provider) -> ObjectB"""
115+ """ :type: (dependency_injector .Provider) -> ObjectB"""
115116
116117
117118 # Catalog static provides.
@@ -134,26 +135,26 @@ Examples
134135
135136 example()
136137
137- You can get more *Objects * examples in ``/examples `` directory on
138+ You can get more *Dependency Injector * examples in ``/examples `` directory on
138139GitHub:
139140
140- https://github.com/rmk135/objects
141+ https://github.com/rmk135/dependency_injector
141142
142143
143144Feedback
144145--------
145146
146147Feel free to post questions, bugs, feature requests, proposals etc. on
147- *Objects * GitHub Issues:
148+ *Dependency Injector * GitHub Issues:
148149
149- https://github.com/rmk135/objects /issues
150+ https://github.com/rmk135/dependency_injector /issues
150151
151152Your feedback is quite important!
152153
153154
154- .. _PyPi : https://pypi.python.org/pypi/Objects
155- .. _Stable version : http://objects .readthedocs.org/en/stable/
156- .. _Latest version : http://objects .readthedocs.org/en/latest/
155+ .. _PyPi : https://pypi.python.org/pypi/dependency_injector
156+ .. _Stable version : http://dependency_injector .readthedocs.org/en/stable/
157+ .. _Latest version : http://dependency_injector .readthedocs.org/en/latest/
157158.. _SLOC : http://en.wikipedia.org/wiki/Source_lines_of_code
158159.. _SOLID : http://en.wikipedia.org/wiki/SOLID_%28object-oriented_design%29
159160.. _IoC : http://en.wikipedia.org/wiki/Inversion_of_control
0 commit comments