Skip to main content

Configuration library for pynenc and piceli projects

Project description

Cistell

Cistell

A comprehensive configuration management library for Python applications

Package version Supported Python versions GitHub last commit GitHub contributors GitHub issues GitHub license GitHub Repo stars GitHub forks


Documentation: https://docs.cistell.pynenc.org

Source Code: https://github.com/pynenc/cistell


Cistell is a powerful library aimed at simplifying configuration management for Python projects. It allows developers to manage settings across different environments seamlessly, using a structured yet flexible approach. With support for environment variables, configuration files, and direct settings, Cistell makes it easy to maintain a clear and consistent configuration strategy for any Python application.

Key Features

  • Flexible Configuration: Supports various sources, including environment variables, configuration files (JSON, YAML, TOML), and direct assignment.
  • Hierarchical Configuration: Allows for layered configuration strategies, accommodating different environments and scenarios.
  • Type Checking and Error Handling: Offers robust type checking and error handling for secure and reliable configuration management.
  • Extensible Framework: Easily extendable with custom field mappers and validators to fit unique project needs.

Installation

Cistell can be quickly installed using pip. Run the following command in your terminal:

pip install cistell

This command will download and install Cistell along with its dependencies. Once installed, Cistell is ready to enhance your Python project with efficient configuration management.

For further installation details and advanced options, refer to the Cistell Documentation.

Quick Start Example

Here's a basic example to get you started with Cistell:

  1. Define a Configuration Class:

    Create a file named config.py and define your configuration settings:

    from cistell import ConfigBase, ConfigField
    
    class MyAppConfig(ConfigBase):
        database_url = ConfigField("sqlite:///example.db")
        feature_flag = ConfigField(False)
    
  2. Instantiate and Use Your Configuration:

    In your application, create an instance of your configuration class and use the settings:

    from config import MyAppConfig
    
    config = MyAppConfig()
    print(config.database_url)  # Outputs: sqlite:///example.db
    

For detailed examples and further setup, visit the Cistell Quick Start Guide.

Requirements

Cistell requires Python 3.7 or newer. Additional requirements may vary based on your setup and the features you use.

Contact or Support

For assistance with Cistell, suggestions, or general discussion, please use the following resources:

  • GitHub Issues: For bug reports, feature requests, or other technical concerns.
  • GitHub Discussions: For questions, ideas exchange, or discussions about Cistell usage and development.

Your contributions and feedback are invaluable in helping Cistell improve and evolve.

License

Cistell is available under the MIT License.

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

cistell-0.0.4.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

cistell-0.0.4-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file cistell-0.0.4.tar.gz.

File metadata

  • Download URL: cistell-0.0.4.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.8

File hashes

Hashes for cistell-0.0.4.tar.gz
Algorithm Hash digest
SHA256 92b60caea29d44bba0640a39c029ad7a0c67b4bf28d6f3dd78f1ba78591b0b3b
MD5 6dce383429b926ad6716bc90c7bd7384
BLAKE2b-256 c46be44cf92499aefa886c46bcc80b3c764680eb32de7f7c495225811484086c

See more details on using hashes here.

File details

Details for the file cistell-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: cistell-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.8

File hashes

Hashes for cistell-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6b8ae78477058e26c36477a886fb0e5fab1095f8caa50700430deea55faf9916
MD5 4c5b68917a292670bfed62e527dc1c98
BLAKE2b-256 f3e8601667698a1217d1dcc52af09988e44d2f3a14314d9f3566c14fb9f1bab8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page