Skip to main content
Injectables
=======================

This is a super lightweight library for creating dependency injectables
::
@injectable
def how_are_you():
return "how_are_you?"


@injectable
def im_fine(how_are_you):
print(how_are_you)
return 'I am fine'


@injectable
def conversation(im_fine):
print (im_fine)
print ('good to hear')


# run function as injectable, which resolves and injects all dependencies first
conversation()
# how are you?
# I am fine
# good to hear

# override injection flow and call normally
conversation(override=True, im_fine="hey!!!!")
# hey!!!!
# good to hear

Metadata

Release files for injectables 0.0.6

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

Source distribution (sdist)

Source distribution for injectables 0.0.6
File Size Uploaded Provenance Actions
injectables-0.0.6.tar.gz 2.1 kB Without provenance Details for injectables-0.0.6.tar.gz

Release files / injectables-0.0.6.tar.gz

Download URL injectables-0.0.6.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
dc55fb2a2d998b0ee16f7c2c2352d18adf6c0dac218f0d2467e5558d0a9f7cf2
BLAKE2b-256 checksum
How to use checksums
36f48c1badea6f3a85228904fc99de760dc8d745a6de0868f2391fe97868ca45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for injectables 0.0.6

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