Yaml Configuration
==================
This library provides a means to read yaml configuration files and propagate
default values in reasonable ways. Nothing complicated.
* **Installation:** ``pip install yamlconfig``
:Example:
>>> import yamlconf
>>>
>>> doc = yamlconf.loads("""
... test: demo_test
...
... tests:
... defaults:
... foo: 5
... demo_test:
... bar: 6
... """)
>>>
>>> doc['tests'][doc['test']]['foo']
5
>>> doc['tests'][doc['test']]['bar']
6
:Functions:
* load(*file-like*) : Returns a *dict* with defaults propagated
* loads(*string*) : Returns a *dict* with defaults propagated
* load_module(*class-path*) : Imports and returns
Raw data
{
"_id": null,
"home_page": "https://github.com/halfak/yamlconf",
"name": "yamlconf",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Aaron Halfaker",
"author_email": "aaron.halfaker@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/3f/7d/714dc58a3a780b260ee39d776da5a42a3586b1375e9b701d8e356aeffb7f/yamlconf-0.2.6.tar.gz",
"platform": null,
"description": "Yaml Configuration\n==================\n\nThis library provides a means to read yaml configuration files and propagate\ndefault values in reasonable ways. Nothing complicated.\n\n* **Installation:** ``pip install yamlconfig``\n\n:Example:\n\n >>> import yamlconf\n >>>\n >>> doc = yamlconf.loads(\"\"\"\n ... test: demo_test\n ...\n ... tests:\n ... defaults:\n ... foo: 5\n ... demo_test:\n ... bar: 6\n ... \"\"\")\n >>>\n >>> doc['tests'][doc['test']]['foo']\n 5\n >>> doc['tests'][doc['test']]['bar']\n 6\n\n:Functions:\n\n* load(*file-like*) : Returns a *dict* with defaults propagated\n* loads(*string*) : Returns a *dict* with defaults propagated\n* load_module(*class-path*) : Imports and returns\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Yaml-based configuration file reader.",
"version": "0.2.6",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a7e097c505dc8855a4d2e1d11318e135995ca73bb831ee6e8e8f5aebf0cffc9e",
"md5": "b6035a213206cd00ff991cb01ed259fc",
"sha256": "9a53d7dd5bd7026afbad1dd0beb6c1bb681c497fb3daf08df966eb235629fc07"
},
"downloads": -1,
"filename": "yamlconf-0.2.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b6035a213206cd00ff991cb01ed259fc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 8722,
"upload_time": "2023-01-23T16:21:26",
"upload_time_iso_8601": "2023-01-23T16:21:26.924965Z",
"url": "https://files.pythonhosted.org/packages/a7/e0/97c505dc8855a4d2e1d11318e135995ca73bb831ee6e8e8f5aebf0cffc9e/yamlconf-0.2.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3f7d714dc58a3a780b260ee39d776da5a42a3586b1375e9b701d8e356aeffb7f",
"md5": "e43ca275dae81c63c6ea2989a0d029fb",
"sha256": "5a1e646c723f51a212758dbb0f6fb833ab91e1b41f1b87dc3efd17d95e1f5a4e"
},
"downloads": -1,
"filename": "yamlconf-0.2.6.tar.gz",
"has_sig": false,
"md5_digest": "e43ca275dae81c63c6ea2989a0d029fb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5740,
"upload_time": "2023-01-23T16:21:28",
"upload_time_iso_8601": "2023-01-23T16:21:28.794757Z",
"url": "https://files.pythonhosted.org/packages/3f/7d/714dc58a3a780b260ee39d776da5a42a3586b1375e9b701d8e356aeffb7f/yamlconf-0.2.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-23 16:21:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "halfak",
"github_project": "yamlconf",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "yamlconf"
}