No project description provided
Project description
app-common-python
Simple client access library for the config for the Clowder operator.
Usage
To access configuration, see the following example
from app_common_python import LoadedConfig, isClowderEnabled
def main():
if isClowderEnabled():
print(f"Public Port: {LoadedConfig.PublicPort}")
The clowder
library also comes with several other helpers
LoadedConfig.rds_ca()
- creates a temporary file with the RDSCa and returns the filename.LoadedConfig.kafka_ca()
- creates a temporary file with the KafkaCa and returns the filename from the frist broker in the list.KafkaTopics
- returns a map of KafkaTopics using the requestedName as the key and the topic object as the value.KafkaServers
- returns a list of Kafka Broker URLs.ObjectBuckets
- returns a list of ObjectBuckets using the requestedName as the key and the bucket object as the value.DependencyEndpoints
- returns a nested map using [appName][deploymentName] for the public services of requested applications.PrivateDependencyEndpoints
- returns a nested map using [appName][deploymentName] for the private services of requested applications.
Testing
ACG_CONFIG="test.json" pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for app_common_python-0.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae9e914d808d73be4694f53fcab88dcde19b1c4f0187b4a30909cd40cf12e939 |
|
MD5 | 417388d32aba770b0a3a7a356a49e056 |
|
BLAKE2b-256 | 6f8c27792f90ce37c7d6f4be9b8d847f17d51dde875ae9daa475ba6f83b30c3f |