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
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
Hashes for configParsePy-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d6bc617d6369bb7799226fc7d9ead9a7953ed8d6db6e95e674df1193a718d3d |
|
MD5 | b9b93691b1a48691945b116321ed49af |
|
BLAKE2b-256 | 26b95a2169856f81563cca8a8b5e217b15a6e39e2dfd71c356379a07e7080fe3 |