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
File details
Details for the file app_common_python-0.2.7.tar.gz
.
File metadata
- Download URL: app_common_python-0.2.7.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd3c7fea89eae26eac26d3ca5cddb45459408e0d84fa1b805d0a3c1ad782351b |
|
MD5 | 153cf5bd3718fdb65791da27dc1cb9f9 |
|
BLAKE2b-256 | 4e56532aa78d2906aacb3d787b40a96114f64589e56a274483777b5384278df6 |
File details
Details for the file app_common_python-0.2.7-py3-none-any.whl
.
File metadata
- Download URL: app_common_python-0.2.7-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9388623371c7f4c04727b0057578d85bf6c7086961f10058370e023b7620eea3 |
|
MD5 | 8b69a1af5a533838f434052143ff9099 |
|
BLAKE2b-256 | 56004ab9cd0f959c25aab078d9a09050bb837d49ef5d5f92c3f62218138f4ab1 |