https://github.com/nitor-infotech-oss/python-registry-service
Registry service provides efficient way to manage data variables, class instances and service instances in multiple files
https://github.com/nitor-infotech-oss/python-registry-service
python registry
Last synced: 7 months ago
JSON representation
Registry service provides efficient way to manage data variables, class instances and service instances in multiple files
- Host: GitHub
- URL: https://github.com/nitor-infotech-oss/python-registry-service
- Owner: nitor-infotech-oss
- Created: 2021-07-27T15:25:18.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-27T15:52:37.000Z (about 4 years ago)
- Last Synced: 2025-02-01T09:22:23.499Z (8 months ago)
- Topics: python, registry
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Registery Service
Registry service provides efficient way to manage data variables, class instances and service instances in multiple filesRegistry service helps you create singelton object in python that you can share between files.
This also provides elegant alternative of using Global variables for python.NOTE: It is discouraged to use it as DB or store huge data. It is ideal to use it as store for variable, service instances and class instances, so that they can be access in multiple files.
# Requirements
1. Python 2.7, 3.x
2. Works with any operating system.
3. No dependency on any other package.# How to use
1. Import the Class from the package like `from registery_service import RegistryService`
2. Use class methods like
```
RegistryService().get_key('a_key')
RegistryService().add_key('a_key', 'a_key_value')
RegistryService().replace_key('a_key','a_key_value1')
RegistryService().exists('a_key')
RegistryService().remove_key('a_key')
RegistryService().remove_all_key()
```