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.7.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

cistell-0.0.7-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cistell-0.0.7.tar.gz
Algorithm Hash digest
SHA256 b99b0ee87741f6c70544b20ed0ca988abce29be65956765d16b1e5317b5e1d9d
MD5 0f28a2d457fb5e862f2536910677891e
BLAKE2b-256 b3e2733e9bd37746f6dee08e4a51ba826b7c44f0caddfe7bb8ed6027700e645d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for cistell-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 94441f3843fae55e7b2f5adf6ba3e05cb62fa4013a97686dbbfc1e72d48f4f5b
MD5 18d434dca3be16573554c92d839fadf3
BLAKE2b-256 8f57819738840e2c1983bfbc729387f39225290b7524de65e637763072f21d2a

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