Skip to main content

PyPacker

The cross-platform Python → Batch/Shell generator.

Reads a .py file and generates .bat, .sh, .ps1, and .pyz launchers — all with the Python code embedded, so the original .py file is not needed at runtime.

License: MIT Python 3.8+ Version


Features

  • One tool, four formats — .bat, .sh, .ps1, .pyz
  • Automatic mode selection — picks the best method for your code
  • Four generation modes — inline, multiline, heredoc, base64
  • Zero dependencies — only Python 3.8+ stdlib
  • Cross-platform — Windows, Linux, macOS, Termux
  • Portable output — generated launchers embed the code, no external files needed
  • Safe escaping — handles !, %, ^, &, |, ", """, \

Installation

pip install pypacker

Metadata

Release files for pbfc 1.0.0

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

Source distribution (sdist)

Source distribution for pbfc 1.0.0
File Size Uploaded
pbfc-1.0.0.tar.gz 3.1 kB Details

Built distribution (wheel)

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

Total release size: 6.3 kB

Release files / pbfc-1.0.0.tar.gz

Download URL pbfc-1.0.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ca6c5fe8910434a216a13a041adb8c00bb0552558e3c4418e53138a8cff180df
BLAKE2b-256 checksum
How to use checksums
ede6542aaaadf67981a2ba4b008edc443944b628a6a53f22a2e5aea31e6efb31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / pbfc-1.0.0-py3-none-any.whl

Download URL pbfc-1.0.0-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b26ea743314259d76af847029b8cc2fbbd2875728c32c2335abec0ab9a5a279
BLAKE2b-256 checksum
How to use checksums
07ad9ed4d5b38b8a304413f47e262e25b0d0c1f8f3d048198cc969adca38ad99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release history Release notifications | RSS feed

This release

1.0.0 This release

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