A python library that writes your configuration into an .ini file
Project description
Write configurations into .ini
This project leverages configureparser
module to write your configurations into an .ini file at ease. It's designed for simplicity and ease of use, allowing you to manage .ini files.
Features
- Write: Write and store your configurations.
- Read: Read the only configuration you need.
- Modify: Modify the configuration.
- Store with sections: Store your configuration based on its type as a section.
Prerequisites
configparser
Usage
To use the functionality, import the Configuration
function from ArtexConfigure
.
from ArtexConfig import Configuration
settings_file = 'app_settings.ini'
app_settings = AppSettings(settings_file)
# Store settings
initial_settings = {
'theme': 'dark',
'language': 'en',
'notifications': 'True'
}
app_settings.store_settings('General', initial_settings)
# Modify a setting
app_settings.modify_setting('General', 'language', 'es')
# Verify the modification
print(app_settings.get_setting('General', 'language')) # Output: es
This project is managed by Artex AI. Soon an improved and stable version will roll out
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
artexconfigure-0.0.1.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for ArtexConfigure-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afc82ed931a571d5aef46c127a56af093bfada2d1d2f3856feb092d75baede2f |
|
MD5 | 64a11a511d659edbd6b18da0d18f7e19 |
|
BLAKE2b-256 | f81a7ddb68d55fce0ef69e440723452400b943b58a64d901258b298d17f3fd11 |