virtualenv-bin
Tools to install into a python virtualenv to make life easier. If you install virtualenv-bin into a virtualenv, you will get two useful programs.
venvbin
If you symlink to this program where it sits in a virtualenv and name the symlink for any program in the bin folder, executing the symlink will activate the virtualenv and then run the program, passing through all args and exit codes.
example
I want to install and use httpie, but I don’t want any of it’s dependencies interfering with my broader environment. Note: for this example, I use /opt/virtualenvs for all virtualenvs.
$ mkvirtualenv httpie
$ source /opt/virtualenvs/httpie/bin/activate
$ pip install --upgrade httpie
$ pip install virtualenv-bin
$ cd ~/bin
$ ln -s /opt/virtualenvs/httpie/bin/venvbin http
$ ~/bin/http example.org
HTTP/1.0 302 Found
Connection: Keep-Alive
Content-Length: 0
Location: http://www.iana.org/domains/example/
Server: BigIP
venvsymlink
Running this from a bin directory will automatically symlink all bins (except the ones that are in all virtualenvs as well as any bins from virtualenv-bin) from that virtualenv into your bin folder using venvbin
example
I want to install and use httpie, but I don’t want any of it’s dependencies interfering with my broader environment. Note: for this example, I use /opt/virtualenvs for all virtualenvs.
$ mkvirtualenv httpie
$ source /opt/virtualenvs/httpie/bin/activate
$ pip install --upgrade httpie
$ pip install virtualenv-bin
$ cd ~/bin
$ /opt/virtualenvs/httpie/bin/venvsymlinks
$ ~/bin/http example.org
HTTP/1.0 302 Found
Connection: Keep-Alive
Content-Length: 0
Location: http://www.iana.org/domains/example/
Server: BigIP
venvlaunch
Running this lets you execute a program that is inside a virtualenv directly
example
Here we are going to run http from directly inside the virtualenv.
$ mkvirtualenv httpie
$ source /opt/virtualenvs/httpie/bin/activate
$ pip install --upgrade httpie
$ pip install virtualenv-bin
$ cd ~/bin
$ /opt/virtualenvs/httpie/bin/venvsymlinks
$ ~/bin/http --help
$ /opt/virtualenvs/httpie/bin/venvlaunch http example.org
HTTP/1.0 302 Found
Connection: Keep-Alive
Content-Length: 0
Location: http://www.iana.org/domains/example/
Server: BigIP
installation
You can install virtualenv-bin using pip. There’s no point to installing this anywhere other then into a virtualenv you want to use it with.
$ pip install virtualenv-bin
Metadata
Release files for virtualenv-bin 0.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| virtualenv-bin-0.9.1.tar.gz | 2.3 kB | Without provenance | Details for virtualenv-bin-0.9.1.tar.gz |
Release files / virtualenv-bin-0.9.1.tar.gz
| Download URL | virtualenv-bin-0.9.1.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b26953542f68c52d3cbde7abd7c4ada711b88b47c134fddbf51445a6e1750b94
|
|
BLAKE2b-256 checksum How to use checksums |
54ed5d64258df473c8a1fa5d85b2326c1a9893def9f37e816fa8a22d9a719f31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for virtualenv-bin 0.9.1
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.