Lightweight Service Manager for Python projects
Project description
PySMan
Lightweight Service Manager for Python projects. Supports both autoloading and registering services
Installation
To install PySMan, use the following command:
pip install pysman
Usage
To autoload your services with PySMan, use it as follows:
from project import ServiceClassA, ServiceClassB
from pysman import ServiceManager
service_manager = ServiceManager()
service_manager.autoload_services([ServiceClassA, ServiceClassB])
To register a service with PySMan, use it as follows:
from project import ServiceClassA
from pysman import ServiceManager
service_manager = ServiceManager()
my_configuration = "config"
service_class = ServiceClassA(my_configuration)
service_manager.register_services([service_class])
For more information, see how it is used in tests.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pysman-0.2.0.tar.gz.
File metadata
- Download URL: pysman-0.2.0.tar.gz
- Upload date:
- Size: 39.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d00a1320c9075b443f7f2befdefc2195946e8d330a850269a4b714fd0768489f
|
|
| MD5 |
b3f743417605e8a6f028fa8484df8718
|
|
| BLAKE2b-256 |
11529329a4a5ce4e19d128f9e2a78121e847284a0c2704a15e3f7df8d03d97d0
|
File details
Details for the file pysman-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pysman-0.2.0-py3-none-any.whl
- Upload date:
- Size: 27.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6464e6f72029d753f3c96f3d3d9fbbbe8118b4eb0449dc6ca2861577b039ed0
|
|
| MD5 |
ab4d3f6b0081527a40d537d810256162
|
|
| BLAKE2b-256 |
bb115e7e9a4d8c181350fd0a18917edfa865bb1c8cc49bbe8b78ed8fe7ccaeda
|