Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fatelei/pyapollo
another apollo python client
https://github.com/fatelei/pyapollo
Last synced: about 1 month ago
JSON representation
another apollo python client
- Host: GitHub
- URL: https://github.com/fatelei/pyapollo
- Owner: fatelei
- License: apache-2.0
- Created: 2024-07-08T14:30:32.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-25T01:26:15.000Z (5 months ago)
- Last Synced: 2024-07-25T09:39:19.134Z (5 months ago)
- Language: Python
- Size: 29.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyapollo
another apollo python client## Usage
```python
from pyapollo.config import ConfigManager
apollo_host = 'http://localhost:8080'
app_id = 'SampleApp'
namespace = 'application'
config = ConfigManager(apollo_host=apollo_host, app_id=app_id, namespace=namespace)
bar = config.get_from_json("foo")
# if you want enable hot reload config
config.enable_hot_reload()
```pyapollo has a file cache, you can specific `file_cache_dir` to `ConfigManager`.