Skip to main content

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.

Metadata

Release files for dinjector 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dinjector 2.1.0
File Size Uploaded Provenance Actions
dinjector-2.1.0.tar.gz 5.6 kB Without provenance Details for dinjector-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dinjector 2.1.0
File Interpreter ABI Platform Actions
dinjector-2.1.0-py3-none-any.whl Python 3 none any Details for dinjector-2.1.0-py3-none-any.whl

Total release size: 11.5 kB

Release files / dinjector-2.1.0.tar.gz

Download URL dinjector-2.1.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6712c87ab52d73f4831d58a92447d1aa268b609efa321ce6973e36e0914313e5
BLAKE2b-256 checksum
How to use checksums
63f7022eb30703998dc84764bbe5294cd7885ed9ca29033cba1d92433b159de4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.7 Linux/6.11.7-arch1-1

Release files / dinjector-2.1.0-py3-none-any.whl

Download URL dinjector-2.1.0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb232c920eb9f8fffc75f9f7430ef6cc6b7bc9f5d9f59ca0630633cb6af249b7
BLAKE2b-256 checksum
How to use checksums
a1f29b14dab9be56450cb6384e5359e30ad1b681e9f90ebd5fe6944c32682d20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.7 Linux/6.11.7-arch1-1

Security for dinjector 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page