Skip to main content

create environment variables from text files

Project description


$ [sudo] pip install export-file


  • create environment variables from text files - filename as variable name, content as value
  • ignore not existing and empty files


usage: export-file path ...


$ export-file description.txt keywords.txt
export DESCRIPTION="@accepts decorator to check arguments types"
export KEYWORDS="type decorator"

$ eval <<< export-file description.txt keywords.txt
repo description

find files:

$ IFS=;find="$(find -H . -type f -name "*.txt")"
$ [[ -n "$find ]] && { IFS=$'\n';set $find; eval "$(export-file "$@")"; }

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 export-file, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size export-file-0.0.1.tar.gz (1.5 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