Skip to main content

executable

Create windows .exe files that just wrap a Python script.

Installation

pip install executable

Usage

$ cat .\hello.py
print("Hello!")

$ executable .\hello.py
Created .\out\hello.exe and .\out\hello-script.py

$ ./out/hello
Hello!

$ executable .\hello.py --create-cmd
Created .\out\hello.cmd and .\out\hello-script.py

$ .\out\hello
Hello!

Local Development / Testing

  • Create and activate a virtual environment
  • Run pip install -r requirements-dev.txt to do an editable install
  • Run pytest to run tests

Type Checking

Run mypy .

Create and upload a package to PyPI

Make sure to bump the version in setup.cfg.

Then run the following commands:

rm -rf build dist
python setup.py sdist bdist_wheel

Then upload it to PyPI using twine:

twine upload dist/*

Metadata

Release files for executable 0.1.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 executable 0.1.0
File Size Uploaded
executable-0.1.0.tar.gz 10.9 kB Details

Built distribution (wheel)

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

Total release size: 21.9 kB

Release files / executable-0.1.0.tar.gz

Download URL executable-0.1.0.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
75c6b7b724fb352aba7f3de581debfd70512e72d7d3d50eac2a7af9aeeb732c3
BLAKE2b-256 checksum
How to use checksums
9fec29fc4ebe7a00b49117df25f93b0f39bd73e29d20f169b77ebacb4e5f901c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release files / executable-0.1.0-py3-none-any.whl

Download URL executable-0.1.0-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
926676b15e4e269148d5c5be5e956eb32383a7e08ffdecc85f06cf74babb53fc
BLAKE2b-256 checksum
How to use checksums
401450e85c2ee346a412a7ab3cb66483d31cd77e4fc766d5ce36b80c6ec58c24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.0

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