[![CircleCI](https://circleci.com/gh/AndreaCensi/conf_tools.svg?style=shield)](https://circleci.com/gh/AndreaCensi/conf_tools)
``ConfTools``: configuration made easy, for when it cannot be trivial
======================================================================
(To write)
Useful snippets
===============
Loading the YAML files that reside alongside the source code
------------------------------------------------------------
You can use ``resource_filename`` to find the directories
corresponding to the packages ``tmdp.configs`` in this way:
from pkg_resources import resource_filename
dirs = [
resource_filename("tmdp", "configs"),
resource_filename("gridworld", "configs"),
]
GlobalConfig.global_load_dirs(dirs)
Raw data
{
"_id": null,
"home_page": "http://github.com/AndreaCensi/conf_tools/",
"name": "ConfTools",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "configuration",
"author": "Andrea Censi",
"author_email": "censi@mit.edu",
"download_url": "https://files.pythonhosted.org/packages/f7/0f/196b6a2ed7050589e4133cc0c27cf140ba6bd4a13c6640a6ad00341274ca/ConfTools-1.9.9.tar.gz",
"platform": "",
"description": "[![CircleCI](https://circleci.com/gh/AndreaCensi/conf_tools.svg?style=shield)](https://circleci.com/gh/AndreaCensi/conf_tools)\n\n\n``ConfTools``: configuration made easy, for when it cannot be trivial\n======================================================================\n\n(To write)\n\nUseful snippets\n===============\n\n\nLoading the YAML files that reside alongside the source code\n------------------------------------------------------------\n\nYou can use ``resource_filename`` to find the directories\ncorresponding to the packages ``tmdp.configs`` in this way:\n\n from pkg_resources import resource_filename \n dirs = [\n resource_filename(\"tmdp\", \"configs\"),\n resource_filename(\"gridworld\", \"configs\"),\n ]\n GlobalConfig.global_load_dirs(dirs)",
"bugtrack_url": null,
"license": "LGPL",
"summary": "",
"version": "1.9.9",
"project_urls": {
"Download": "http://github.com/AndreaCensi/conf_tools/tarball/1.9.9",
"Homepage": "http://github.com/AndreaCensi/conf_tools/"
},
"split_keywords": [
"configuration"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f70f196b6a2ed7050589e4133cc0c27cf140ba6bd4a13c6640a6ad00341274ca",
"md5": "f5d328e531ce8f1dd58909bd3903ccb7",
"sha256": "b399d96ac5f79b027222b89873ff7112ac66a79b9f7d9ff211319f98a6611994"
},
"downloads": -1,
"filename": "ConfTools-1.9.9.tar.gz",
"has_sig": false,
"md5_digest": "f5d328e531ce8f1dd58909bd3903ccb7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 30931,
"upload_time": "2018-10-23T17:22:02",
"upload_time_iso_8601": "2018-10-23T17:22:02.414363Z",
"url": "https://files.pythonhosted.org/packages/f7/0f/196b6a2ed7050589e4133cc0c27cf140ba6bd4a13c6640a6ad00341274ca/ConfTools-1.9.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2018-10-23 17:22:02",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "AndreaCensi",
"github_project": "conf_tools",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"circle": true,
"requirements": [
{
"name": "pytz",
"specs": []
},
{
"name": "beautifulsoup4",
"specs": []
},
{
"name": "PyContracts",
"specs": [
[
"==",
"1.8.5"
]
]
},
{
"name": "PyYaml",
"specs": []
},
{
"name": "six",
"specs": []
}
],
"lcname": "conftools"
}