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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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