{ "info": { "author": "Aniruddha Maru", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Berglas Library for Python\n==========================\n\n.. image:: https://travis-ci.org/maroux/berglas-python.svg?branch=master\n :target: https://travis-ci.org/maroux/berglas-python\n\n.. image:: https://coveralls.io/repos/github/maroux/berglas-python/badge.svg?branch=master\n :target: https://coveralls.io/github/maroux/berglas-python?branch=master\n\n.. image:: https://img.shields.io/pypi/v/berglas.svg?style=flat-square\n :target: https://pypi.python.org/pypi/berglas\n\n.. image:: https://img.shields.io/pypi/pyversions/berglas.svg?style=flat-square\n :target: https://pypi.python.org/pypi/berglas\n\n.. image:: https://img.shields.io/pypi/implementation/berglas.svg?style=flat-square\n :target: https://pypi.python.org/pypi/berglas\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n :target: https://github.com/ambv/black\n\nThis library automatically parses berglas references when imported.\n\nOnly Python 3.6+ is supported currently.\n\nYou can find the latest, most up to date, documentation on `Github`_.\n\nQuick Start\n-----------\n\nInstall library:\n\n.. code:: sh\n\n pip install berglas\n\nImport the module:\n\n.. code:: python\n\n import berglas.auto # noqa\n\nWhen imported, the `berglas` module will:\n\n1. Detect the runtime environment and call the appropriate API to get the list\nof environment variables that were set on the resource at deploy time\n\n1. Download and decrypt any secrets that match the `Berglas environment\nvariable reference syntax`_\n\n1. Replace the value for the environment variable with the decrypted secret\n\nYou can also opt out of auto-parsing and call the library yourself instead:\n\n.. code:: python\n\n import os\n\n from berglas import resolver\n\n if __name__ == '__main__':\n client = resolver.Client()\n client.replace(\"MY_SECRET\")\n print(os.environ[\"MY_SECRET\"])\n\n // alternatively, use resolve method to simply get the value without updating environment:\n my_secret = client.resolve(os.environ[\"MY_SECRET\"])\n print(my_secret)\n\nRelease Notes\n-------------\n\nv0.1\n~~~~\n\n- First version\n\nDevelopment\n-----------\n\nGetting Started\n~~~~~~~~~~~~~~~\nAssuming that you have Python, ``pyenv`` and ``pyenv-virtualenv`` installed, set up your\nenvironment and install the required dependencies like this instead of\nthe ``pip install berglas`` defined above:\n\n.. code:: sh\n\n $ git clone https://github.com/maroux/berglas-python.git\n $ cd python\n $ pyenv virtualenv 3.7.2 berglas-3.7\n ...\n $ pyenv shell berglas-3.7\n $ pip install -r requirements/dev-3.7.txt\n\nRunning Tests\n~~~~~~~~~~~~~\nYou can run tests in using ``make test``. By default,\nit will run all of the unit and functional tests, but you can also specify your own\n``py.test`` options.\n\n.. code:: sh\n\n $ py.test\n\n\nGetting Help\n------------\n\nWe use GitHub issues for tracking bugs and feature requests.\n\n* If it turns out that you may have found a bug, please `open an issue `__\n\n.. _Github: github.com/maroux/berglas-python\n.. _Berglas environment variable reference syntax: https://github.com/GoogleCloudPlatform/berglas/blob/master/doc/reference-syntax.md\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/maroux/berglas-python", "keywords": "secrets gcs gcp", "license": "Apache Software License (Apache License 2.0)", "maintainer": "Aniruddha Maru", "maintainer_email": "aniruddhamaru@gmail.com", "name": "berglas", "package_url": "https://pypi.org/project/berglas/", "platform": "", "project_url": "https://pypi.org/project/berglas/", "project_urls": { "Homepage": "https://github.com/maroux/berglas-python" }, "release_url": "https://pypi.org/project/berglas/0.1.0/", "requires_dist": [ "pycryptodome", "google-api-python-client", "google-cloud-storage", "google-cloud-kms", "flake8 ; extra == 'dev'", "twine ; extra == 'publish'", "wheel ; extra == 'publish'", "pytest ; extra == 'test'", "flake8 ; extra == 'test'", "mypy ; extra == 'test'", "ipdb ; extra == 'test'", "coverage ; extra == 'test'", "coveralls ; extra == 'test'", "pytest-cov ; extra == 'test'", "black ; extra == 'test'" ], "requires_python": ">=3.6", "summary": "Berglas Python Library", "version": "0.1.0" }, "last_serial": 5857680, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "ab5baff1778037ffe7420c79d5baf9b4", "sha256": "0bce088cc04e264dfe9b7251ba57d974e3e7ad8df20e265a9f1a1831b09ab04b" }, "downloads": -1, "filename": "berglas-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ab5baff1778037ffe7420c79d5baf9b4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 11403, "upload_time": "2019-09-19T16:51:23", "url": "https://files.pythonhosted.org/packages/96/08/6c687961aa7f255d12ba49eaaae32d145a60c33f08ae344bf737ba50b2d0/berglas-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d1b3921ad82bed47e13a90e3ffddd918", "sha256": "7b9371ae4d9a2de524fadb6533bba3bda05a28af58f5368d1a020a051998947c" }, "downloads": -1, "filename": "berglas-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d1b3921ad82bed47e13a90e3ffddd918", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 6891, "upload_time": "2019-09-19T16:51:26", "url": "https://files.pythonhosted.org/packages/b9/b0/cea350879d915e62387d0f88e2cfdb7e4b2e1bdf371fe016c94521ed2f3f/berglas-0.1.0.tar.gz" } ], "0.1.0a1": [ { "comment_text": "", "digests": { "md5": "170a6112f9e384c699b45d0415f3fac3", "sha256": "3f91d20515ec7d40eda928061e669bceeccd320b71dafa07817df8153a4fc3b5" }, "downloads": -1, "filename": "berglas-0.1.0a1-py3-none-any.whl", "has_sig": false, "md5_digest": "170a6112f9e384c699b45d0415f3fac3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 11363, "upload_time": "2019-07-26T22:16:22", "url": "https://files.pythonhosted.org/packages/6a/d5/104b565d9be2e85e783d68125def3904e6210f9d59cb33278a7e40259060/berglas-0.1.0a1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cdb0a7fae4ab3a25132be0af37c0fb9b", "sha256": "24af4629e00cfd848220757678694d38f59ddd18f0807f8e020e5e2a53afcb5a" }, "downloads": -1, "filename": "berglas-0.1.0a1.tar.gz", "has_sig": false, "md5_digest": "cdb0a7fae4ab3a25132be0af37c0fb9b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 6855, "upload_time": "2019-07-26T22:16:23", "url": "https://files.pythonhosted.org/packages/4d/b8/1003ea36f5b35969fee5b50c0887d5e85e21927c60bf882434e910321fb2/berglas-0.1.0a1.tar.gz" } ], "0.1.0a2": [ { "comment_text": "", "digests": { "md5": "ded91787f2b6aec651999e1129ce8da6", "sha256": "0ca436be14f6273de513cc3ac6173519c074e4e1ac6f0642b867075d1613274a" }, "downloads": -1, "filename": "berglas-0.1.0a2-py3-none-any.whl", "has_sig": false, "md5_digest": "ded91787f2b6aec651999e1129ce8da6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 11379, "upload_time": "2019-07-26T23:05:53", "url": "https://files.pythonhosted.org/packages/b3/b6/039834a99ffbd95577eed6e974b3aa5a4ea20444cace03e93c2c5f155a6e/berglas-0.1.0a2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "41d4a69a56c192c1d525203ac0a93bb6", "sha256": "cdc97d7a37dd0d3bf7aecb835739199ae6db71999f9e87f868de76bcc266971f" }, "downloads": -1, "filename": "berglas-0.1.0a2.tar.gz", "has_sig": false, "md5_digest": "41d4a69a56c192c1d525203ac0a93bb6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 6866, "upload_time": "2019-07-26T23:05:56", "url": "https://files.pythonhosted.org/packages/d5/a9/37a0ccf6f0fb593d2e1d4e567a0a9126e4a77c570cd76e0f7dd62aa22c31/berglas-0.1.0a2.tar.gz" } ], "0.1.0a3": [ { "comment_text": "", "digests": { "md5": "a54f272a8854e3688f8a47461b3f8d38", "sha256": "89a729400c2d520850aa8c6a56468159bf8f740f9217407238c084191520fb89" }, "downloads": -1, "filename": "berglas-0.1.0a3-py3-none-any.whl", "has_sig": false, "md5_digest": "a54f272a8854e3688f8a47461b3f8d38", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 11428, "upload_time": "2019-08-06T21:17:52", "url": "https://files.pythonhosted.org/packages/ed/23/8fe85f1e1d55b7cc24f424e317de12870ec5d48c9927aed6811ac29146d5/berglas-0.1.0a3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "55d1503c6094d68b4bbb30444b8ceffb", "sha256": "a3210a04d7a231cadf55d47fb1bcf6bdb69af99846b4fcc439c19bfabaf60b0b" }, "downloads": -1, "filename": "berglas-0.1.0a3.tar.gz", "has_sig": false, "md5_digest": "55d1503c6094d68b4bbb30444b8ceffb", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 6944, "upload_time": "2019-08-06T21:17:54", "url": "https://files.pythonhosted.org/packages/3a/33/97f7811b783357e3940aa0225627128116c492d655bad70855a3303c05fa/berglas-0.1.0a3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ab5baff1778037ffe7420c79d5baf9b4", "sha256": "0bce088cc04e264dfe9b7251ba57d974e3e7ad8df20e265a9f1a1831b09ab04b" }, "downloads": -1, "filename": "berglas-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ab5baff1778037ffe7420c79d5baf9b4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 11403, "upload_time": "2019-09-19T16:51:23", "url": "https://files.pythonhosted.org/packages/96/08/6c687961aa7f255d12ba49eaaae32d145a60c33f08ae344bf737ba50b2d0/berglas-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d1b3921ad82bed47e13a90e3ffddd918", "sha256": "7b9371ae4d9a2de524fadb6533bba3bda05a28af58f5368d1a020a051998947c" }, "downloads": -1, "filename": "berglas-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d1b3921ad82bed47e13a90e3ffddd918", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 6891, "upload_time": "2019-09-19T16:51:26", "url": "https://files.pythonhosted.org/packages/b9/b0/cea350879d915e62387d0f88e2cfdb7e4b2e1bdf371fe016c94521ed2f3f/berglas-0.1.0.tar.gz" } ] }