Skip to main content

A simple tool for packing shippable virtualenvs

Project description

bundler.py

A simple tool for packing shippable virtualenvs

bundler.py bundle [-h] [--output OUTPUT] [--compression {gz,bz2,xz} | --gz | --bz2 | --xz] [venv]

Bundle a virtualenv folder into a tarball, ready for caching or shipping between environments

Output files are just compressed tar files, with an additional metadata file (currently unused, but intended for future validation post-unpacking)

bundler.py unpack [-h] [--shebang SHEBANG] [--python PYTHON] [--no-repair] bundle_path [output]

Unpack and optionally repair a bundle into a usable virtualenv

bundler.py repair [-h] [--shebang SHEBANG] [--python PYTHON] path

Repair a virtualenv, rewriting venv/bin script shebangs, and updating bin/python symlinks to point to the correct path.

Future versions will inspect shebangs before rewriting, so as not to break potential shell scripts and other files that get stuck in venv/bin

Development

This project uses poetry for development dependency management, although it's not strictly necessary.

py.test is used for testing, flakeheaven for linting, and black for formatting.

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

bundler.py-0.1.1.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bundler.py-0.1.1-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file bundler.py-0.1.1.tar.gz.

File metadata

  • Download URL: bundler.py-0.1.1.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for bundler.py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 be2520c15626597da62f89db8d9e1a4ad6132c5f955bf6e482eb85d7adc4a679
MD5 135b3ec52a258db9c99c38e091317a03
BLAKE2b-256 05f443e997c4647e2257d19ac9f5d814dad6af31e8f43aa5530cb7d58b2fb3a7

See more details on using hashes here.

File details

Details for the file bundler.py-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: bundler.py-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for bundler.py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f6a807222fc71cc8eca0a925e3301356a032ca28ffb218c53d5b745f1fa25240
MD5 d7293b83a785296a0ac2664294102d35
BLAKE2b-256 9a5f0bc3838310b8a86de546f6e1568ac0e103d765fe751ae94780e8a064757c

See more details on using hashes here.

Supported by

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