Skip to main content

Create static binaries from Python scripts

Project description

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.

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

py2static-0.0.2.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

py2static-0.0.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file py2static-0.0.2.tar.gz.

File metadata

  • Download URL: py2static-0.0.2.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for py2static-0.0.2.tar.gz
Algorithm Hash digest
SHA256 372aad5e8f6e951d88e7bf500e4ec752669be63fba8b6de1bcfd74347d9256a5
MD5 8f1ee04b59218f183599c1830e12d8bf
BLAKE2b-256 9b14f993fb79fd6472fcdbca001f8b4a286c7902079ce7de8139d2856d2450dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for py2static-0.0.2.tar.gz:

Publisher: release.yaml on joaompinto/py2static

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py2static-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: py2static-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for py2static-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 55f95067d18c3e92ee938292b0aab7f90056b730a1f1126cda4589d8c7b7c37f
MD5 ff4d51c1be493513645764197147dbed
BLAKE2b-256 23012966d28caf7fe26090a481d28c2b297b487642c54316cf0a8a48434913fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for py2static-0.0.2-py3-none-any.whl:

Publisher: release.yaml on joaompinto/py2static

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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