Skip to main content

pyfuze makes your Python project run anywhere

Project description

pyfuze

GitHub PyPI - Version

description

pyfuze makes your Python project run anywhere.

install

pip install pyfuze

usage

Usage: pyfuze [OPTIONS] PYTHON_PROJECT

  pyfuze  package Python scripts with dependencies.

Options:
  --python TEXT                   Add .python-version file
  --reqs TEXT                     Add requirements.txt file (input comma-
                                  separated string OR requirements.txt path)
  --pyproject FILE                Add pyproject.toml file
  --uv-lock FILE                  Add uv.lock file
  --entry TEXT                    Entry python file
  --include TEXT                  Include additional file or folder
                                  (source[:destination]) (repeatable)
  --exclude TEXT                  Exclude path relative to the project root
                                  (repeatable)
  --env TEXT                      Add environment variables (key=value)
                                  (repeatable)
  --win-gui                       Hide the console window on Windows
  --uv-install-script-windows TEXT
                                  UV installation script URI for Windows
                                  [default: https://astral.sh/uv/install.ps1]
  --uv-install-script-unix TEXT   UV installation script URI for Unix
                                  [default: https://astral.sh/uv/install.sh]
  -d, --debug                     Enable debug logging
  -v, --version                   Show the version and exit.
  -h, --help                      Show this message and exit.

example

pyfuze ./examples/ip.py --python 3.8 --reqs requests --win-gui

This command will generate dist/ip.zip which contains:

  • pyfuze.com
  • .python-version ("3.8")
  • requirements.txt ("requests")
  • src/ip.py
  • config.txt (2 lines: "entry=ip.py" "win_gui=1")

pyfuze.com is an Actually Portable Executable, capable of running natively on Linux, macOS, Windows, FreeBSD, OpenBSD, NetBSD, and BIOS across both AMD64 and ARM64 architectures.

Executing pyfuze.com will do the following:

  • install uv in ./uv folder
  • install python in ./python (version: .python-version)
  • install dependencies in requirements.txt
  • run the Python project

Note: uv primarily supports macOS (both Apple Silicon and x86_64), Linux (x86_64), and Windows (x86_64).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pyfuze-0.6.3-py3-none-any.whl (363.8 kB view details)

Uploaded Python 3

File details

Details for the file pyfuze-0.6.3-py3-none-any.whl.

File metadata

  • Download URL: pyfuze-0.6.3-py3-none-any.whl
  • Upload date:
  • Size: 363.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.5

File hashes

Hashes for pyfuze-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b97759e6b25ff7bbdb64944e1f8a901074ff203025815e252b6a60025bf2682f
MD5 06c7ab00092f61a543efa2384c3bb0f4
BLAKE2b-256 a31bf170b2a7335fc50f59302ade4bbebb2e04d4918832de6f2cdd0836e60b87

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