Skip to main content

strip comments, blank lines and double quotes from env file

Project description

Installation

$ [sudo] pip install env-strip

Pros

  • Docker compatible environment file without comments, blank lines and double quotes

Scripts usage

command usage
env-strip usage: env-strip path

Examples

.env

SECRET_KEY="https://www.youtube.com/channel/UCTZUTvv_1Onm-f-533Hyurw"

# postgres settings:
DB_NAME="name" # comment
DB_USER="postgres" # comment
DB_HOST="127.0.0.1" # comment
DB_PORT=5432 # comment
$ env-strip .env
SECRET_KEY=https://www.youtube.com/channel/UCTZUTvv_1Onm-f-533Hyurw
DB_NAME=name
DB_USER=postgres
DB_HOST=127.0.0.1
DB_PORT=5432

stdin

$ find . \( -name .env.base -o -name ".env.prod.*" \) -exec cat {} \; | env-strip - > .env.prod

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for env-strip, version 2019.8.14
Filename, size File type Python version Upload date Hashes
Filename, size env-strip-2019.8.14.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page