Skip to main content

Call child process with custom environment

Project description


Kubernetes Secrets or ConfigMap are commonly used to run apps deployed in pods. But what about running this app locally with those same variables ? envfrom meet this need among others.


pip install envfrom


usage: envfrom [-h] {cli,dir,kube} ... child

Call child process with custom environment

positional arguments:
  {cli,dir,kube}  env source
    cli           Dict values: FOO=BAR BAR=FOO
    dir           Set environment according to files in a specified path
    kube          Mirror specified kubernetes ressource volume keys (decoded)
  child           child process

optional arguments:
  -h, --help      show this help message and exit


Assuming that you already have the following secret created on your default namespace :

apiVersion: v1
kind: Secret
  name: mysecret
type: Opaque
  username: YWRtaW4=

Running :

env -i envfrom kube secrets mysecret env

Should output :


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

envfrom-0.1.0.tar.gz (4.0 kB view hashes)

Uploaded source

Built Distribution

envfrom-0.1.0-py3-none-any.whl (6.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page