Skip to main content

Install Python packages in an isolated virtual environment

Project description

Python packages are great. Virtual environments are great. Installing tools from PyPI is awesome. Installing multiple unrelated packages simultaneously in the one virtual environment can be chaos. You might want docker-compose, tox, and aws all available globally, but you don’t want them stepping on each others toes inside the same virtual environment. This is what pisque helps with!

pisque will create a sequestered virtual environment, install a package and its dependencies using pip, and symlink any installed executables into your ~/.local/bin.

$ pisque install tox
Creating virtual environment ~/.local/share/pisque/environments/tox...
Installing dependencies...
Linking installed executables to ~/.local/bin
  * tox
$ pisque install docker-compose
Creating virtual environment ~/.local/share/pisque/environments/docker-compose...
Installing dependencies...
Linking installed executables to ~/.local/bin
  * docker-compose

Installing

pisque can be installed just like any other Python package. You probably want to install it in its own isolated virtual environment though, for exactly the same reasons that you want to use pisque in the first place! The following bash snippet will install pisque to a scratch virtual environment, then use pisque to install pisque:

$ VIRTUAL_ENV=$( mktemp --directory --tmpdir "pisque-venv.XXXXXX" )
$ python3 -m venv "$VIRTUAL_ENV"
$ "$VIRTUAL_ENV/bin/pip" install pisque
$ "$VIRTUAL_ENV/bin/pisque" install pisque
$ rm -rf "$VIRTUAL_ENV"

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

pisque-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

pisque-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file pisque-0.1.0.tar.gz.

File metadata

  • Download URL: pisque-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.2 Linux/5.15.28-1-MANJARO

File hashes

Hashes for pisque-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c0e2b125a4d8977efdd2810b33662754a653932273dfd580b9ff32b703ba42aa
MD5 ef5dbc0e467f7a13bf0364224df7f06d
BLAKE2b-256 445ca36df1bc4f0845c57ef2f9070f2961e979339ee2502c4c48bad03287b0bd

See more details on using hashes here.

Provenance

File details

Details for the file pisque-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pisque-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.2 Linux/5.15.28-1-MANJARO

File hashes

Hashes for pisque-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27913fff07e21e0305e1454b6b37975f54a63a1d5d2243436eb97ba873a8cfbe
MD5 5a244d26c2b62b8dc2fb1a5a56be8516
BLAKE2b-256 ac69df0bca77c43458f9e840e945959d9b28bd89493916497f61fd2e5295907f

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page