Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

app_common_python-0.2.9.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

app_common_python-0.2.9-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file app_common_python-0.2.9.tar.gz.

File metadata

  • Download URL: app_common_python-0.2.9.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for app_common_python-0.2.9.tar.gz
Algorithm Hash digest
SHA256 74125371e2865bcba7a7c34f0700d4b8b97a0c0a9ff67bbb06fdb20a3da4b75c
MD5 0257663a694c50562385315f35c304dd
BLAKE2b-256 a0d3d3d17d46e980ff8e54e95b7588a20b0bd0f1a16dec6bacf8fa64f2a8d214

See more details on using hashes here.

File details

Details for the file app_common_python-0.2.9-py3-none-any.whl.

File metadata

File hashes

Hashes for app_common_python-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 861bd93482edabd00a85eb6512e0d7df08597be6f76b864be8e53d6294f81389
MD5 e283c6870ad9879e6e99ef2220c36eed
BLAKE2b-256 d13884a27304f074c00d815701376f585c93dbefac4553d994dc6b21c4d01939

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