A registry for managing services in Python applications
Project description
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
Services must inherit from the services_registry.services_registry.Service class. For example:
from services_registry.services_registry import Service
class MyService(Service):
pass
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file services-registry-0.0.1.tar.gz
.
File metadata
- Download URL: services-registry-0.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 917ff37bc62ac06ff5b8a5bd4c3ffe35da7d538bb6d36078fb56195ec3a69f75 |
|
MD5 | b08a2c351677a6c65446288941a66bde |
|
BLAKE2b-256 | 1dee989b8dc2cdfd3ab103d4153e40b1582ed44a27728679f73ffe0d0d33f5b1 |
File details
Details for the file services_registry-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: services_registry-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33025dc0c7e868e5536c17239b88cd07db4ae2ca5900fe80b002b6e7b86e8a26 |
|
MD5 | 7bafc6cdaeba2961c505890dc8e1900e |
|
BLAKE2b-256 | 811d91843ee709d5e421ea4c6c57ffe7003c4cbb4e71bcf461492843f30e6468 |