Skip to main content

Configuration Creator for Python

A Python library for managing configurations. Supports saving and loading configurations in various formats, such as JSON, YAML, XML, INI, and CFG.

Installation

To install the library, you can use pip:

pip install ConfigSetup

Usage

To use the ConfigSetup library in your Python code, you can import it and create an instance of the ConfigSetup class:

from config_setup import ConfigSetup

config = ConfigSetup()

Setting and Getting Values

To set a value in the configuration, you can use the set method:

config.set('name', 'John')

To get a value from the configuration, you can use the get method:

name = config.get('name')

Saving and Loading Configurations

To save the configuration to a file, you can use the save method and specify the file format:

config.save('config', 'json')

To load a configuration from a file, you can use the load method and specify the file path:

config.load('config.json')

Validating Configurations

To validate a configuration data string against a specific format, you can use the validate method and specify the format:

data = '{"name": "John", "age": 30}'
valid = config.validate(data, 'json')

Clearing the Configuration

To clear the configuration, you can use the clear method:

config.clear()

License

This library is released under the MIT License.

Contributing

Contributions are always welcome! If you'd like to contribute to this library, please follow these steps:

  1. Fork the project on GitHub.
  2. Clone your forked repository to your local machine.
  3. Create a new branch for your changes.
  4. Make your changes and commit them, making sure to write clear commit messages.
  5. Push your branch to your forked repository.
  6. Submit a pull request to the main project repository, explaining your changes and why they should be merged.

Before submitting a pull request, please make sure to run the tests by executing the following command from the project's root directory:

python -m unittest discover

If any tests fail, please investigate and fix the issue before submitting your pull request.

Thank you for your interest in contributing to this project!

Metadata

Release files for config-setup 0.7.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for config-setup 0.7.8
File Size Uploaded Provenance Actions
config_setup-0.7.8.tar.gz 2.7 kB Without provenance Details for config_setup-0.7.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for config-setup 0.7.8
File Interpreter ABI Platform Actions
config_setup-0.7.8-py2.py3-none-any.whl Python 2, Python 3 none any Details for config_setup-0.7.8-py2.py3-none-any.whl

Total release size: 5.6 kB

Release files / config_setup-0.7.8.tar.gz

Download URL config_setup-0.7.8.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2d701b32f9d51715303254e0551809699affafb6cf27baf9c0acf5a26b33325a
BLAKE2b-256 checksum
How to use checksums
d2ca6e51873d4db7348f4e5c7ae487292567973e19f1748bb279f7ac72c1e024
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.0

Release files / config_setup-0.7.8-py2.py3-none-any.whl

Download URL config_setup-0.7.8-py2.py3-none-any.whl
Size 2.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2d6b71bc07a35f496c64e2e6c064aa5783880290db7f12285d182acf6d9ff787
BLAKE2b-256 checksum
How to use checksums
f17f9e70e5dd8c7a2d0f7899f8c919b3d025e4027c27b077c65f45304e987199
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.0

Security for config-setup 0.7.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.7.8 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page