PyApp: A straightforward strategy to bundle Python apps as executables

Learn extra at:

Each developer is aware of how onerous it’s to redistribute a Python program as a self-contained, click-and-run bundle. There are third-party options, however all of them have drawbacks. PyInstaller, the oldest and best-known instrument for this job, is crotchety to work with and requires a good quantity of trial-and-error to get a working redistributable. Nuitka, a newer undertaking, compiles Python applications to redistributable binaries, however the ensuing artifacts will be huge and take a very long time to provide.

A more recent undertaking, PyApp, takes a completely completely different method. It’s a Rust program you compile from supply, together with details about the Python undertaking you need to distribute. The result’s a self-contained binary that, when run, unpacks your undertaking right into a listing and executes it from there. The top person doesn’t must have Python on their system to make use of it.

Establishing PyApp

Not like different Python distribution options, PyApp shouldn’t be a Python library like PyInstaller. It’s additionally not a standalone program that takes in your program and generates an artifact from it. As a substitute, you create a customized construct of PyApp for every Python program you need to distribute.

Turn leads into sales with free email marketing tools (en)

Leave a reply

Please enter your comment!
Please enter your name here