Skip to main content

ezconfig client

Project description

EZConfig 客户端程序

使用方法

pip install ezconfig-client
from ezconfig_client import loader
res = loader.get_latest_config()
print(res)

使用前需要设置环境变量

环境变量 说明
EZCONFIG_ENV 环境变量
EZCONFIG_APPID 应用ID
EZCONFIG_SECRET 应用密钥
EZCONFIG_HOST EZConfig服务地址

环境依赖:

requests>=2.22.0
retrying>=1.3.4

测试参考代码

EZCONFIG_ENV=DEV EZCONFIG_APPID=xxx.xx.xxx EZCONFIG_SECRET=xxxxxxx EZCONFIG_HOST=https://xxxx.xx python test/test.py

版本说明

版本 变更
0.4 降低requests版本,修改bug
0.5 增加访问错误重试机制,请求超时30秒,失败重试3次

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

ezconfig-client-0.5.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

ezconfig_client-0.5-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file ezconfig-client-0.5.tar.gz.

File metadata

  • Download URL: ezconfig-client-0.5.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for ezconfig-client-0.5.tar.gz
Algorithm Hash digest
SHA256 201bc637acb234049ca60d599bc3cad0d46a86fe0f4e750b5ce7b12f0a6b00c2
MD5 a4fa21c37f8f6ce6a9b12bda7e709bf7
BLAKE2b-256 1c79e10c77ff41d106ddd579a213375ed533f1ad343ce2f21b5a0f59c2f209a6

See more details on using hashes here.

File details

Details for the file ezconfig_client-0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for ezconfig_client-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4dd81663bd6e2549ac292c63a8ffa1eedecdde233267ef02471081a763efce55
MD5 7c8fe9860813b07182f5b15ac4ba8b1e
BLAKE2b-256 6d1252253a3262927e7c10197c17797f7efe96670003568f227a16a531fbb286

See more details on using hashes here.

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