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:
- Fork the project on GitHub.
- Clone your forked repository to your local machine.
- Create a new branch for your changes.
- Make your changes and commit them, making sure to write clear commit messages.
- Push your branch to your forked repository.
- 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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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.