Skip to main content

Pack your Python script with its dependencies

Project description

CarryOn - Pack your Python script with its dependencies

Installation

pip install carryon

Or better, since this is a command-line tool:

pipx install carryon

Usage

carryon script.py

This creates a self-contained executable that includes all non-stdlib dependencies.

Options:

  • -o, --output - Specify output file
  • -p, --packages - Include complete packages
  • -f, --file FILE ARCNAME - Add extra files to the bundle

How it works

Carryon appends a ZIP archive with all dependencies to your script, making it self-contained while still being a valid Python script.

Not a heavyweight solution like PyInstaller and other "checked luggage" tools. It still requires a python interpreter.

The script portion can still be edited after packaging - just ensure your editor preserves binary data and doesn't add a newline at EOF. For vim, use: vim -b script_packaged.py # binary mode

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

carryon-0.1.3.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

CarryOn-0.1.3-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file carryon-0.1.3.tar.gz.

File metadata

  • Download URL: carryon-0.1.3.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for carryon-0.1.3.tar.gz
Algorithm Hash digest
SHA256 285bc2ac7fdc72228c7695a0907c454c4fd42f6c14978c2cbd691156eb86dcfb
MD5 843229fa456d78b9e20b7a7a0c2a1528
BLAKE2b-256 9058989073d8d80ec1604a5fedb5110483db282ccc8affb57ec3eccbcf2ed397

See more details on using hashes here.

File details

Details for the file CarryOn-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: CarryOn-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for CarryOn-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d333708ddccafabf6b23f42910e0d79fff124b8ebd4a6131be6711cdac34b4dc
MD5 85b3060b943855f5fc213d538bf548ab
BLAKE2b-256 cea6d8210a6d0d4cc117c40fcca0022e4a937df48c05984a5bef28822a4682e5

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