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.8.tar.gz (8.7 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.8-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for app_common_python-0.2.8.tar.gz
Algorithm Hash digest
SHA256 4e3d12f17cec46755f3255c3a40abb192cef9fc04a13141e77f4abe7fd71fb58
MD5 b0b90ec1530d16c1d9de059df8f6d7ce
BLAKE2b-256 440094f059012b4d887825fb65f6abc795222d4bacdc96a108ff2561f46af4f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for app_common_python-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 bf0e020b1b4d77b03e6e0e97e4f1f5112e3c27954721c2c82cd2ac40d20cb0f6
MD5 d67e13834de0f01e63c96e10e8e5a6dc
BLAKE2b-256 f7c66bf79ccb04cb28e8239c4e193b60fcd56002ec80fb99a38800d3768195f4

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