Skip to main content

py2static

This is a simple tool for building Linux static binaries (x64) from Python scripts.

PyPi Code style: black

Introduction

It uses Pyinstaller to build a dynamic binary and uses staticx to make it static.

Installation

pip install py2static

Usage

# This will generate the binary "script"
py2static script.py

Limitations

It was developed and tested with single scripts using the standard python library. It may not work with more complex projects. Feel free to open an issue if you have more complex cases that would like to be supported.

Metadata

Release files for py2static 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py2static 0.0.2
File Size Uploaded Provenance Actions
py2static-0.0.2.tar.gz 8.2 kB With provenance Details for py2static-0.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 15.0 kB

Release files / py2static-0.0.2.tar.gz

Download URL py2static-0.0.2.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
372aad5e8f6e951d88e7bf500e4ec752669be63fba8b6de1bcfd74347d9256a5
BLAKE2b-256 checksum
How to use checksums
9b14f993fb79fd6472fcdbca001f8b4a286c7902079ce7de8139d2856d2450dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.

Transparency log

Release files / py2static-0.0.2-py3-none-any.whl

Download URL py2static-0.0.2-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55f95067d18c3e92ee938292b0aab7f90056b730a1f1126cda4589d8c7b7c37f
BLAKE2b-256 checksum
How to use checksums
23012966d28caf7fe26090a481d28c2b297b487642c54316cf0a8a48434913fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.

Transparency log

Security for py2static 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for py2static-0.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files Full provenance

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