{"id":17244626,"url":"https://github.com/kost/singlepython","last_synced_at":"2025-10-05T04:43:04.755Z","repository":{"id":136774938,"uuid":"311234105","full_name":"kost/singlepython","owner":"kost","description":"Building Python interpreter as Single Fat Binary","archived":false,"fork":false,"pushed_at":"2020-11-09T06:21:26.000Z","size":5,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T09:51:48.969Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kost.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-09T05:35:01.000Z","updated_at":"2024-09-21T04:25:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"5b146ee8-8b78-4900-971f-30975ff71838","html_url":"https://github.com/kost/singlepython","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kost/singlepython","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kost%2Fsinglepython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kost%2Fsinglepython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kost%2Fsinglepython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kost%2Fsinglepython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kost","download_url":"https://codeload.github.com/kost/singlepython/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kost%2Fsinglepython/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278411251,"owners_count":25982365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T06:26:22.177Z","updated_at":"2025-10-05T04:43:04.721Z","avatar_url":"https://github.com/kost.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# singlepython\nBuilding Python interpreter as Single Fat Binary.\n\nGrab binaries on releases pages:\nhttps://github.com/kost/singlepython/releases\n\n## Problem\n\nEnvironment that either doesn't have Python or you don't want to disturb any existing python packages. One of the examples is running impacket binaries on such hosts.\n\n## Solution\n\nUse pyinstaller to wrap single python script. Wrapping single python script which will act as executable and execute other script. Add impacket as hidden dependency.\nFind as old glibc distribution as you can (in my case: Debian lenny is quite good option) and use these scripts to packet the binaries and scripts..\n\n## Troubleshooting\n\nQ: i cannot write to /tmp.\n\nA: Use TMPDIR to point where you have write access to: ```TMPD_DIR ./python psexec.py```\n\n\nQ: why not just statically compile python?\n\nA: while Python has support for static compiling, getting every depedency with pip to play well is another story...\n\n## References\n  - https://github.com/ropnop/impacket_static_binaries - other approach where each binary is different executable\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkost%2Fsinglepython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkost%2Fsinglepython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkost%2Fsinglepython/lists"}