Skip to main content

My own very simple python service locator

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bbibbi-0.1.4.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bbibbi-0.1.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file bbibbi-0.1.4.tar.gz.

File metadata

  • Download URL: bbibbi-0.1.4.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.8 Darwin/22.1.0

File hashes

Hashes for bbibbi-0.1.4.tar.gz
Algorithm Hash digest
SHA256 06aca26bcbaa46c45631290b628512891dd1f0dd99e2a50d18fcbf1246fefae5
MD5 0600e7fbc90146d920292f9476601054
BLAKE2b-256 b8d0839513b39a00f80566cf004f906c4ca60d0477412c63f65c583a7b3092cf

See more details on using hashes here.

File details

Details for the file bbibbi-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: bbibbi-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.8 Darwin/22.1.0

File hashes

Hashes for bbibbi-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ada51ac66a992e6e302aab9045115bd914058e89a2f800f1492fc81ab94799ce
MD5 2ecc0327e6aa4437a719781306ea46df
BLAKE2b-256 ffa3addef9aa392b1c4ccbd027df80454d81f1178208ff54ef145fbe83fa1a3a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page