Skip to main content

🙈 dotenv-stripout

An easily-installable git filter which hides your projects' sensitive data, while maximising collaboration and reproducibility.

It's like nbstripout for your .env files.

Eg. your local .env looks like this

MY_SECRET_USERNAME=something-very-secret
MY_SECRET_PASSWORD=IqLTLrFviwHTDKWGZoR7uB2JtM1wjwE34MBwoztE

but your .env on GitHub looks like this

MY_SECRET_USERNAME=
MY_SECRET_PASSWORD=

If you want to know more, I've written a blog post about how and why I created this package.

Installation & Use

First, install the python package which does the stripping and manages the git filter.

pip install dotenv-stripout

Then, to install the filter in the current repo, run

dotenv-stripout install

To remove the filter from the current repo, run

dotenv-stripout uninstall

You can check whether the filter is installed in a repo by running

dotenv-stripout status

Adding the --global flag to any command will point them to your global git config instead, with the installed filter applying to commits in any repo.

You can also use the CLI to strip your actual working .env files in the current repo. Just run

dotenv-stripout

Metadata

Release files for dotenv-stripout 0.1.3

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

Source distribution (sdist)

Source distribution for dotenv-stripout 0.1.3
File Size Uploaded Provenance Actions
dotenv-stripout-0.1.3.tar.gz 10.3 kB Without provenance Details for dotenv-stripout-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dotenv-stripout 0.1.3
File Interpreter ABI Platform Actions
dotenv_stripout-0.1.3-py3-none-any.whl Python 3 none any Details for dotenv_stripout-0.1.3-py3-none-any.whl

Total release size: 16.4 kB

Release files / dotenv-stripout-0.1.3.tar.gz

Download URL dotenv-stripout-0.1.3.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8e121f541ea9ba476cf2b4743b6c959475cc3aa36157ee8340eda1abccef33d6
BLAKE2b-256 checksum
How to use checksums
3b662297878ecdddd9ed7f7f25e5d79fc7670a5096456ede6e4ee271bd778a88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.2

Release files / dotenv_stripout-0.1.3-py3-none-any.whl

Download URL dotenv_stripout-0.1.3-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf7e294ce9e43e4e9ad4fc2816e54bc782ef36a2aaccdcec99f47cfd2dbdb3c2
BLAKE2b-256 checksum
How to use checksums
4daf25eb9b6e19cd348f21f67c02b1256363efb63fd8aec9076c4118b290fc80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.2

Security for dotenv-stripout 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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