{ "info": { "author": "Andy Grabow", "author_email": "andy@freilandkiwis.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.11", "Framework :: Django :: 1.5", "Framework :: Django :: 1.6", "Framework :: Django :: 1.7", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Framework :: Django :: 2.0", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Security", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Keep your secrets secret! |BuildStatus|_ |Coverage|_\n======================================================\n\n.. |BuildStatus| image:: https://travis-ci.org/kakulukia/django-secrets.svg\n.. _BuildStatus: https://travis-ci.org/kakulukia/django-secrets\n\n.. |Coverage| image:: https://codecov.io/gh/kakulukia/django-secrets/branch/master/graph/badge.svg\n.. _Coverage: https://codecov.io/gh/kakulukia/django-secrets\n\nThis little app helps you to not commit your secrets to a repo and adds\na nice way of exporting/importing secrets for a new deployment or automated testing with environment variables.\n\nThough this never happened to me during coding, Travis had some problems to reliably execute the tests\nand hot load the new secrets, so I had move the secrets module into the my_secrets package to not have\ntwo modules named secrets. Python obviously cant handle that. Lesson learned after about 40 Travis builds. :(\n\ndjango-secrets is working under Django 1.5+ and Python 2.7, 3.5 and 3.6\n\nInstallation\n------------\n\n::\n\n pip install django-secrets\n\nUsage\n-----\n\nAfter installing the package please add it to your ``INSTALLED_APPS``\nsetting\n\n::\n\n INSTALLED_APPS = (\n ...\n 'django_secrets',\n )\n\nBecause we want to be able to hide our secret settings, we have to alter\nmanage.py to run some code before the Django magic happens. Open\n``manage.py`` and alter it like this:\n\n::\n\n if __name__ == \"__main__\":\n\n from django_secrets.startup import check\n check()\n\n ...\n\n\nNow that the check is in place, run ``manage.py`` to initialize your\nproject. This wll create a new secrets package in your project root with\nthe following contents:\n\n::\n\n secrets\n \u251c\u2500\u2500 .gitignore\n \u251c\u2500\u2500 __init__.py\n \u251c\u2500\u2500 definitions.py\n \u2514\u2500\u2500 secrets.py\n\nThe package also features a .gitignore file to prevent you from checking\nin any secrets to git. Now open ``definitions.py`` to add your secrets\nto the list. Start with the Django secret key for example. When your\ndone adding all secrets, run ``manage.py`` again and you wil be asked to\nenter your secrets.\n\nNow you can remove your secrets from ``settings.py`` and instead replace\nthem like this:\n\n::\n\n from my_secrets import secrets\n\n SECRET_KEY = secrets.SECRET_KEY\n\nSince the secrets are saved in a normal python package, you can just use\nthem the normal way, but now they are save! :)\n\nImport / Export\n---------------\n\nThis package adds a new management command: ``export_secrets``. This\nwill print out export statements so you can easily create environment\nvariables on a new machine and let the ``check`` function do the rest\nfor you, because it will also read in any known environment variables as\nsecret values. This is quite handy for dynamically spawned instances or\nCI testing.\n\nHave fun and stay safe!\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/kakulukia/django-secrets/tarball/1.0.2", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kakulukia/django-secrets", "keywords": "Django,secrets,deployment", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-secrets", "package_url": "https://pypi.org/project/django-secrets/", "platform": "", "project_url": "https://pypi.org/project/django-secrets/", "project_urls": { "Download": "https://github.com/kakulukia/django-secrets/tarball/1.0.2", "Homepage": "https://github.com/kakulukia/django-secrets" }, "release_url": "https://pypi.org/project/django-secrets/1.0.2/", "requires_dist": [ "Django (>=1.5)", "future", "six" ], "requires_python": ">=2.6", "summary": "The easy way of handling Django secrets.", "version": "1.0.2" }, "last_serial": 3964236, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "b89f469cd6cbeb4a041e8d13e61a5b97", "sha256": "3e1fb53d79405c3314e7797eb92b7f9b7ff3655123573fc1e9c7586bea5437b3" }, "downloads": -1, "filename": "django-secrets-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b89f469cd6cbeb4a041e8d13e61a5b97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5136, "upload_time": "2017-05-09T11:56:43", "url": "https://files.pythonhosted.org/packages/8d/ec/28102319f50277e63ecab5c98049779e02f85ad9abb7adcb73801195ae40/django-secrets-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "7b51fdc801b2c4aa61cf09fdabd244b9", "sha256": "412b376fabf2e9732a91d613dab7204ff85b01fdb137c5f8bbaf13f19d238373" }, "downloads": -1, "filename": "django-secrets-0.2.0.tar.gz", "has_sig": false, "md5_digest": "7b51fdc801b2c4aa61cf09fdabd244b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5133, "upload_time": "2017-05-09T11:59:04", "url": "https://files.pythonhosted.org/packages/84/cd/3b4f1e8d2eef4df3c58a57077c595d47b4f2d5447cb2e6aa9d1c846fecda/django-secrets-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "b5c1b56888c8374146944dc2f7e4f0f1", "sha256": "338746acf081851e24dcbb1f9cabd14d6ea30a31b4a18bbc070601ee0031facc" }, "downloads": -1, "filename": "django-secrets-0.2.1.tar.gz", "has_sig": false, "md5_digest": "b5c1b56888c8374146944dc2f7e4f0f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4970, "upload_time": "2017-05-09T12:38:43", "url": "https://files.pythonhosted.org/packages/15/2c/f2ce0c859fb891f11bd05d788e47b1e1dcc245cfacbdb5311bcff26d55f5/django-secrets-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "9ee47f50f7a7e0282db6ad710e9e058c", "sha256": "d35695f1d5f69bf6d18eec1560af83965a3075daa738e1e835abe053479ff817" }, "downloads": -1, "filename": "django-secrets-0.2.2.tar.gz", "has_sig": false, "md5_digest": "9ee47f50f7a7e0282db6ad710e9e058c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4982, "upload_time": "2017-05-16T02:48:57", "url": "https://files.pythonhosted.org/packages/27/aa/1b4c567cc67a7ed85be6bbe669a42b6677a568a3c205224e2e446ae1d546/django-secrets-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "0f4a04c18da77d9c77d5a32cf5abcee9", "sha256": "442eee042e0009a4d3e390e4254f81742db78d6a89d073c846cf6affb2e60590" }, "downloads": -1, "filename": "django-secrets-0.2.3.tar.gz", "has_sig": false, "md5_digest": "0f4a04c18da77d9c77d5a32cf5abcee9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4985, "upload_time": "2017-05-16T03:00:36", "url": "https://files.pythonhosted.org/packages/ce/d7/44883277e1503795ecab632857df16f92f261886c6e804c39e5020d338a7/django-secrets-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "796f84ad21b897a259774db20d739c3f", "sha256": "3e9e2169e0923771db73a9245551ebee24068b096b46845549578870c35fad75" }, "downloads": -1, "filename": "django-secrets-0.2.4.tar.gz", "has_sig": false, "md5_digest": "796f84ad21b897a259774db20d739c3f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5303, "upload_time": "2017-06-08T10:24:48", "url": "https://files.pythonhosted.org/packages/4d/84/5b7d8207b91aac4e5da6cc90dbf23099f41fa3ec41c43a5f2df1faa07609/django-secrets-0.2.4.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "32f9afa30f775d0d0eee3e78105557ae", "sha256": "333383dab758ed0c27dd77be1ad7923aaa17436aea7787e0a74058cdb6a5dfd0" }, "downloads": -1, "filename": "django-secrets-0.2.5.tar.gz", "has_sig": false, "md5_digest": "32f9afa30f775d0d0eee3e78105557ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5313, "upload_time": "2017-12-04T09:42:27", "url": "https://files.pythonhosted.org/packages/9a/16/0cfd5921f43f7270d205ede49feb26d6f12ee350bd04236f24e65e756d09/django-secrets-0.2.5.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "82b78f7e0fe0c80dc220b458dc8cfb41", "sha256": "1f918e46bb710451a6635d6c049c58a5c159d170ae4cddde465b7c31bfa0d1b3" }, "downloads": -1, "filename": "django_secrets-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "82b78f7e0fe0c80dc220b458dc8cfb41", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10941, "upload_time": "2018-02-23T15:09:15", "url": "https://files.pythonhosted.org/packages/dd/2e/7c2d2725aa77b5058256b23484d35b2c656bc7eb1dc70b78b32a031728f5/django_secrets-1.0.0-py2.py3-none-any.whl" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "e352d04f75d1ab7bf1e4da07642ffe92", "sha256": "ef8812dda13a6c9e4177f3f18206298fce944770277ab3e9bf4169bffb926a2e" }, "downloads": -1, "filename": "django_secrets-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e352d04f75d1ab7bf1e4da07642ffe92", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11004, "upload_time": "2018-05-17T18:37:35", "url": "https://files.pythonhosted.org/packages/6a/f8/86b52b3f33fea725b341ea047eabd2835659ac34da5f403eb60d4ad08e88/django_secrets-1.0.1-py2.py3-none-any.whl" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "75bc388c46fdd4e009ec13b2e473b04f", "sha256": "33fc09493654744171b6d8e7fff211d8d4df0036d0a3670921648fcfb8c0225c" }, "downloads": -1, "filename": "django_secrets-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "75bc388c46fdd4e009ec13b2e473b04f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.6", "size": 8640, "upload_time": "2018-06-15T10:31:17", "url": "https://files.pythonhosted.org/packages/aa/6d/78dbbc61119bda41ec432701b5aa89a12669c68598e953b89d3543efe64d/django_secrets-1.0.2-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "75bc388c46fdd4e009ec13b2e473b04f", "sha256": "33fc09493654744171b6d8e7fff211d8d4df0036d0a3670921648fcfb8c0225c" }, "downloads": -1, "filename": "django_secrets-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "75bc388c46fdd4e009ec13b2e473b04f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.6", "size": 8640, "upload_time": "2018-06-15T10:31:17", "url": "https://files.pythonhosted.org/packages/aa/6d/78dbbc61119bda41ec432701b5aa89a12669c68598e953b89d3543efe64d/django_secrets-1.0.2-py2.py3-none-any.whl" } ] }