{ "info": { "author": "Peter Shoukry", "author_email": "peter@blinkist.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# blinkist-config-python\nThe package simplifies accessing different configuration stores. The current supported stores are:\nENV - read from the application's environment variable\nSSM - read from the AWS SSM Parameter Store\n## Usage\n### ENV\n```python\nimport blinkistconfig.Config\n\n# Setup the Config to use the ENV as config store\nconfig = blinkistconfig.Config(env=\"development\", app_name=\"my_nice_app\", adapter_type=\"ENV\")\n\nmy_config_value = config.get(\"some/folder/config\")\n\n# This is being translated to ENV[\"SOME_FOLDER_CONFIG\"]\n\n```\n\n### SSM\nFor SSM this tool simulates namespace/directory functionality with each application\nhaving its own. By default requesting a parameter myparam1 within the application\ncalled my_nice_app will query the SSM parameter store for /application/my_nice_app/myparam1.\n\nThis harmonizes nicely with the ability of the SSM param store to do a prefix search.\nThe /application/my_nice_app prefix is the default \"private\" scope.\n\n\n```python\nimport blinkistconfig.Config\n\n# setup the Config to use the SSM as config store\nconfig = blinkistconfig.Config(env=\"development\", adapter_type=\"SSM\", app_name=\"my_nice_app\")\n\nmy_config_value = config.get(\"some/folder/config\")\n\n# This will try to get a parameter from SSM at \"/application/my_nice_app/some/folder/config\"\n\n```\n\nIt is also possible to also have other scopes, possibly shared between the applications.\nFor example\n```\nmy_config_value = config.get(\"another/config\", scope=\"global\")\n\n# This will replace `my_nice_app` with `global` and try to resolve \"/application/global/another/config\"\n```\n\n## Development\n\nTo install development requirements\n\n```bash\npip install -r requirements/dev.txt\npip install -e .\n```\n\nTo run tests\n\n```bash\nAWS_DEFAULT_REGION=\"us-east-1\" pytest --spec\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/blinkist/blinkist-config-python.\n\n## License\n\nThe package is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/blinkist/blinkist-config-python", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "blinkistconfig", "package_url": "https://pypi.org/project/blinkistconfig/", "platform": "", "project_url": "https://pypi.org/project/blinkistconfig/", "project_urls": { "Homepage": "https://github.com/blinkist/blinkist-config-python" }, "release_url": "https://pypi.org/project/blinkistconfig/0.0.4/", "requires_dist": [ "boto3" ], "requires_python": "", "summary": "Adapter based configuration handler (supports ENV and AWS SSM).", "version": "0.0.4" }, "last_serial": 4311948, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "b0be0e7a1723e39aca2ad1edc8d54992", "sha256": "9404ae3c8255491912fba2a544f46721223500de4b7c81ffc00a625c538d2e01" }, "downloads": -1, "filename": "blinkistconfig-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b0be0e7a1723e39aca2ad1edc8d54992", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5713, "upload_time": "2018-09-03T08:39:53", "url": "https://files.pythonhosted.org/packages/af/3b/5998b7a164f094d9f278804bf08279b17d418b7638d0ad5f560ee5d31917/blinkistconfig-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b63902c81e2e71a184264b5a087205e7", "sha256": "3337cae31634781edb87e8abd4102dddad87326751f30ccb4c76909425e5089b" }, "downloads": -1, "filename": "blinkistconfig-0.0.1.tar.gz", "has_sig": false, "md5_digest": "b63902c81e2e71a184264b5a087205e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3569, "upload_time": "2018-09-03T08:39:54", "url": "https://files.pythonhosted.org/packages/a8/b0/666e09f3fadaed38287d192bb457ae62e8e9f7d261b0094f677761ae9625/blinkistconfig-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "09172404a28ac25dd718a2c9cda10221", "sha256": "30d256ff441480ff5fa1acd28b9e6e6d43f1e0704b4c5ce9a781ee2c8c798a80" }, "downloads": -1, "filename": "blinkistconfig-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "09172404a28ac25dd718a2c9cda10221", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5736, "upload_time": "2018-09-26T10:31:57", "url": "https://files.pythonhosted.org/packages/a1/84/dd087f721924086f65cf66c112ebc1da2331b25736e1cd3a0dac3463d806/blinkistconfig-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6b06eb9fe1570555561cb4ae105a17d0", "sha256": "6c3f97b641664c93449b8546a012a366889b2fa05842473733fa4417b55eb1d4" }, "downloads": -1, "filename": "blinkistconfig-0.0.2.tar.gz", "has_sig": false, "md5_digest": "6b06eb9fe1570555561cb4ae105a17d0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3600, "upload_time": "2018-09-26T10:32:00", "url": "https://files.pythonhosted.org/packages/3e/9d/fd66569471724f94f405691733abb632ef7b46e5f3a137afcd9864a39ef3/blinkistconfig-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "029c0f52fcaa3beaf59e5601eab042cb", "sha256": "fa8f2f52eefb378b03231efa7bb378fa55c8c946dde86aefb29de458265a9516" }, "downloads": -1, "filename": "blinkistconfig-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "029c0f52fcaa3beaf59e5601eab042cb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5741, "upload_time": "2018-09-26T10:51:30", "url": "https://files.pythonhosted.org/packages/0c/15/122d3cf0d838a32ec7e3688b455b19d5d930609760c8756e538da7ac1db8/blinkistconfig-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0194c17b0a31af5e0045a16faa7549a7", "sha256": "6104eb33db01542e72b82fb2bf40adc977309b8c2b6bac352b3923f3bc2d5488" }, "downloads": -1, "filename": "blinkistconfig-0.0.3.tar.gz", "has_sig": false, "md5_digest": "0194c17b0a31af5e0045a16faa7549a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3601, "upload_time": "2018-09-26T10:51:32", "url": "https://files.pythonhosted.org/packages/13/c9/ca4b1b70ae49162a49b1c969b2eae2c879f59eea4feca0bbecf1b87fc036/blinkistconfig-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "fd3863686b798eef9045d696ffcf7eeb", "sha256": "474ba59adb549e197da43b0db2eff66ca23da71888d14d62f5ca5da3eea2b31a" }, "downloads": -1, "filename": "blinkistconfig-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "fd3863686b798eef9045d696ffcf7eeb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5744, "upload_time": "2018-09-26T11:13:29", "url": "https://files.pythonhosted.org/packages/dc/51/dbd83720af8571c8ad10626185c0244722ffc86b5039a065cae752a22220/blinkistconfig-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c5ca348830b8ef25dccba0a85a9c7aa7", "sha256": "71ea542090f4ef8423320be9a5ef34dac94b7765aabb10804aac4fc447698d54" }, "downloads": -1, "filename": "blinkistconfig-0.0.4.tar.gz", "has_sig": false, "md5_digest": "c5ca348830b8ef25dccba0a85a9c7aa7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3602, "upload_time": "2018-09-26T11:13:32", "url": "https://files.pythonhosted.org/packages/0b/97/82ec35f18d4345ca6f22939918a35dc36fb981ab21112efa3f3c04b42cab/blinkistconfig-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fd3863686b798eef9045d696ffcf7eeb", "sha256": "474ba59adb549e197da43b0db2eff66ca23da71888d14d62f5ca5da3eea2b31a" }, "downloads": -1, "filename": "blinkistconfig-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "fd3863686b798eef9045d696ffcf7eeb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5744, "upload_time": "2018-09-26T11:13:29", "url": "https://files.pythonhosted.org/packages/dc/51/dbd83720af8571c8ad10626185c0244722ffc86b5039a065cae752a22220/blinkistconfig-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c5ca348830b8ef25dccba0a85a9c7aa7", "sha256": "71ea542090f4ef8423320be9a5ef34dac94b7765aabb10804aac4fc447698d54" }, "downloads": -1, "filename": "blinkistconfig-0.0.4.tar.gz", "has_sig": false, "md5_digest": "c5ca348830b8ef25dccba0a85a9c7aa7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3602, "upload_time": "2018-09-26T11:13:32", "url": "https://files.pythonhosted.org/packages/0b/97/82ec35f18d4345ca6f22939918a35dc36fb981ab21112efa3f3c04b42cab/blinkistconfig-0.0.4.tar.gz" } ] }