{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet", "Topic :: Utilities" ], "description": "Djangokeys\n==========\n\nThis Python module is used to generate and handle secret keys for Django.\n\n* It comes with a CLI tool to generate secret keys for Django.\n* It can be used to store and retrieve Django's secret key.\n\n\nCommand-Line Tool\n-----------------\n\nThis module also implements a CLI tool, that can be used to generate secret\nkeys for Django. For more information, use the following command:\n\ncode-block :: console\n\n $ python3 -m djangokeys --help\n\n\nFor example, one could generate a new key and store it in the file secret.key\nby using the command below:\n\ncode-block :: console\n\n $ python3 -m djangokeys --length 128 > secret.key\n\n\nPython Module\n-------------\n\nThe python module also provides the functionality for reading the secret\nfrom a file. In the example below, the secret key is stored in the file\ndata/secret.txt relative to Django's **manage.py** file. By setting the strict\nparameter to True, it is required that the file exists. If it cannot be found,\nan exception is raised.\n\ncode-block :: python\n\n # file: config/settings.py\n\n import djangokeys\n\n SECRET_KEY = djangokeys.retrieve_secret_key_from_file(\n os.path.join(BASE_DIR, \"data/secret.txt\"), \n strict=True)\n\n\nIf the strict parameter is not provided, and the file is not found, a new\nsecret key is automatically generated, and stored in a new file with the\ngiven filepath.\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/averr/djangokeys/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "djangokeys", "package_url": "https://pypi.org/project/djangokeys/", "platform": "", "project_url": "https://pypi.org/project/djangokeys/", "project_urls": { "Homepage": "https://bitbucket.org/averr/djangokeys/" }, "release_url": "https://pypi.org/project/djangokeys/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "Module and CLI tool for handling Django keys.", "version": "0.1.1" }, "last_serial": 3417099, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "5efa9297d469a48b01bb4266a6f2bf4b", "sha256": "492b295957cf42b334b07b7a7a3b89bd3c9ac1fcf5795f2b9e3cb00106134fd1" }, "downloads": -1, "filename": "djangokeys-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "5efa9297d469a48b01bb4266a6f2bf4b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6058, "upload_time": "2017-12-14T16:10:36", "url": "https://files.pythonhosted.org/packages/e6/b5/30980569b4265ef84741d64b3377251b217125e1671475c841b540a3ab52/djangokeys-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9878919ac1270d96b8081b7c7663c7e1", "sha256": "aaf2eb4cee33bc9186cdd9428e41398369a801473cf0493b1b9a1914e34bcacd" }, "downloads": -1, "filename": "djangokeys-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9878919ac1270d96b8081b7c7663c7e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4034, "upload_time": "2017-12-14T16:10:37", "url": "https://files.pythonhosted.org/packages/af/f6/72b102b01b50e827ef49dc62011376e15474514d1efcbdf598d23a12b9f8/djangokeys-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "31789948ae2f0305360893e69ab4623e", "sha256": "60c0c363492cff7c23fd94873968b264aa3c6f7618f83ef3862facd6b622fe08" }, "downloads": -1, "filename": "djangokeys-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "31789948ae2f0305360893e69ab4623e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6060, "upload_time": "2017-12-14T16:21:04", "url": "https://files.pythonhosted.org/packages/33/52/5c4f9b2540eb3fe09cecfaab42e74ab7386b179d8a6c6595e4b831c0add9/djangokeys-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3f3e3c16a2ded0ebe3ef068639a9b431", "sha256": "61040772b54b9dba75f5f1a781898177b96de0a11f1501012bf6ae44b89ac7e7" }, "downloads": -1, "filename": "djangokeys-0.1.1.tar.gz", "has_sig": false, "md5_digest": "3f3e3c16a2ded0ebe3ef068639a9b431", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4030, "upload_time": "2017-12-14T16:21:06", "url": "https://files.pythonhosted.org/packages/8b/ed/ce9b55e8ed3b7903774d4ecf252992497e45b34682fb1defa2af5817ab3d/djangokeys-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "31789948ae2f0305360893e69ab4623e", "sha256": "60c0c363492cff7c23fd94873968b264aa3c6f7618f83ef3862facd6b622fe08" }, "downloads": -1, "filename": "djangokeys-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "31789948ae2f0305360893e69ab4623e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6060, "upload_time": "2017-12-14T16:21:04", "url": "https://files.pythonhosted.org/packages/33/52/5c4f9b2540eb3fe09cecfaab42e74ab7386b179d8a6c6595e4b831c0add9/djangokeys-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3f3e3c16a2ded0ebe3ef068639a9b431", "sha256": "61040772b54b9dba75f5f1a781898177b96de0a11f1501012bf6ae44b89ac7e7" }, "downloads": -1, "filename": "djangokeys-0.1.1.tar.gz", "has_sig": false, "md5_digest": "3f3e3c16a2ded0ebe3ef068639a9b431", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4030, "upload_time": "2017-12-14T16:21:06", "url": "https://files.pythonhosted.org/packages/8b/ed/ce9b55e8ed3b7903774d4ecf252992497e45b34682fb1defa2af5817ab3d/djangokeys-0.1.1.tar.gz" } ] }