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.2.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.2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apollopyclient-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 79588e3e3f9d93605a3b677038220fe62beb89b5466f67d0b9c832603812965c
MD5 bb11be2cf96f9ba883e027dc56558cf5
BLAKE2b-256 978746fa0430714be238905ffd356eb4796686bc262b72472188e310b62eec12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ApolloPyClient-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 985d6557e52bc7c03294eb08a7c521d2c4d60481da5aab2093b4cda26b7c5e13
MD5 94855849022eab520cd511a80d47f4c5
BLAKE2b-256 429d7b4c16dc373480802712ecfe1bbfb829755ccdb99d8f948a8a1d92b7e2bb

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