Skip to main content

A registry for managing services in Python applications

Project description

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.

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

services-registry-0.0.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

services_registry-0.0.1-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

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