### Usage example
You can use .env $ENVVARIABLE variables in a YAML file.
They will be automatically replaced with environment variables.
```python
from meinkonfig import Konfig
cfg = Konfig("configfiles/", "config.yaml")
cfg.load_konfig()
print(cfg.config.env)
```
Output:
```python
ENVTEST
```
YAML configuration file:
```yaml
env: $TEST
```
.env file:
```shell
TEST="ENVTEST"
```
Raw data
{
"_id": null,
"home_page": "https://github.com/vodyanoy420/meinkonfig",
"name": "meinkonfig",
"maintainer": "vodyanoy",
"docs_url": null,
"requires_python": "",
"maintainer_email": "vodyanoy420@gmail.com",
"keywords": "config,yaml,yamlconfig,meinkonfig",
"author": "vodyanoy",
"author_email": "vodyanoy420@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/67/61/a991fe31535a40efbf00031770111e1f951a6a5d69975b8d02ab3634d567/meinkonfig-0.1.2.tar.gz",
"platform": "Linux",
"description": "### Usage example\n\nYou can use .env $ENVVARIABLE variables in a YAML file.\nThey will be automatically replaced with environment variables.\n\n```python\nfrom meinkonfig import Konfig\n\ncfg = Konfig(\"configfiles/\", \"config.yaml\")\ncfg.load_konfig()\nprint(cfg.config.env)\n```\nOutput:\n```python\nENVTEST\n```\n\nYAML configuration file:\n```yaml\nenv: $TEST\n```\n.env file:\n```shell\nTEST=\"ENVTEST\"\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "YAML config reader",
"version": "0.1.2",
"project_urls": {
"Homepage": "https://github.com/vodyanoy420/meinkonfig"
},
"split_keywords": [
"config",
"yaml",
"yamlconfig",
"meinkonfig"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6761a991fe31535a40efbf00031770111e1f951a6a5d69975b8d02ab3634d567",
"md5": "07448107d4a34d204a505d0721152e77",
"sha256": "722c32f9ce63286b3f2c8b02488378ceb49bdfa5472f9da660985f9454398540"
},
"downloads": -1,
"filename": "meinkonfig-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "07448107d4a34d204a505d0721152e77",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2364,
"upload_time": "2023-11-11T10:19:20",
"upload_time_iso_8601": "2023-11-11T10:19:20.752449Z",
"url": "https://files.pythonhosted.org/packages/67/61/a991fe31535a40efbf00031770111e1f951a6a5d69975b8d02ab3634d567/meinkonfig-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-11 10:19:20",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "vodyanoy420",
"github_project": "meinkonfig",
"github_not_found": true,
"lcname": "meinkonfig"
}