Skip to main content

A tiny Configuration File Parser for Python Projects. Currently Supports JSON files only.

Project description

configPy [ 🏗 Under Construction ]

A tiny Configuration File Parser for Python Projects. Currently Supports JSON files only.

Installation

Will be Publised soon on PyPi. Installation instruction and documentation will be updated soon.

Usage

Use configPy to get your configurations imported to your python code from JSON File.

JSONConfigParser - for JSON Configuration Files

Import the JSONConfigParser object from configPy module.

from configPy import JSONConfigParser

Initiate the JSONConfigParser by passing the JSON config file. Use getConfigurations() method to get the Configuration. The getConfigurations() method returns the configurations as a Dictionary.

importedConfigs = JSONConfigParser(configFilePath="./sampleConfig.json").getConfigurations()

Use the configurations as a dict object.

print("Module Name: ", importedConfigs["module_name"])
print("Purpose: ", importedConfigs["purpose"])

The whole code for the above example can be found here.

Examples

Usage Samples can be found in the examples directory

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

configParsePy-0.0.5.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

configParsePy-0.0.5-py3-none-any.whl (3.8 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