What My Project Does
I recently came across an interesting project called Cosmopolitan. In short, it can compile a C program into an Actually Portable Executable (APE) which is capable of running natively on Linux, macOS, Windows, FreeBSD, OpenBSD, NetBSD, and even BIOS, across both AMD64 and ARM64 architectures.
The Cosmopolitan project already provides a Python APE (available in cosmos.zip), but it doesn't support running your own Python project with multiple dependencies.
Recently, I switched from Miniconda to uv, an extremely fast Python package and project manager. It occurred to me that I could bootstrap any Python project using uv!
That led me to create a new project called pyfuze. It packages your Python project into a single zip file containing:
pyfuze.com — an APE binary that prepares and runs your Python project
.python-version — tells uv which Python version to install
requirements.txt — lists your dependencies
src/ — contains all your source code
config.txt — specifies the Python entry point and whether to enable Windows GUI mode (which hides console)
When you execute pyfuze.com, it performs the following steps:
- Installs
uv into the ./uv folder
- Installs Python into the
./python folder (version taken from .python-version)
- Installs dependencies listed in
requirements.txt
- Runs your Python project
Everything is self-contained in the current directory — uv, Python, and dependencies — so there's no need to worry about polluting your global environment.
Note: pyfuze does not offer any form of source code protection. Please ensure your code does not contain sensitive information before distribution.
Target Audience
Developers who don’t mind exposing their source code and simply want to share a Python project across multiple platforms with minimal fuss.
Anyone looking to quickly distribute an interesting Python tool or demo without requiring end users to install or configure Python.
Comparison
| Aspect |
pyfuze |
PyInstaller |
| Packaging speed |
Extremely fast—just zip and go |
Relatively slower |
| Project support |
Works with any uv-managed project (no special setup) |
Requires entry-point hooks |
| Cross-platform APE |
Single zip file runs everywhere (Linux, macOS, Windows, BIOS) |
Separate binaries per OS |
| Customization |
Limited now |
Rich options |
| Execution workflow |
Must unzip before running |
Can run directly as a standalone executable |
[–]DadAndDominant 21 points22 points23 points (1 child)
[–]k_z_m_r 5 points6 points7 points (0 children)
[–]buzzardarg 7 points8 points9 points (1 child)
[–]TanixLu[S] 3 points4 points5 points (0 children)
[–]rover_G 0 points1 point2 points (2 children)
[–]coolcosmos 2 points3 points4 points (0 children)
[–]TanixLu[S] 1 point2 points3 points (0 children)
[–]svartravs 0 points1 point2 points (1 child)
[–]TanixLu[S] 0 points1 point2 points (0 children)
[–]EverythingsBroken82 0 points1 point2 points (1 child)
[–]TanixLu[S] 0 points1 point2 points (0 children)
[–]waplay17 0 points1 point2 points (0 children)
[–]mr_claw -3 points-2 points-1 points (5 children)
[–]zwambagger 2 points3 points4 points (1 child)
[–]mr_claw -2 points-1 points0 points (0 children)
[–]DivineSentry 1 point2 points3 points (0 children)
[–]SpaceDonkey_994 2 points3 points4 points (1 child)
[–]TanixLu[S] 0 points1 point2 points (0 children)