Skip to main content

Symbiont

Code style: black

Tiny module-service and dependency injection framework

Installation

pip install symbiont

Usage

from symbiont import Module, Injectable, DependencyInjector


class BarService(Injectable):
    x: int = 42


class FooService(Injectable):
    bar: BarService


class ExampleModule(
    Module,
    providers=[BarService, FooService]
):
    foo: FooService


class RootModule(
    Module,
    imports=[ExampleModule]
):
    foo: FooService


injector = DependencyInjector()
root = injector.initialize(RootModule)


@injector.inject
def example_method(a, foo: FooService):
    ...

Metadata

Release files for symbiont 0.1.1

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

Source distribution (sdist)

Source distribution for symbiont 0.1.1
File Size Uploaded Provenance Actions
symbiont-0.1.1.tar.gz 2.9 kB Without provenance Details for symbiont-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 6.6 kB

Release files / symbiont-0.1.1.tar.gz

Download URL symbiont-0.1.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
cadad063d0b9b71e2b06058168ba138e55e215b588e2a6c9c3fad35be0c065a0
BLAKE2b-256 checksum
How to use checksums
aaee8a679beb598b6e10f48009ff0979fb2f20151c7f75026057b5f842d94764
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.1 CPython/3.10.4 Darwin/22.6.0

Release files / symbiont-0.1.1-py3-none-any.whl

Download URL symbiont-0.1.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b79de09f8e69b61d50516067bc7a4c9b1a04dca5f178bc4a3c7f638861c85f0
BLAKE2b-256 checksum
How to use checksums
0ac435e3a76e239c5c901e0f584caaf85b89da8438af99ea3fdf854ab984e51f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.1 CPython/3.10.4 Darwin/22.6.0

Security for symbiont 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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