Skip to main content

It’s a simple service locator that I made for use.

Installation

pip install bbibbi

Usage

from bbibbi import container, Symbol

SERVICE_SYMBOL = Symbol("SomeService")

class Service:
    def ten(self) -> int:
        return 10

container.register(SERVICE_SYMBOL, Service())

service: Service = container.get(SERVICE_SYMBOL)
assert service.ten() == 10

Metadata

Release files for bbibbi 0.1.4

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

Source distribution (sdist)

Source distribution for bbibbi 0.1.4
File Size Uploaded
bbibbi-0.1.4.tar.gz 2.9 kB Details

Built distribution (wheel)

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

Total release size: 6.6 kB

Release files / bbibbi-0.1.4.tar.gz

Download URL bbibbi-0.1.4.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
06aca26bcbaa46c45631290b628512891dd1f0dd99e2a50d18fcbf1246fefae5
BLAKE2b-256 checksum
How to use checksums
b8d0839513b39a00f80566cf004f906c4ca60d0477412c63f65c583a7b3092cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.8.8 Darwin/22.1.0

Release files / bbibbi-0.1.4-py3-none-any.whl

Download URL bbibbi-0.1.4-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ada51ac66a992e6e302aab9045115bd914058e89a2f800f1492fc81ab94799ce
BLAKE2b-256 checksum
How to use checksums
ffa3addef9aa392b1c4ccbd027df80454d81f1178208ff54ef145fbe83fa1a3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.8.8 Darwin/22.1.0

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

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