Skip to main content

Compiles Python to an exe

Project description

python-compile

Compile python apps to linux executables using docker.

Linting MacOS_Tests Ubuntu_Tests Win_Tests

image

This project will use docker to compile your one file python app into a binary that's runnable on many linux systems. This is the easiest way to build an app and may work directly out of the box for many setups.

Work in progress remains for building Windows/MacOS apps via the docker system.

Example

python-compile --os debian --input demo_http_server.py --requirements requirements.txt

demo_http_server

Notes

Right now we use the nuitka build. If you want custom build options then feel free to create a PR.

Windows

This environment requires you to use git-bash.

Linting

Run ./lint.sh to find linting errors using pylint, flake8 and mypy.

Links

Releases

  • 1.0.3: Native windows compile is available if the host is also windows.

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

python-compile-1.0.3.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

python_compile-1.0.3-py2.py3-none-any.whl (7.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file python-compile-1.0.3.tar.gz.

File metadata

  • Download URL: python-compile-1.0.3.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.10

File hashes

Hashes for python-compile-1.0.3.tar.gz
Algorithm Hash digest
SHA256 b36c9695d38081d44305eb1abbe425988264faf6370ea019cf67dad4a80650ab
MD5 e73b8428409e9adb2fd8767bb691658d
BLAKE2b-256 f61724fd50842c42c176c574064eca90c4c0fbb66fd7cf58557c3132ba4570b4

See more details on using hashes here.

File details

Details for the file python_compile-1.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for python_compile-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0e85584408ccc3dcf03ea05a768bc577d5769b9ac3aab73b42935d7092346aa6
MD5 982c53338eeb66cd04d4ababe6e1b8c4
BLAKE2b-256 d9fad070e623384d18f858e90cb2f8365a9e59b0ed5a8b27d6ad8dab0faec0a6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page