Metadata-Version: 2.1
Name: configParsePy
Version: 0.0.8
Summary: A tiny Configuration File Parser for Python Projects. Currently Supports JSON files only.
Home-page: https://github.com/TanmoySG/configPy
Author: Tanmoy Sen Gupta
Author-email: tanmoysps@gmail.com
License: MIT
Keywords: imports,configurations,python,project
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE

# configPy [ 🏗 Under Construction ]

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

## Installation

Install the Latest Stable Build - v0.0.7-Testing Build 
```
pip install configParsePy
```

## Usage 

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

Import the `configPy` module or the `JSONConfigParser` Object from `configPy` Module.
```
from configPy import JSONConfigParser 
```

### `JSONConfigParser` - for JSON Configuration Files


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.
```
configObject = JSONConfigParser(configFilePath="./sampleConfig.json")
configurations = configObject.getConfigurations()

OR 

configurations = 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/jsonConfig_EXAMPLE.py).

## Examples

Usage Samples can be found in the [examples directory](./examples)


