Python wrapper for git-secret.
Project description
GitSecret
Python wrapper for git-secret. 🔐🔐🔐
Check out the documentation.
Pre-requisites
Install git secret
Install git secret using your favorite installation method.
Generate a gpg key
Generate a gpg and passphrase using your e-mail of choice.
gpg --full-generate-key
Using Git Secret
Initialization
from gitsecret import GitSecret
secret_repo = GitSecret("/path/to/repo")
secret_repo.create()
Adding & removing users
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
PASSWORD = "mysecretpassword"
secret_repo.add("hello.txt")
secret_repo.hide()
secret_repo.reveal(PASSWORD)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gitsecret-0.1.0.tar.gz
(6.4 kB
view details)
Built Distribution
gitsecret-0.1.0-py3-none-any.whl
(13.3 kB
view details)
File details
Details for the file gitsecret-0.1.0.tar.gz
.
File metadata
- Download URL: gitsecret-0.1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff9a84e61b039ff4d560758f247f643b58b43a5393f311ebe28af1db3ed6210e |
|
MD5 | 183a09d275c0150eb3054f743ba6a46c |
|
BLAKE2b-256 | 29502709bc19d512c93779b9584ecb363921071837bd7858e5f2f8b786d220d6 |
File details
Details for the file gitsecret-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: gitsecret-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95e19a26b716cc3e3abf5dfb057e5b34eede3c84dbd8c8e16bd2c8e45553703a |
|
MD5 | 2369569b9f4e0a1618de104388d3db2a |
|
BLAKE2b-256 | 6d92a7c3743dc394c42fa5cd6e73423922b1794dbba3f16db7e8f162b149f225 |