Skip to main content

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


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)

Uploaded Source

Built Distribution

ArtexConfigure-0.0.1-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

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