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.1.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

py2static-0.0.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py2static-0.0.1.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for py2static-0.0.1.tar.gz
Algorithm Hash digest
SHA256 525d0ae2fcc9dc72abc4f9926ee8df5c0a3abc1f123b2efae27465246fd8452c
MD5 34808e029d40e4a63f34c98671676b27
BLAKE2b-256 97711daa55aa2359fc1c0483ce3390e412f4245e7f26d1ee33fcb06221d6db52

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2static-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for py2static-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e14ca3b6b0fe2d3c326e86ed765b1b4aa7b0cdf579be7bed48994eb096ade5a1
MD5 41ae86e82780e0af646bd4b48d01b90c
BLAKE2b-256 0ecb050b19cf35271ae2656a4690f3c4fef5b96ef9b775698f9ab7dd4ee7a524

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