{ "info": { "author": "Rafael Herrero Solis", "author_email": "rafael@herrerosolis.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5" ], "description": "djangosecure\n============\n\n|build status| |coverage report| Secure Django settings (Works with\nother Python scripts)\n\nThis module creates a cryptokey outside the django project directory,\nencrypts with that cryptokey your django sensible settings and stores\nthe encrypted values.\n\nYou can use it at your project settings.py file \\* Note: Before running\nthe django site with gunicorn or similar for the first time, you must\nrun somme manage command to be prompt for the sensible settings \\*\nDeveloped for Linux/Python2.7, Python3.5\n\nInstall\n=======\n\nLinux required packages: python-dev (python3.5-dev if python==3.5)\nlibgmp-dev gcc ``pip install djangosecure``\n\nExamples\n========\n\nSECRET\\_KEY\n-----------\n\nsettings.py\n\n::\n\n from djangosecure import DjangoSecretKey\n\n\n SECRET_KEY_FILE_PATH = '/some/path/to/store/file.secret'\n secret_key = DjangoSecretKey(SECRET_KEY_FILE_PATH)\n SECRET_KEY = secret_key.key\n\n- Note: If the secret key file path does not exist it will try to\n create it. (write permissio required @SECRET\\_KEY\\_FILE\\_PATH origin)\n- Note: The secret file will be automatically created the first time\n you call secret\\_key.key\n- The cryptographic key is stored by default at\n ~/.private/django\\_secure.key you can change this by passing\n crypto\\_key\\_file= to the DjangoSecretKey constructor:\n ``secret_key = DjangoSecretKey(SECRET_KEY_FILE_PATH, crypto_key_file='path/to/your/cryptokey')``\n DjangoDatabaseSettings and EncryptedStoredSettings accept\n crypto\\_key\\_file parameter too.\n\nDATABASES\n---------\n\nThe first time you run python manage.py runserver you will be prompted\nfor your database settings. They will be saved encrypted with the\ngenerated cryptokey generated by django-secure module.\n\nYou can have as many database configurations, change the parameter to\nchange the configuration and running ``python manage.py runserver`` you\nwill be prompted again for the new settings\n\n::\n\n from djangosecure import DjangoDatabaseSettings\n databases = DjangoDatabaseSettings(os.path.join(PROJECT_ROOT, 'databases.cnf'), crypto_key_file='path/to/your/cryptokey)\n\n DATABASES = {\n 'default': 'default': databases.settings('production'),\n }\n\nOther settings\n--------------\n\nTo encrypt any other setting use EncryptedStoredSettings, for example:\n\n::\n\n from djangosecure import EncryptedStoredSettings\n encripted_settings = EncryptedStoredSettings('./hidden/settings/path'))\n\n CELERY_BROKER = 'amqp://{0}:{1}@localhost//'.format(\n encripted_settings.get('celery', 'broker_username', config_file=\"config/file/path/here.cfg\"),\n encripted_settings.get('celery', 'broker_password')\n )\n\nRuning tests\n============\n\nnosetests --with-coverage --cover-html\n======================================\n\nnosetests --with-coverage --cover-html --cover-inclusive --cover-package=djangosecure\n=====================================================================================\n\n- Note: File and path are automatically created at first call\n\n.. |build status| image:: https://git.herrerosolis.com/rafahsolis/djangosecure/badges/master/build.svg\n :target: https://git.herrerosolis.com/rafahsolis/djangosecure/commits/master\n.. |coverage report| image:: https://git.herrerosolis.com/rafahsolis/djangosecure/badges/master/coverage.svg\n :target: https://git.herrerosolis.com/rafahsolis/djangosecure/commits/master\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/rafahsolis/djangosecure/tarball/v0.0.11", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rafahsolis/djangosecure", "keywords": "django", "license": "Apache License, Version 2.0", "maintainer": "", "maintainer_email": "", "name": "djangosecure", "package_url": "https://pypi.org/project/djangosecure/", "platform": "", "project_url": "https://pypi.org/project/djangosecure/", "project_urls": { "Download": "https://github.com/rafahsolis/djangosecure/tarball/v0.0.11", "Homepage": "https://github.com/rafahsolis/djangosecure" }, "release_url": "https://pypi.org/project/djangosecure/0.0.11/", "requires_dist": null, "requires_python": "", "summary": "Secure your django sensible settings", "version": "0.0.11" }, "last_serial": 4124038, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "256cb23f4d7a47051448431e45699694", "sha256": "c981afd5e89434f474474544224c889ab0cba0144a2def80d779951663533a4a" }, "downloads": -1, "filename": "djangosecure-0.0.1.tar.gz", "has_sig": false, "md5_digest": "256cb23f4d7a47051448431e45699694", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4722, "upload_time": "2017-01-14T20:02:40", "url": "https://files.pythonhosted.org/packages/1c/ed/bfeeb8d6e79ae3e325298f3f7557327feab3b361fc1630b290ca168a870d/djangosecure-0.0.1.tar.gz" } ], "0.0.10": [ { "comment_text": "", "digests": { "md5": "c8c160ae6620e45fa400bce0bad94e86", "sha256": "22dade1ee870a09e8ca5f00847133073c3884b68ba8476f75a79693bb8525cbd" }, "downloads": -1, "filename": "djangosecure-0.0.10.tar.gz", "has_sig": false, "md5_digest": "c8c160ae6620e45fa400bce0bad94e86", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8562, "upload_time": "2018-08-01T09:44:16", "url": "https://files.pythonhosted.org/packages/d0/b3/ee905b4a1676c09a9828b157948c64121f88e5e4d6e532114dff3bef7280/djangosecure-0.0.10.tar.gz" } ], "0.0.11": [ { "comment_text": "", "digests": { "md5": "e5c47fffc1a8c9873db325e00e01d882", "sha256": "5358b12a3557c5b54cb69a2ae9a3e00d0c80efd9ca5c3edbf90eadc723262045" }, "downloads": -1, "filename": "djangosecure-0.0.11.tar.gz", "has_sig": false, "md5_digest": "e5c47fffc1a8c9873db325e00e01d882", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8575, "upload_time": "2018-08-01T10:04:03", "url": "https://files.pythonhosted.org/packages/5e/33/1acb29891777386ec1582ec1acfaa14b5475e7596ea0259e128ceba7addc/djangosecure-0.0.11.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "7e65f79ff9f4315e38c7e4fe78d23b6e", "sha256": "06cb0cd36f410a513c94ea6feebeec2f60de78a9c8fc0f0b39544fa3273ab0cd" }, "downloads": -1, "filename": "djangosecure-0.0.2.tar.gz", "has_sig": false, "md5_digest": "7e65f79ff9f4315e38c7e4fe78d23b6e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7309, "upload_time": "2017-01-22T17:12:26", "url": "https://files.pythonhosted.org/packages/06/2d/d46a76b175e27f7e8f25e94a2ba7386506f34464a0c05643e9ea838bdcc7/djangosecure-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "20c232abb376b36893f66f9119e32f0f", "sha256": "335747f071ba988d0ef7d6ce293d74914a72ab839ec3ded497c357227dbf8490" }, "downloads": -1, "filename": "djangosecure-0.0.3.tar.gz", "has_sig": false, "md5_digest": "20c232abb376b36893f66f9119e32f0f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7342, "upload_time": "2017-04-10T20:40:44", "url": "https://files.pythonhosted.org/packages/33/3e/88692871159ec7ec1fb81a33b52129cfee85574864e25a4539cf2213fed5/djangosecure-0.0.3.tar.gz" } ], "0.0.4": [], "0.0.5": [ { "comment_text": "", "digests": { "md5": "492b3ff745a519b65bff171b02b99f89", "sha256": "6568f2fbfab853b40563fd410f6698d5792edeaa1b9ec405d8e95c48db18525b" }, "downloads": -1, "filename": "djangosecure-0.0.5.tar.gz", "has_sig": false, "md5_digest": "492b3ff745a519b65bff171b02b99f89", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7549, "upload_time": "2017-05-30T18:44:25", "url": "https://files.pythonhosted.org/packages/91/82/62a4ba062bf7b6982e14c03cebdf49c6e6d2a072ccba52969576c6a42b1f/djangosecure-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "a6333dab53e38e2e7b3e627f11e947e5", "sha256": "680133543c8d973dc243cc6241738a37b091a91e935b6052f0b126e4c5fcb34c" }, "downloads": -1, "filename": "djangosecure-0.0.6.tar.gz", "has_sig": false, "md5_digest": "a6333dab53e38e2e7b3e627f11e947e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7275, "upload_time": "2017-11-10T11:41:29", "url": "https://files.pythonhosted.org/packages/00/52/666aba2ecfac212fd5f4e25d16ec9f840ce2425ec8b6bf184248680d99fd/djangosecure-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "e596f468756fa89d8e1a7d338e9868b1", "sha256": "5f71e93e1a01baab08b7f0f8675c99d820017dd94456f7ab9f80345e6d607c8d" }, "downloads": -1, "filename": "djangosecure-0.0.7.tar.gz", "has_sig": false, "md5_digest": "e596f468756fa89d8e1a7d338e9868b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7516, "upload_time": "2018-05-07T07:31:16", "url": "https://files.pythonhosted.org/packages/40/b5/56eb65b0a2f778ff2bc258727f77d3837f1819c856c031f3b7ed92bc1c81/djangosecure-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "97aa4fb258ed3c20854afe6645af7c90", "sha256": "3dfcfed6a6d38cb3fdc9779677006f4e956cd6c846fadcf87da31e38d5d2af2c" }, "downloads": -1, "filename": "djangosecure-0.0.8.tar.gz", "has_sig": false, "md5_digest": "97aa4fb258ed3c20854afe6645af7c90", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7518, "upload_time": "2018-05-07T08:34:49", "url": "https://files.pythonhosted.org/packages/c5/6c/24a7c07431d5b15d9ac872ef0933281dff1719424a81852527a2ab826e4c/djangosecure-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "f9919d81cf60700e6792ffe1fcc2004c", "sha256": "e503023f3c60df318f5dac1a31588ac97bbe4ab0bd4a27ffc6371ec0c3a0ffc7" }, "downloads": -1, "filename": "djangosecure-0.0.9.tar.gz", "has_sig": false, "md5_digest": "f9919d81cf60700e6792ffe1fcc2004c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7510, "upload_time": "2018-05-07T09:10:27", "url": "https://files.pythonhosted.org/packages/63/18/7b7e8a8c42788f6ce0b3a7f6f41f17e8de993729fa37fb7f3b26726dafee/djangosecure-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e5c47fffc1a8c9873db325e00e01d882", "sha256": "5358b12a3557c5b54cb69a2ae9a3e00d0c80efd9ca5c3edbf90eadc723262045" }, "downloads": -1, "filename": "djangosecure-0.0.11.tar.gz", "has_sig": false, "md5_digest": "e5c47fffc1a8c9873db325e00e01d882", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8575, "upload_time": "2018-08-01T10:04:03", "url": "https://files.pythonhosted.org/packages/5e/33/1acb29891777386ec1582ec1acfaa14b5475e7596ea0259e128ceba7addc/djangosecure-0.0.11.tar.gz" } ] }