Metadata-Version: 2.1
Name: conduce
Version: 0.0.2
Summary: A config util package to flatten-reduce long keys
Home-page: https://github.com/selphaware/conduce
Author: Usman Ahmad
Author-email: uahmad3013@outlook.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/selphaware/conduce/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# Config (YAML/JSON) Keys Flatten-Reducer
<i><b>conduce</b></i> - A simple config package which flatten-reduces all keys of either a YAML or JSON config
to allow a simple way to get values from long keys.
<br><br>
<b>some.yaml</b>:<br>
````yaml 
alpha:
    beta:
        gamma: "hello"
```` 
<b>some.json</b>:<br>
````json 
{"alpha": {"beta": {"gamma": "world"}}}
```` 
<b>some_deep_nested.yaml</b>:<br>
````yaml 
alpha:
    beta:
        gamma:
            delta:
                theta:
                    phi:
                        "finally!!!"
```` 
<b>example.py</b>: <br>
````python 
from conduce import conduce
c1 = conduce.read_yaml("some.yaml", "some/path/to/the/yaml")
c2 = conduce.read_json("some.json", "some/path/to/the/json")
c3 = conduce.read_json("some_deep_nested.json", "some/path/to/the/json")
c1('alpha.beta.gamma') # returns value "hello"
c2('alpha.beta.gamma') # returns value "world"
c3('alpha.beta.gamma.delta.theta.phi') # returns value "finally!!!"
```` 


