Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Configify_Wizard-0.1.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

Configify_Wizard-0.1.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

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

Hashes for Configify_Wizard-0.1.2.tar.gz
Algorithm Hash digest
SHA256 39a2af384339571df479a8a5a319c6a68256f01d704e26a706052702d0760b82
MD5 b7c8f43b7e662dd273ef20b3ad23630b
BLAKE2b-256 46ba0772d6c5310a5d10b98b0b18286c9bf11fd1949b77512df0e0166091285c

See more details on using hashes here.

File details

Details for the file Configify_Wizard-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for Configify_Wizard-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 58f52121fe7a7f8c2664962f0dc0aeb3bd47ab301f02cf20794ac7fd08f0371c
MD5 9863179a2ae7d2e4881c987297176d20
BLAKE2b-256 31cf12140cf5c051459f095bd1b032c9bbca11ce3e7d636c43d6ac72b2eab6dc

See more details on using hashes here.

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