Metadata-Version: 2.1
Name: config-library
Version: 0.2.0
Summary: utility library to find and load configuration files
Home-page: https://github.com/PlayerG9/py-config-lib
Author: PlayerG9
Project-URL: Author Github, https://github.com/PlayerG9
Project-URL: Bug Tracker, https://github.com/PlayerG9/py-config-lib/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.5
Description-Content-Type: text/markdown
License-File: LICENSE

# config-library
utility library to find and load configuration files


# Installation
`pip install config-library`

# Usage Example

```python
import configs

config = configs.findAndLoad('app.conf', 'project')
```
project-structure
```
/
├─ etc/
├─ home/user/
│  ├─ path/to/repo/
│  │  ├─ src/code/
│  │  │  ├─ main.py
│  ├─ .config/
```
places to search for the config-file
- /home/user/path/to/repo/src/code/app.conf
- /home/user/path/to/repo/src/code/project/app.conf
- /home/user/path/to/repo/app.conf
- /home/user/path/to/repo/project/app.conf
- /home/user/.config/app.conf
- /home/user/.config/project/app.conf
- /etc/app.conf
- /etc/project/app.conf

# Supported Config-Types
- .json
- .ini/.conf
- .toml (python3.11+)
- .yaml (if `pyyaml` is installed)
