zx-config-manager
自定义配置组件,保持轻量级
环境变量说明(docker可以通过environment变量进行配置):
-
ZX_CONFIG_PORT:服务端口,默认值:5000
-
ZX_CONFIG_PATH:配置目录,默认值:${HOME}/.zx_config/config.json
-
ZX_SCHEDULE_ENABLE:是否开启定时renew,默认值:False, 设置为True时,zx-config-manager会定时执行配置renew操作,默认每60s执行一次
-
ZX_SCHEDULE_INTERVAL:定时renew间隔,默认值:60s
-
ZX_PROCESSES_COUNT:进程数,默认值:2
-
ZX_THREADS_COUNT: 线程数,默认值:4
-
ZX_DAEMONIZE:是否以守护进程运行,默认前台执行,如果配置该变量(日志路径),会以守护进程方式运行
pip安装
pip install zx-config-manager
启动说明
zx-config-app
停止说明
killall zx-config-manager
卸载说明
pip uninstall zx-config-manager
访问
根据自己定义地址和端口,访问zx-config-manager
http://localhost:5000/
源码编译说明
git clone https://github.com/zx-sdu/zx-config-manager.git
cd zx-config-manager
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python setup.py install #. python setup.py sdist bdist_wheel && pip install .
Release files for zx-config-manager 0.2.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zx-config-manager-0.2.8.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zx_config_manager-0.2.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.8 kB
Release files / zx-config-manager-0.2.8.tar.gz
| Download URL | zx-config-manager-0.2.8.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98bc57ae0835238d60c11376bbf5366acd2b286676cef92a0d547c3b8ee756be
|
|
BLAKE2b-256 checksum How to use checksums |
74d99a7ca1d58b7e45162a6281df9b7321e2876dcdaeec16f49e1d29172a9da6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.2
|
Release files / zx_config_manager-0.2.8-py3-none-any.whl
| Download URL | zx_config_manager-0.2.8-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9d2a74e11f6c89cab0422927f4b88d197e4d1a6260993bff34641e4d500458f
|
|
BLAKE2b-256 checksum How to use checksums |
47177790aa42ffb00763f2fa3cd81646e19a5783e819d9f27ec795ad93a21317
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.2
|