# 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:
```bash
pip install configgy
```
## Usage
Here's an example of how to use the package to load a configuration file:
```python
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
Raw data
{
"_id": null,
"home_page": "https://github.com/baniasbaabe/configgy",
"name": "configgy",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "\u00b4config,yaml,json,toml,ini",
"author": "baniasbaabe",
"author_email": "banias@hotmail.de",
"download_url": "https://files.pythonhosted.org/packages/a9/0d/0280cba8c2060559081d144e6bb64c08b77915f47880ddafa99ea6288644/configgy-0.1.1.tar.gz",
"platform": null,
"description": "# Configgy\n\nA subtle Python package for loading configuration files without having to specify the file type.\n\n## Installation\n\nYou can install the package from PyPI using pip:\n\n```bash\npip install configgy\n```\n\n## Usage\n\nHere's an example of how to use the package to load a configuration file:\n\n```python\nfrom configgy.loader import ConfigLoader\n\ndata = ConfigLoader().load_config_file(\"file.json\")\n```\n\nThe `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.\n\nCurrently, the package supports the following file types:\n\n- INI\n- YAML\n- TOML\n- JSON\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A subtle config loader for python",
"version": "0.1.1",
"project_urls": {
"Homepage": "https://github.com/baniasbaabe/configgy",
"Repository": "https://github.com/baniasbaabe/configgy"
},
"split_keywords": [
"\u00b4config",
"yaml",
"json",
"toml",
"ini"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "03b4d00b84a56b96a8822c28aacc01ccddcfd069359cdd0c4998d6bd324c3c83",
"md5": "426198679cd978b144cc67e5c3ebed66",
"sha256": "55e1a82dc17e8f31d4ae14d6cdf0d66eaa263a62f2e96ff0dc49003e7ab26e8d"
},
"downloads": -1,
"filename": "configgy-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "426198679cd978b144cc67e5c3ebed66",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 2372,
"upload_time": "2023-05-07T10:49:40",
"upload_time_iso_8601": "2023-05-07T10:49:40.800352Z",
"url": "https://files.pythonhosted.org/packages/03/b4/d00b84a56b96a8822c28aacc01ccddcfd069359cdd0c4998d6bd324c3c83/configgy-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a90d0280cba8c2060559081d144e6bb64c08b77915f47880ddafa99ea6288644",
"md5": "f1a44c6effb506a59746d30bf0145232",
"sha256": "e2ea314a8fbeefe0e0bfc43447fd2a5f7cf7352dcca47eb6cc315cdcc17925fd"
},
"downloads": -1,
"filename": "configgy-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "f1a44c6effb506a59746d30bf0145232",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 2397,
"upload_time": "2023-05-07T10:49:42",
"upload_time_iso_8601": "2023-05-07T10:49:42.765301Z",
"url": "https://files.pythonhosted.org/packages/a9/0d/0280cba8c2060559081d144e6bb64c08b77915f47880ddafa99ea6288644/configgy-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-07 10:49:42",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "baniasbaabe",
"github_project": "configgy",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "configgy"
}