Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Zuice: dependency injection for Python

Example

import zuice

class BlogPostLister(zuice.Base):
    _fetcher = zuice.dependency(BlogPostFetcher)

    def all(self):
        return ", ".join(post.name for post in self._fetcher.fetch_all())

bindings = zuice.Bindings()
bindings.bind(BlogPostFetcher).to_instance(blog_post_fetcher)

injector = zuice.Injector(bindings)
assert injector.get(BlogPostFetcher) is blog_post_fetcher
injector.get(BlogPostLister) # constructs BlogPostLister using the bound instance of BlogPostFetcher

Metadata

Release files for zuice 0.3.0-pre2

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

Source distribution (sdist)

Source distribution for zuice 0.3.0-pre2
File Size Uploaded Provenance
zuice-0.3.0-pre2.tar.gz 9.6 kB Without provenance Details

Release files / zuice-0.3.0-pre2.tar.gz

Download URL zuice-0.3.0-pre2.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e0bd692de6f515ca945ee17b510eee7d358a2bfaae67fbc5d817c5c2c03a0977
BLAKE2b-256 checksum
How to use checksums
fe790216c682140d9c39c88c0cf204bfa68beb2f8799259718bf155812014664
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for zuice 0.3.0-pre2

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