Skip to main content

Autoinject

Documentation Status

A clean, simple type-safe framework for using the Dependency Injection pattern in Python.

Example

from autoinject import injector, auto

@injector.injectable
class MyService:
    def __init__(self): ...
    

class MyClient:
  
  service: MyService
  
  @injector.construct
  def __init__(self):
    # self.service will be set before this function is called
    ...
  
@injector.inject
def my_client_function(service: MyService = auto()):
    # service will be set before this function is called
    ...

Read the full documentation for more details.

Metadata

Release files for autoinject 2.0.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 autoinject 2.0.0
File Size Uploaded Provenance Actions
autoinject-2.0.0.tar.gz 32.3 kB Without provenance Details for autoinject-2.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 59.3 kB

Release files / autoinject-2.0.0.tar.gz

Download URL autoinject-2.0.0.tar.gz
Size 32.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5c1bddcc4f51eb0d6df7b1291defe25b3a8e8b919bcbf28919793ff74ae6b57c
BLAKE2b-256 checksum
How to use checksums
2a5fff3e32828983da3c9bbbd904cd8e5eca0114800fc29e37cb0a63ef818734
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / autoinject-2.0.0-py3-none-any.whl

Download URL autoinject-2.0.0-py3-none-any.whl
Size 27.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
718e10f5dbddbbd7a361dc7687189e8be246a8b204e3ee80b752812e6aa39e2d
BLAKE2b-256 checksum
How to use checksums
9ff554e46a00264b656bab627f340ab16c3423b321ba5e8394b185f23c15a767
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for autoinject 2.0.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