Metadata-Version: 2.1
Name: gitsecret
Version: 0.1.0
Summary: Python wrapper for git-secret.
Home-page: https://github.com/ivanklee86/gitsecret
Author: Ivan Lee
Author-email: ivanklee86@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Version Control :: Git
Classifier: Topic :: Security
Classifier: Topic :: Security :: Cryptography
Classifier: License :: OSI Approved :: MIT License
Description-Content-Type: text/markdown

# GitSecret

[![CircleCI](https://circleci.com/gh/ivanklee86/gitsecret.svg?style=svg)](https://circleci.com/gh/ivanklee86/gitsecret) [![Coverage Status](https://coveralls.io/repos/github/ivanklee86/gitsecret/badge.svg)](https://coveralls.io/github/ivanklee86/gitsecret) [![Maintainability](https://api.codeclimate.com/v1/badges/7c39fafac8a7c66f3d13/maintainability)](https://codeclimate.com/github/ivanklee86/gitsecret/maintainability)

Python wrapper for [git-secret](http://git-secret.io/). 🔐🔐🔐

Check out the [documentation](https://ivanklee86.github.io/gitsecret/).

## Pre-requisites

### Install git secret
Install _git secret_ using your favorite [installation method](http://git-secret.io/installation).

### Generate a gpg key
Generate a gpg and passphrase using your e-mail of choice.

```bash
gpg --full-generate-key
```

## Using Git Secret

### Initialization
```python
from gitsecret import GitSecret

secret_repo = GitSecret("/path/to/repo")
secret_repo.create()

```

### Adding & removing users
```python
secret_repo.tell("my_email@email.com")
secret_repo.killperson("my_email@email.com")

# After removing a person, you need to hide the repo again. 
secret_repo.hide()
```

### Adding, encrpyting, and decrypting files
```python
PASSWORD = "mysecretpassword"

secret_repo.add("hello.txt")
secret_repo.hide()
secret_repo.reveal(PASSWORD)
```

