A configuration parser for YAML, CFG, and ENV files
Project description
Configify Wizard
Configify Wizard
is a Python package designed for managing and converting configuration files. It supports parsing configurations from YAML, CFG, and CONF files, and provides functionality to write configurations to .env
files, JSON files, or set them as environment variables.
Features
- Read Configuration Files: Supports YAML, CFG, and CONF file formats.
- Write Configuration: Save configurations to
.env
or JSON files. - Set Environment Variables: Easily set configurations as environment variables.
Installation
You can install Configify Wizard
via pip:
bash
pip install Configify-Wizard
Usage
Here’s a quick guide to using Configify Wizard:
1. Parse Configuration Files
You can read configuration files in YAML, CFG, or CONF formats:
from config_parser_module.config_reader import ConfigParserModule
config_parser = ConfigParserModule()
# Read YAML file
config_dict = config_parser.read_yaml('config.yaml')
# Read CFG or CONF file
config_dict = config_parser.read_cfg('config.cfg')
Note: Please enter full path of the files which you want to parse
2. Write Configurations
You can write configurations to a .env file or a JSON file:
# Write to .env file
config_parser.write_env('./config.env')
# Write to JSON file
config_parser.write_json('./config.json')
Note: config_parser takes care of creating the directory if not present, enter desired filename and patho of your choice.
3. Set Environment Variables
config_parser.set_os_env()
Note: Setting up Environment Variable in OS currently supports for Linux Environment, Windows is currently under development, Contributions Welcome 😉
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
Built Distribution
File details
Details for the file Configify_Wizard-0.1.2.tar.gz
.
File metadata
- Download URL: Configify_Wizard-0.1.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39a2af384339571df479a8a5a319c6a68256f01d704e26a706052702d0760b82 |
|
MD5 | b7c8f43b7e662dd273ef20b3ad23630b |
|
BLAKE2b-256 | 46ba0772d6c5310a5d10b98b0b18286c9bf11fd1949b77512df0e0166091285c |
File details
Details for the file Configify_Wizard-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: Configify_Wizard-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58f52121fe7a7f8c2664962f0dc0aeb3bd47ab301f02cf20794ac7fd08f0371c |
|
MD5 | 9863179a2ae7d2e4881c987297176d20 |
|
BLAKE2b-256 | 31cf12140cf5c051459f095bd1b032c9bbca11ce3e7d636c43d6ac72b2eab6dc |