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
from app_common_python import 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.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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b01899fd549abd7d412d022e7d7426a973c68010d6a13d7dc5dae4491e969a00 |
|
MD5 | 9f94140c1be9a658dfd69df265153477 |
|
BLAKE2b-256 | 59f2827c689afc0768c7fee8f8d2602a354e0fd90a36e9b38b82bc0099124adb |