Skip to main content

services-registry

python version

A registry to manage services in a Python application.

Description

  • Registry keeps track of all initialized services and returns corresponding services handlers to caller.

  • Registry initializes a service if it has not been initialized before being requested.

  • Registry makes sure that at any point of time, at most one service registry handler exists.

Usage

  1. Services must inherit from the services_registry.services_registry.Service class. For example:

from services_registry.services_registry import Service


class MyService(Service):
    pass
  1. Services registry can be used in code in thr following way:

from services_registry.services_registry import services_registry


my_service = services_registry.get_service(MyService)

License

Distributed under the terms of the MIT license.

Metadata

Release files for services-registry 0.0.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 services-registry 0.0.1
File Size Uploaded
services-registry-0.0.1.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for services-registry 0.0.1
File Interpreter ABI Platform
services_registry-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / services-registry-0.0.1.tar.gz

Download URL services-registry-0.0.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
917ff37bc62ac06ff5b8a5bd4c3ffe35da7d538bb6d36078fb56195ec3a69f75
BLAKE2b-256 checksum
How to use checksums
1dee989b8dc2cdfd3ab103d4153e40b1582ed44a27728679f73ffe0d0d33f5b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.9

Release files / services_registry-0.0.1-py3-none-any.whl

Download URL services_registry-0.0.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33025dc0c7e868e5536c17239b88cd07db4ae2ca5900fe80b002b6e7b86e8a26
BLAKE2b-256 checksum
How to use checksums
811d91843ee709d5e421ea4c6c57ffe7003c4cbb4e71bcf461492843f30e6468
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.9

Release history Release notifications | RSS feed

This release

0.0.1 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