Skip to main content

WePositive DI

WePositive DI is a small dependency injection layer on top of dependency-injector with FastAPI-style dependency declarations that can be used in any Python application.

It has two parts:

Part Purpose
Dependency injection Register sync, async, factory, singleton, and context manager providers, then inject them with Depends[...].
Context management Store typed Pydantic context objects in an async-safe storage backend and expose the storage through DI.

Why use it?

  • Use the same dependency patterns in scripts, workers, web apps, and tests.
  • Keep dependencies explicit without passing every object through every call.
  • Manage resources with context manager providers that clean up after each call.
  • Swap implementations with provider overrides for tests or deployment-specific storage.

Start here

Read Getting Started for a short working example, then use Providers for the full provider matrix and API Reference for exact signatures.

Metadata

Release files for wepositive-di 0.2.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 wepositive-di 0.2.0
File Size Uploaded Provenance Actions
wepositive_di-0.2.0.tar.gz 10.0 kB Without provenance Details for wepositive_di-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wepositive-di 0.2.0
File Interpreter ABI Platform Actions
wepositive_di-0.2.0-py3-none-any.whl Python 3 none any Details for wepositive_di-0.2.0-py3-none-any.whl

Total release size: 22.0 kB

Release files / wepositive_di-0.2.0.tar.gz

Download URL wepositive_di-0.2.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
43805cf513ca7c12ea080ae86b306ac3188e81e00d043f5b1f878ac1b4b490d5
BLAKE2b-256 checksum
How to use checksums
915a9101af1cc32bfc1dc9fd35c22e74e40a5ddc48fed089552971263e0b0ea1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / wepositive_di-0.2.0-py3-none-any.whl

Download URL wepositive_di-0.2.0-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8b6ddbd21dec4612b741e299297048dd57e46fad5852fcb8d7d7a060e93db4f
BLAKE2b-256 checksum
How to use checksums
a26186fd99957b2e9e59c2e8e614e7ec1626ceb85f6354df061587ada81b7d8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for wepositive-di 0.2.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