A subtle config loader for python
Project description
Configgy
A subtle Python package for loading configuration files without having to specify the file type.
Installation
You can install the package from PyPI using pip:
pip install configgy
Usage
Here's an example of how to use the package to load a configuration file:
from configgy.loader import ConfigLoader
data = ConfigLoader().load_config_file("file.json")
The load_config
function takes a single argument, the path to the configuration file. It will automatically detect the file type and use the appropriate loader.
Currently, the package supports the following file types:
- INI
- YAML
- TOML
- JSON
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
configgy-0.1.1.tar.gz
(2.4 kB
view details)
Built Distribution
File details
Details for the file configgy-0.1.1.tar.gz
.
File metadata
- Download URL: configgy-0.1.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.15 CPython/3.8.10 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2ea314a8fbeefe0e0bfc43447fd2a5f7cf7352dcca47eb6cc315cdcc17925fd |
|
MD5 | f1a44c6effb506a59746d30bf0145232 |
|
BLAKE2b-256 | a90d0280cba8c2060559081d144e6bb64c08b77915f47880ddafa99ea6288644 |
File details
Details for the file configgy-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: configgy-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.15 CPython/3.8.10 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55e1a82dc17e8f31d4ae14d6cdf0d66eaa263a62f2e96ff0dc49003e7ab26e8d |
|
MD5 | 426198679cd978b144cc67e5c3ebed66 |
|
BLAKE2b-256 | 03b4d00b84a56b96a8822c28aacc01ccddcfd069359cdd0c4998d6bd324c3c83 |