{ "info": { "author": "halprin", "author_email": "me@halprin.io", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# git-secret\nGit without secrets\n\n## Prerequisites\n[Python 3](https://www.python.org/downloads/) is required. Python 2 is not supported.\n\nSecond, Python 3's `bin` directory needs to be in your `PATH` environment variable. For example, if you are using the\npython.org install on macOS, you will need to add the following to your `~/.profile`.\n```bash\nPATH=\"/Library/Frameworks/Python.framework/Versions/3.*/bin:${PATH}\"\n```\n\n## Installation\n`git-secrets` is located on [PyPI](https://pypi.org/project/qpp-git-secrets/).\n\nTo install, run the following.\n```bash\n$ pip3 install qpp-git-secrets\n```\n\n`sudo` may be needed if your Python 3 installation is in a protected directory. This will put the command the `bin`\ndirectory of your Python 3 installation.\n\nTo update `git-secrets` to the latest version, run the following.\n```bash\n$ pip3 install --upgrade qpp-git-secrets\n```\n\nAgain, `sudo` may be required.\n\n## Usage\n\nCurrently, `git-secrets` only checks the added lines of staged files. AKA, only the added lines that are about to be\ncommitted will be checked.\n\n### Installing the Pre-commit Hook\n\nRun the following when the PWD is in the repository you want to add a pre-commit hook...\n```bash\n$ git secrets install\n```\n\nIf there exists a `pre-commit.d` directory, this will add a bash script into that directory. If that directory doesn't\nexist, the `pre-commit` bash script will be created directly. If the `pre-commit` script already exists, `git-secrets`\nwill exit with an error since it chooses to not remove the previous pre-commit script.\n\n### Manually scanning\nIf you want to manually scan a repository, you can run the following while your PWD is in the repository...\n```bash\n$ git secrets scan\n```\n\nSecrets are then scanned.\n\n### Specifying Secrets\nThere are two locations that `git-secrets` checks for secret specifications. The secrets from the two locations are\nmerged together.\n1. A `.gitsecrets` file in the top level directory of the repository.\n1. `~/.gitsecrets`.\n\nEach line in these files should contain a regular expression. The regular expression syntax is based off what the\n[Python 3 `re` module](https://docs.python.org/3/library/re.html) supports.\n\n#### Example Secrets\nTINs that don't start with `000` or `999` or don't have `00` for the middle number group.\n```regexp\n(\\D|^)(?!000)(?!999)\\d{3}\\s(?!00)\\d{2}\\s\\d{4}(\\D|$)\n(\\D|^)(?!000)(?!999)\\d{3}-(?!00)\\d{2}-\\d{4}(\\D|$)\n(\\D|^)(?!000)(?!999)\\d{3}(?!00)\\d{2}\\d{4}(\\D|$)\n```\n\n## Development\nI accept PRs! Check out the [issues](https://github.com/halprin/git-secrets/issues).\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/halprin/git-secrets", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "qpp-git-secrets", "package_url": "https://pypi.org/project/qpp-git-secrets/", "platform": "", "project_url": "https://pypi.org/project/qpp-git-secrets/", "project_urls": { "Homepage": "https://github.com/halprin/git-secrets" }, "release_url": "https://pypi.org/project/qpp-git-secrets/1.1.1/", "requires_dist": [ "click (==7.0)", "unidiff (==0.5.5)" ], "requires_python": "", "summary": "Git without secrets", "version": "1.1.1" }, "last_serial": 4565690, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "a78eaaca9527f64aaceb8beba1dfa28a", "sha256": "3e1cd2da395ad3ed1662fd57b6fbd80e20c5f39af827474056bf46200d450140" }, "downloads": -1, "filename": "qpp_git_secrets-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a78eaaca9527f64aaceb8beba1dfa28a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 18800, "upload_time": "2018-11-27T20:43:17", "url": "https://files.pythonhosted.org/packages/19/2e/bf929ae92c0d3bc3951643a0c2f959ece92875b1be3d15d7c8b2720b97a3/qpp_git_secrets-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bf5ec955e0f1666031d19e225639bdb0", "sha256": "5d713148b3d109b7413b60c07f0ca22123f500d393363ed4ecf54a29a5e80dc8" }, "downloads": -1, "filename": "qpp-git-secrets-1.0.0.tar.gz", "has_sig": false, "md5_digest": "bf5ec955e0f1666031d19e225639bdb0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4329, "upload_time": "2018-11-27T20:43:52", "url": "https://files.pythonhosted.org/packages/14/c3/29f0bc4ea79329ad687b2275335992dc416da8a44ea7128a4b10fb0e1e45/qpp-git-secrets-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "76b5282b09e8df724f17804531c849e2", "sha256": "666ce35899c7e5f9829136bb71611942ab568316904f35d9a8e8683f67371181" }, "downloads": -1, "filename": "qpp_git_secrets-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "76b5282b09e8df724f17804531c849e2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19302, "upload_time": "2018-11-28T19:22:46", "url": "https://files.pythonhosted.org/packages/73/2f/c6b063309600ab25ac403805b422c69e1fd70fa3ea0b57631151e98e51e0/qpp_git_secrets-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2050e1ddb2956f2bda505d28b812c0ae", "sha256": "b7e298dc9c915302be9815c6a101c671b810dc8e8197d3fc71b7e614ad27d225" }, "downloads": -1, "filename": "qpp-git-secrets-1.0.1.tar.gz", "has_sig": false, "md5_digest": "2050e1ddb2956f2bda505d28b812c0ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4523, "upload_time": "2018-11-28T19:22:47", "url": "https://files.pythonhosted.org/packages/40/1a/94174454b36fc4f7f194c159e3b210b98a59e7dc9a9b1584acc1e13c92b2/qpp-git-secrets-1.0.1.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "553f85cb1ee82cca5cc52360a280b516", "sha256": "db869d4214178ce59b5db577e0d95f6680e604f803ed30d008ce84d3fc88adf7" }, "downloads": -1, "filename": "qpp_git_secrets-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "553f85cb1ee82cca5cc52360a280b516", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 20044, "upload_time": "2018-12-05T18:42:13", "url": "https://files.pythonhosted.org/packages/c8/cf/d4b7f845e0610c33e795512ac4c93269e2691307f5e32ba4ff2b1f9055b3/qpp_git_secrets-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "83e8955e7d9a376841c2fa78e233fcf2", "sha256": "2aae53a1466819e1c642efa34712d4432d06ab5ea15c4a1c8a1d7322782edf83" }, "downloads": -1, "filename": "qpp-git-secrets-1.1.0.tar.gz", "has_sig": false, "md5_digest": "83e8955e7d9a376841c2fa78e233fcf2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5023, "upload_time": "2018-12-05T18:42:15", "url": "https://files.pythonhosted.org/packages/7c/b2/7cd93c610224a27ecb56d8332257b52635bb96987dd06ef641796ac11bea/qpp-git-secrets-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "96284f494c82308aa23c813b92114fdc", "sha256": "5952bd4194cf41d8a048475a4ae89da405349857c4c273ff8e13de1f677b1e34" }, "downloads": -1, "filename": "qpp_git_secrets-1.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "96284f494c82308aa23c813b92114fdc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 20426, "upload_time": "2018-12-05T22:02:51", "url": "https://files.pythonhosted.org/packages/c8/97/2256c9d38b727d7efbcc168535e63a005ad7dca9413dd3be8243b7d7024e/qpp_git_secrets-1.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a7566988d2d3cfc312d5be05ec707255", "sha256": "da3c7648977e7f38f69394f3934bdf6a717ead60261b21a993c53a2269dc6219" }, "downloads": -1, "filename": "qpp-git-secrets-1.1.1.tar.gz", "has_sig": false, "md5_digest": "a7566988d2d3cfc312d5be05ec707255", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5199, "upload_time": "2018-12-05T22:02:52", "url": "https://files.pythonhosted.org/packages/a7/53/2a3302269cf5eacbad1ed61afec9701ba9afa46d8df3fd355ee26c92bc7d/qpp-git-secrets-1.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "96284f494c82308aa23c813b92114fdc", "sha256": "5952bd4194cf41d8a048475a4ae89da405349857c4c273ff8e13de1f677b1e34" }, "downloads": -1, "filename": "qpp_git_secrets-1.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "96284f494c82308aa23c813b92114fdc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 20426, "upload_time": "2018-12-05T22:02:51", "url": "https://files.pythonhosted.org/packages/c8/97/2256c9d38b727d7efbcc168535e63a005ad7dca9413dd3be8243b7d7024e/qpp_git_secrets-1.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a7566988d2d3cfc312d5be05ec707255", "sha256": "da3c7648977e7f38f69394f3934bdf6a717ead60261b21a993c53a2269dc6219" }, "downloads": -1, "filename": "qpp-git-secrets-1.1.1.tar.gz", "has_sig": false, "md5_digest": "a7566988d2d3cfc312d5be05ec707255", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5199, "upload_time": "2018-12-05T22:02:52", "url": "https://files.pythonhosted.org/packages/a7/53/2a3302269cf5eacbad1ed61afec9701ba9afa46d8df3fd355ee26c92bc7d/qpp-git-secrets-1.1.1.tar.gz" } ] }