Skip to main content

Python wrapper for git-secret.

Project description

GitSecret

CircleCI Coverage Status Maintainability

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


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 hashes)

Uploaded Source

Built Distribution

gitsecret-0.1.0-py3-none-any.whl (13.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page