Skip to content

Commit 6d0f892

Browse files
committed
Rename Objects to Dependency Injector
1 parent c937403 commit 6d0f892

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+310
-310
lines changed

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[run]
2-
include = objects/*
2+
include = dependency_injector/*
33
omit = tests/*

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ modification, are permitted provided that the following conditions are met:
1111
this list of conditions and the following disclaimer in the documentation
1212
and/or other materials provided with the distribution.
1313

14-
* Neither the name of Objects nor the names of its
14+
* Neither the name of "Dependency Injector" nor the names of its
1515
contributors may be used to endorse or promote products derived from
1616
this software without specific prior written permission.
1717

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include objects/*
1+
include dependency_injector/*
22
include README.rst
33
include LICENSE
44
include VERSION

README.rst

Lines changed: 53 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,59 @@
1-
Objects
2-
=======
1+
Dependency Injector
2+
===================
33

44
Dependency 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.
3333
It was designed to be unified, developer's friendly tool for managing any kind
3434
of 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

4546
Installation
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

5253
Documentation
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
138139
GitHub:
139140

140-
https://github.com/rmk135/objects
141+
https://github.com/rmk135/dependency_injector
141142

142143

143144
Feedback
144145
--------
145146

146147
Feel 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

151152
Your 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

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.7.8
1+
0.8.0
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
"""Objects.
2-
3-
Dependency management tool for Python projects.
4-
"""
1+
"""Dependency injector."""
52

63
from .catalog import AbstractCatalog
74
from .catalog import override

0 commit comments

Comments
 (0)