Skip to main content

A Python SDK that is easy to integrate with the Apollo configuration management system.

Project description

MIT License https://img.shields.io/pypi/v/ApolloPyClient.svg

A Python SDK that is easy to integrate with the Apollo configuration management syste.

A Python package for apollo.

Installation

pip install ApolloPyClient

Usage

client = ApolloClient(
    app_id=os.environ.get('APOLLO_APP_ID'),
    config_service_url=os.environ.get('APOLLO_CONFIG_URL'),
    cluster=os.environ.get('APOLLO_CLUSTER'),
    secret=os.environ.get('APOLLO_SECRET'),
    env=os.environ.get('APOLLO_ENV'),
    namespaces=['application', 'test', 'testjson.json', 'testyaml.yaml'],
    ignore_ssl_verify=True,
)
print(client.all())
# sleep for 100000 seconds, you can view log to get the config
time.sleep(100000)

Reference

Apollo : https://www.apolloconfig.com/#/en/client/other-language-client-user-guide

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

apollopyclient-0.1.1.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ApolloPyClient-0.1.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file apollopyclient-0.1.1.tar.gz.

File metadata

  • Download URL: apollopyclient-0.1.1.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for apollopyclient-0.1.1.tar.gz
Algorithm Hash digest
SHA256 00c2418e7b710826c9b96efbb88c3623569e9294c167c0d28bdd9556535dc96a
MD5 a48d4c6de09a1755a2cc0d14b14d30e7
BLAKE2b-256 153044346651be08137137bdc92918d6ee986538946786279a284a50bbc30632

See more details on using hashes here.

File details

Details for the file ApolloPyClient-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ApolloPyClient-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for ApolloPyClient-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 31c908165129d36b8cc9d14cf1ec2913561dd933c35e24b60cf0566d0f8837bf
MD5 d39ed5e612de3cb0038fa3c815769a54
BLAKE2b-256 197addbdd1d468848d317e0f2efa35620f38582475891fef09265f99569f3342

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page