{"id":26334305,"url":"https://github.com/syssec-utd/pylingual","last_synced_at":"2025-03-16T00:03:27.178Z","repository":{"id":281724155,"uuid":"944725659","full_name":"syssec-utd/pylingual","owner":"syssec-utd","description":"Python decompiler for modern Python versions.","archived":false,"fork":false,"pushed_at":"2025-03-10T19:53:13.000Z","size":870,"stargazers_count":54,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T20:36:51.010Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pylingual.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syssec-utd.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":"2025-03-07T21:23:20.000Z","updated_at":"2025-03-10T19:53:16.000Z","dependencies_parsed_at":"2025-03-10T20:36:56.156Z","dependency_job_id":"7c3bd420-ef0e-407a-a18a-7cbfd73d7d7e","html_url":"https://github.com/syssec-utd/pylingual","commit_stats":null,"previous_names":["syssec-utd/pylingual"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syssec-utd%2Fpylingual","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syssec-utd%2Fpylingual/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syssec-utd%2Fpylingual/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syssec-utd%2Fpylingual/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syssec-utd","download_url":"https://codeload.github.com/syssec-utd/pylingual/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806046,"owners_count":20350775,"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","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":"2025-03-16T00:02:38.348Z","updated_at":"2025-03-16T00:03:27.165Z","avatar_url":"https://github.com/syssec-utd.png","language":"Python","readme":"# PyLingual - Python Decompiler for 3.6+\n\nPyLingual is a CPython bytecode decompiler supporting all released Python versions since 3.6. For information about the design and implementation of PyLingual, please refer to our [research paper](https://www.computer.org/csdl/proceedings-article/sp/2025/223600a052/21B7QZB86cg).\n\nPyLingual can be run through our [web service](https://pylingual.io) or run locally.\n\nThis codebase is optimized for readability and future extension, so there may initially be some control flow accuracy regression compared to the version hosted on the web service.\n\n## Requirements\n\n- Python 3.11 or higher\n\n### Compiling bytecode\n\nSome parts of PyLingual require the ability to compile bytecode in a different Python version (equivalence check and model training). For this, you will need the following:\n\n- [pyenv](https://github.com/pyenv/pyenv) with all Python versions you want to compile to\n- Unix-like operating system (pyenv does not support Windows)\n\n## Setup\n\nInstall from source, using [Poetry](https://python-poetry.org/):\n\n```sh\ngit clone https://github.com/syssec-utd/pylingual\ncd pylingual\npython -m venv venv\nsource venv/bin/activate\npip install poetry\npoetry install\n```\n\n## Usage\n\n```\nUsage: pylingual [OPTIONS] [FILES]...\n\n  End to end pipeline to decompile Python bytecode into source code.\n\nOptions:\n  -o, --out-dir PATH      The directory to export results to.\n  -c, --config-file PATH  Config file for model information.\n  -v, --version VERSION   Python version of the .pyc, default is auto\n                          detection.\n  -k, --top-k INT         Maximum number of additional segmentations to\n                          consider.\n  -q, --quiet             Suppress console output.\n  --trust-lnotab          Use the lnotab for segmentation instead of the\n                          segmentation model.\n  --init-pyenv            Install pyenv before decompiling.\n  -h, --help              Show this message and exit.\n```\n\n## Demo\n\n![demo gif](demo.gif)\n\n## Support\n\nIf you have any issues for installing and using PyLingual, please create an issue or send your message via our support email at pylingual@gmail.com.\n","funding_links":[],"categories":["Python","Decompilers"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyssec-utd%2Fpylingual","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyssec-utd%2Fpylingual","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyssec-utd%2Fpylingual/lists"}