Skip to main content

Package for generating application configuration

Project description

Configfacets - Python Client Library

Overview

As applications scale and integrate with multiple systems, managing configurations becomes increasingly complex. Configfacets simplifies this with a Low-Code/No-Code configuration management system using plain JSON—no custom verbs, no complicated syntax. This Python client library facilitates seamless interaction with the Configfacets API, enabling efficient retrieval and management of configuration data.

Our key features are...

Repositories & Versioning: Design configurations as modular, reusable components, store them in a centralized repository, and maintain full version control for better organization and tracking.

Reusability: Add provider and community-contributed repositories as dependencies, reuse configuration templates, pass in customizable values to effortlessly set up and manage your application configurations.

Collaboration: Invite users and teams to repository with precise role-based permissions—Admin, Collaborator, or Viewer—to control access and streamline contributions.

REST APIs: Expose configurations through REST API endpoints. Generate static and dynamic configurations by leveraging facet filters and runtime configuration values in the request context.

Organization Management: Our hierarchical design simplifies managing multi-level organizational structures, team hierarchies, roles, and responsibilities.

Usage

Installation

Ensure you have Python 3.6 or higher installed. Install the library using pip:

pip install configfacets
from configfacets.configuration import Configuration

config = Configuration(
    apiUrl="https://configfacets.com/apis/repos/configfacets/core-concepts/appconfigs/resources/collections/api-configurations/exec?format=json",
    apiKey="<your_api_key>",
    postBody={"facets": ["env:prod", "cluster:aws", "region:east"]},
)
config.fetch()
resp = config.get_resp()

rabbitMQHost = config.get_value("rabbitmq.host")
rabbitMQPort = config.get_value("rabbitmq.port")

print("RabbitMQ Host:{}, Port:{}".format(rabbitMQHost, rabbitMQPort))

API Reference

Configuration

  • __init__(self, apiUrl, apiKey=None, postBody=None): Initializes the configuration object.
  • fetch(self): Fetches the configuration data from the API.
  • get_resp(self): Returns the fetched configuration data.
  • get_value(self, key_path): Retrieves the value for the specified key path.

Contributing

We welcome contributions!, feel free to connect with us in our Discord community

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

configfacets-0.0.3.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

configfacets-0.0.3-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file configfacets-0.0.3.tar.gz.

File metadata

  • Download URL: configfacets-0.0.3.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for configfacets-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8554732032e6b8054d94d6fdde775f7b55e09a489a3d804bb7550c03dfb1160e
MD5 c860518262dfc66121bd2d71179c472c
BLAKE2b-256 33bb5f9fc10d25ee225b54a74a9867975ecf1a6985159573625d24b9241185b1

See more details on using hashes here.

File details

Details for the file configfacets-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: configfacets-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for configfacets-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c3443e024170fee0449cfb255fa41b03623fc57b92b97d504fea7bb9ce33bcff
MD5 1779f7cf45017093656e460402157c3b
BLAKE2b-256 14b7bba0260a69f69fe23caf2c2050a7b74e0e06b173b1a624109452306f7f33

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