# py2static
This is a simple tool for building Linux static binaries (x64) from Python scripts.
[](https://pypi.python.org/pypi/py2static)
[](https://github.com/ambv/black)
# Introduction
It uses [Pyinstaller](https://pyinstaller.org/) to build a dynamic binary and uses [staticx](https://github.com/JonathonReinhart/staticx) to make it static.
# Installation
```bash
pip install py2static
```
# Usage
```bash
# 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.
Raw data
{
"_id": null,
"home_page": "https://github.com/joaompinto/py2static",
"name": "py2static",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Jo\u00e3o Pinto",
"author_email": "lamego.pinto@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/97/71/1daa55aa2359fc1c0483ce3390e412f4245e7f26d1ee33fcb06221d6db52/py2static-0.0.1.tar.gz",
"platform": null,
"description": "# py2static\n\nThis is a simple tool for building Linux static binaries (x64) from Python scripts.\n\n[](https://pypi.python.org/pypi/py2static)\n[](https://github.com/ambv/black)\n\n# Introduction\n\nIt uses [Pyinstaller](https://pyinstaller.org/) to build a dynamic binary and uses [staticx](https://github.com/JonathonReinhart/staticx) to make it static.\n\n# Installation\n\n```bash\npip install py2static\n```\n# Usage\n\n```bash\n# This will generate the binary \"script\"\npy2static script.py\n```\n\n# Limitations\nIt 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.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Create static binaries from Python scripts",
"version": "0.0.1",
"project_urls": {
"Homepage": "https://github.com/joaompinto/py2static"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0ecb050b19cf35271ae2656a4690f3c4fef5b96ef9b775698f9ab7dd4ee7a524",
"md5": "41ae86e82780e0af646bd4b48d01b90c",
"sha256": "e14ca3b6b0fe2d3c326e86ed765b1b4aa7b0cdf579be7bed48994eb096ade5a1"
},
"downloads": -1,
"filename": "py2static-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "41ae86e82780e0af646bd4b48d01b90c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5651,
"upload_time": "2023-06-26T20:14:44",
"upload_time_iso_8601": "2023-06-26T20:14:44.861785Z",
"url": "https://files.pythonhosted.org/packages/0e/cb/050b19cf35271ae2656a4690f3c4fef5b96ef9b775698f9ab7dd4ee7a524/py2static-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "97711daa55aa2359fc1c0483ce3390e412f4245e7f26d1ee33fcb06221d6db52",
"md5": "34808e029d40e4a63f34c98671676b27",
"sha256": "525d0ae2fcc9dc72abc4f9926ee8df5c0a3abc1f123b2efae27465246fd8452c"
},
"downloads": -1,
"filename": "py2static-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "34808e029d40e4a63f34c98671676b27",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7614,
"upload_time": "2023-06-26T20:14:45",
"upload_time_iso_8601": "2023-06-26T20:14:45.871960Z",
"url": "https://files.pythonhosted.org/packages/97/71/1daa55aa2359fc1c0483ce3390e412f4245e7f26d1ee33fcb06221d6db52/py2static-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-26 20:14:45",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "joaompinto",
"github_project": "py2static",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "pyinstaller",
"specs": []
},
{
"name": "staticx",
"specs": []
}
],
"tox": true,
"lcname": "py2static"
}