Skip to main content

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)

Metadata

Release files for gitsecret 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gitsecret 0.1.0
File Size Uploaded
gitsecret-0.1.0.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gitsecret 0.1.0
File Interpreter ABI Platform
gitsecret-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.7 kB

Release files / gitsecret-0.1.0.tar.gz

Download URL gitsecret-0.1.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ff9a84e61b039ff4d560758f247f643b58b43a5393f311ebe28af1db3ed6210e
BLAKE2b-256 checksum
How to use checksums
29502709bc19d512c93779b9584ecb363921071837bd7858e5f2f8b786d220d6
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / gitsecret-0.1.0-py3-none-any.whl

Download URL gitsecret-0.1.0-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95e19a26b716cc3e3abf5dfb057e5b34eede3c84dbd8c8e16bd2c8e45553703a
BLAKE2b-256 checksum
How to use checksums
6d92a7c3743dc394c42fa5cd6e73423922b1794dbba3f16db7e8f162b149f225
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page