Skip to main content

What is this?

A CLI tool to share select environment variables with someone else, easily and securely.

This tool is built on top of magic-wormhole, which allows for secure, accountless P2P transfer of data.

When you use sendenv to send a collection (called vault) of variables to someone, a one time code will be generated and shown to you. Share that code with the receiver (through Slack, Teams, orally, whatever). Receiver will enter that code in their shell and have all the variables loaded into their environment.

Example use cases

  1. A new member has joined your team and needs to set up a ton of environment variables to run your company's code locally. You can use sendenv to set up a vault of all your necessary variables once, and share with as many people, as many times as you need to.
  2. If you run your code on a separate environment in addition to your local environment, and want to get all your environment variables from your local to the separate environment, you can use sendenv to replicate environment variable on the separate environment easily.

How do I use this?

Install sendenv for both the sender and receiver.

pip install sendenv

To send environment variables

# create vault (a collection of variables that you want to send)
sendenv create-vault your_vault_name

## Add environment variables that you want to share to the vault. 
sendenv add-var your_vault_name
## You will be prompted to add variable names.

## Send the vault to someone
sendenv send-vault your_vault_name
## You will see something like the following:
## Code: 1-aardvark-pillow
## Give this code to the receiver.

At receiver's end

sendenv receive-vault
## This will prompt you for the code you received from the sender. Enter it here. 
## Now the variables are loaded into your system (exported in your shell RC file).

Other commands

Access all commands and understand their use by typing sendenv -h or just sendenv.

Release files for sendenv 0.1.14

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

Source distribution (sdist)

Source distribution for sendenv 0.1.14
File Size Uploaded
sendenv-0.1.14.tar.gz 19.6 kB Details

Built distribution (wheel)

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

Total release size: 39.3 kB

Release files / sendenv-0.1.14.tar.gz

Download URL sendenv-0.1.14.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
13823efdd26b3ffff335dd305f9b1ebca3344dff1a22eae91bde3d02c45a7268
BLAKE2b-256 checksum
How to use checksums
ca2a1715f588ef5d0148a5aef3f6c5c0612ffe5f3afbb6c6d0210f5cf4f4dc4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / sendenv-0.1.14-py3-none-any.whl

Download URL sendenv-0.1.14-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1531de7d0f4a8b7f3038cfe4a60e23b877bb56b260d7a4760c008744ee3aa96
BLAKE2b-256 checksum
How to use checksums
f8cfc8ed874b440e0166b24fe348101cfea5f09de79cb4268458912cd6c0e214
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.1.14 This release

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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