Metadata-Version: 2.0
Name: python-git-secrets
Version: 0.0.2
Summary: Python implementation of git-secrets
Home-page: https://github.com/mbacchi/python-git-secrets
Author: Matt Bacchi
Author-email: mbacchi@gmail.com
License: BSD (Simplified)
Description-Content-Type: UNKNOWN
Platform: Posix; MacOS X; Windows
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: System :: Systems Administration
Requires-Python: >=3
Requires-Dist: dulwich

Python Git Secrets
==================

    A pure Python library providing
    `git-secrets <https://github.com/awslabs/git-secrets>`__
    functionality.

|Build Status|

We don't plan to do everything that
`git-secrets <https://github.com/awslabs/git-secrets>`__ does (i.e.
placing patterns in your .gitconfig file), but provide you with the
building blocks for matching patterns you don't want exposed to the
world via Github. This will allow you to run the tool in an AWS Lambda
function with no dependence on external binaries.

Included in this repository are AWS credentials solely used for testing
purposes. These are not valid AWS credentials, they were marked invalid
immediately after creating in the AWS console.

Requirements
------------

-  `Dulwich <https://github.com/jelmer/dulwich>`__ - A pure Python Git
   implementation.

Sample usage
------------

Run the ``python-git-secrets.py`` command to try it out:

::

    (venv) [mbacchi@hostname python-git-secrets]$ python samples/python-git-secrets.py --scan flask-quotes --repository https://github.com/mbacchi/flask-quotes --use_local_repo -r
    Scanning flask-quotes recursively
    flask-quotes
    SCANNING: flask-quotes/app.py
    Found verboten string in path flask-quotes

Running Tests
-------------

To run tests, execute ``test_driver.py`` from the top level directory,
you'll see output similar to:

::

    (venv) [mbacchi@hostname python-git-secrets]$ python test_driver.py
    ....
    ----------------------------------------------------------------------
    Ran 4 tests in 0.005s

    OK

Meta
----

Matt Bacchi - mbacchi@gmail.com

Distributed under the BSD (Simplified) license. See ``LICENSE`` for more
information.

Contributing
------------

1. Fork it (https://github.com/mbacchi/python-git-secrets/fork)
2. Create your feature branch (``git checkout -b feature/fooBar``)
3. Commit your changes (``git commit -am 'Add some fooBar'``)
4. Push to the branch (``git push origin feature/fooBar``)
5. Create a new Pull Request

.. raw:: html

   <!-- Markdown link & img dfn's -->

.. |Build Status| image:: https://travis-ci.org/mbacchi/python-git-secrets.svg?branch=master
   :target: https://travis-ci.org/mbacchi/python-git-secrets


