Skip to main content

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

dinjector-2.1.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dinjector-2.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file dinjector-2.1.0.tar.gz.

File metadata

  • Download URL: dinjector-2.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/6.11.7-arch1-1

File hashes

Hashes for dinjector-2.1.0.tar.gz
Algorithm Hash digest
SHA256 6712c87ab52d73f4831d58a92447d1aa268b609efa321ce6973e36e0914313e5
MD5 edf8c02d87473571b17da735cb84dd26
BLAKE2b-256 63f7022eb30703998dc84764bbe5294cd7885ed9ca29033cba1d92433b159de4

See more details on using hashes here.

File details

Details for the file dinjector-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: dinjector-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/6.11.7-arch1-1

File hashes

Hashes for dinjector-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb232c920eb9f8fffc75f9f7430ef6cc6b7bc9f5d9f59ca0630633cb6af249b7
MD5 4d61b72e0ded6dc856aff9a333b94d18
BLAKE2b-256 a1f29b14dab9be56450cb6384e5359e30ad1b681e9f90ebd5fe6944c32682d20

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page