{ "info": { "author": "Michael Stewart", "author_email": "statueofmike@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3" ], "description": "# figtion\n\nConfiguration package\n\n## Why Though?\n\nThis is the simplest config interface with text file support.\n\n## Benefits\n\n * seemless Python `dict` interface\n * unified config definition and defaults\n * YAML text file source for file-system input & serialization\n * simple precedence\n * `defaults` **keys** define config **keys**\n * YAML **values** override `defaults` **values**\n * secrets support\n * secrets saved to private YAML\n * auto-updates from public YAML\n\n## Examples\n\n### Config Definition and Defaults\n\n import figtion\n\n defaults = {'my server' : 'www.bestsite.web'\n ,'number of nodes' : 5\n ,'password' : 'huduyutakeme4' }\n cfg = figtion.Config(defaults=defaults,filepath='~/conf.yml')\n\n print(cfg['my server']) \n\nThis will print 'www.bestsite.web' unless the value of 'my server' in `~/conf.yml` has something else.\n\n### Config Secrets\n\nWhen you want a public config file and a separate secret one.\n\n cfg = figtion.Config(defaults=defaults,filepath='~/conf.yml',secretpath='/opt/creds.yml')\n cfg.mask('password')\n\n print(cfg['password'])\n\nThis will print the value of `'password'`, which is stored in `/opt/creds.yml` and not `~/conf.yml`. If the value of `'password'` is changed in either YAML file, the password will be updated and masked from `~/creds.yml` again the next time the class is loaded in Python.\nThe python class always return the correct value.\n\n## Roadmap\n\n * 0.9 - secrets store in separate location\n * 1.0 - secrets store in encrypted location\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/statueofmike/figtion/archive/0.9.2.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/statueofmike/figtion", "keywords": "config configuration yaml", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "figtion", "package_url": "https://pypi.org/project/figtion/", "platform": "", "project_url": "https://pypi.org/project/figtion/", "project_urls": { "Download": "https://github.com/statueofmike/figtion/archive/0.9.2.tar.gz", "Homepage": "https://github.com/statueofmike/figtion" }, "release_url": "https://pypi.org/project/figtion/0.9.2/", "requires_dist": [ "pyyaml" ], "requires_python": ">=3.5", "summary": "config dictionary with YAML sourcing and secret support", "version": "0.9.2" }, "last_serial": 4812113, "releases": { "0.9.0": [ { "comment_text": "", "digests": { "md5": "9860ef2e45e1d26a70fd8364f357d3cf", "sha256": "461c54bbe4dc866182f192a461343e6d1a016f6a025fc6907c840df11ddc7736" }, "downloads": -1, "filename": "figtion-0.9.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9860ef2e45e1d26a70fd8364f357d3cf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 4425, "upload_time": "2019-02-12T13:34:06", "url": "https://files.pythonhosted.org/packages/f2/04/bffcb7bf32f641be4c58e6267a5061dce459af85cf9a63b0beef5a80a0c5/figtion-0.9.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "41f4c9cad0ea3420dfbbca518e6e0733", "sha256": "96a6b3d78582ebccba9623382bda4548ae920837398aa8e40db104780f6e2d24" }, "downloads": -1, "filename": "figtion-0.9.0.tar.gz", "has_sig": false, "md5_digest": "41f4c9cad0ea3420dfbbca518e6e0733", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 3532, "upload_time": "2019-02-12T13:34:08", "url": "https://files.pythonhosted.org/packages/be/05/2eb59a304d202f9fa93e17b62a6c5818481dd6ad50ecabc6de70d77ad56a/figtion-0.9.0.tar.gz" } ], "0.9.1": [ { "comment_text": "", "digests": { "md5": "f6d32efc6400a0f23a7d5dbbaa594afb", "sha256": "58b9999c46002cf76b84b0e9fc49b06ad19eb175b5de6fb53da920859b45a7ed" }, "downloads": -1, "filename": "figtion-0.9.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f6d32efc6400a0f23a7d5dbbaa594afb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 5301, "upload_time": "2019-02-12T13:41:10", "url": "https://files.pythonhosted.org/packages/92/43/a3625b8967af1de657cc8f06d98308c096a4f2e7a0d396d6114eb826b1c3/figtion-0.9.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "db0ef73af4f2943b30287951354d5f88", "sha256": "6e864633678a6bc056ffaf59b9e280549f4cdefa1940bc2815786f0cc1402996" }, "downloads": -1, "filename": "figtion-0.9.1.tar.gz", "has_sig": false, "md5_digest": "db0ef73af4f2943b30287951354d5f88", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 3584, "upload_time": "2019-02-12T13:41:11", "url": "https://files.pythonhosted.org/packages/36/af/91499e367c4a859f83cade4de424dda9f5e7b0aa3c49024aeae4097d3c29/figtion-0.9.1.tar.gz" } ], "0.9.2": [ { "comment_text": "", "digests": { "md5": "48622f3c871d54ff06cf91f007c91c0f", "sha256": "040afb4d70e57220ec5eca2c5255a3d0a785373e28bd71c136f2d43ee0c20b37" }, "downloads": -1, "filename": "figtion-0.9.2-py3-none-any.whl", "has_sig": false, "md5_digest": "48622f3c871d54ff06cf91f007c91c0f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 5357, "upload_time": "2019-02-12T17:54:20", "url": "https://files.pythonhosted.org/packages/7d/72/7888cefafda7cfe0c904d6402d735b57cebbb2527e4925b5c45893c8ecb4/figtion-0.9.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "48c3491d23e0050babe40df93900b71d", "sha256": "c635e5b44dd20bb6ea3a84b0aee483c7d614318abc960c7dd84c7da812483e95" }, "downloads": -1, "filename": "figtion-0.9.2.tar.gz", "has_sig": false, "md5_digest": "48c3491d23e0050babe40df93900b71d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 3655, "upload_time": "2019-02-12T17:54:21", "url": "https://files.pythonhosted.org/packages/6a/34/79ade523c70d403167f5310c20e9e3ce5b2ee48e22fe60e49fe7a15dc8bf/figtion-0.9.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "48622f3c871d54ff06cf91f007c91c0f", "sha256": "040afb4d70e57220ec5eca2c5255a3d0a785373e28bd71c136f2d43ee0c20b37" }, "downloads": -1, "filename": "figtion-0.9.2-py3-none-any.whl", "has_sig": false, "md5_digest": "48622f3c871d54ff06cf91f007c91c0f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 5357, "upload_time": "2019-02-12T17:54:20", "url": "https://files.pythonhosted.org/packages/7d/72/7888cefafda7cfe0c904d6402d735b57cebbb2527e4925b5c45893c8ecb4/figtion-0.9.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "48c3491d23e0050babe40df93900b71d", "sha256": "c635e5b44dd20bb6ea3a84b0aee483c7d614318abc960c7dd84c7da812483e95" }, "downloads": -1, "filename": "figtion-0.9.2.tar.gz", "has_sig": false, "md5_digest": "48c3491d23e0050babe40df93900b71d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 3655, "upload_time": "2019-02-12T17:54:21", "url": "https://files.pythonhosted.org/packages/6a/34/79ade523c70d403167f5310c20e9e3ce5b2ee48e22fe60e49fe7a15dc8bf/figtion-0.9.2.tar.gz" } ] }