Very simple dependency injector using a yaml file
Project description
Dependency Injector
Description
Very simple dependency injector for constructing application from a yaml file.
Installation
This project has an automated deployment to pypi, so only is needed to use pip command:
>> pip install dinjector
The injector needs a ConfigService class to get all application parameters. There is an implementation of it in project config-srv
. The dependency is optional and you can inject anyone which comply the ConfigService interface.
Usage
Once you have installed it, you'll have access to a package called di
wher you only have to import DependencyInjector
class.
The use of this library is by inheritance. If you want to create a Value Object you only have to inherit from a Value class. If you want to have an aggregate, inherit from a Aggregate class, if a service from a Service class.
Support
Send any suggestion to sruiz@indoorclima.com or salvador.ruiz.r@gmail.com. Any ideas or support is well recieved.
Roadmap
- Increment versioning when pushing
- Integrate with gitlab continuous integration to publish to pypi as library
- Improve coverage rate to > 96%
- Improve usage documentation with sphinx
- Upload to readthedocs
Contributing
State if you are open to contributions and what your requirements are for accepting them.
License
This is under LGPL lincense. You can use and modify this library. See details in [[LICENCE.txt]]
Project status
It is used in projects developed currently by the company IndoorClima.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for dinjector-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0ae1bc3497fe18db2e75e6b6ea1a1ba0d6b2f442b340db5e49fffe45a84faa9 |
|
MD5 | 97421e97826292a1667fde5a3e5c2313 |
|
BLAKE2b-256 | 6e01ff06402f9102acc75a5d5105a855c0b042ef054ca2685cfc13d6e4c92c7b |