{"id":19429783,"url":"https://github.com/chayleaf/ts2py","last_synced_at":"2026-04-13T03:50:00.033Z","repository":{"id":241424431,"uuid":"804521978","full_name":"chayleaf/ts2py","owner":"chayleaf","description":"A TypeScript to Python converter","archived":false,"fork":false,"pushed_at":"2024-07-03T21:30:25.000Z","size":113,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-07T20:12:21.843Z","etag":null,"topics":["ast","javascript","js","python","ts","typescript"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/chayleaf.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":"2024-05-22T18:40:46.000Z","updated_at":"2024-07-03T21:30:29.000Z","dependencies_parsed_at":"2024-05-28T08:48:16.044Z","dependency_job_id":"79dab089-db57-478d-a5bd-6c64fb9944d3","html_url":"https://github.com/chayleaf/ts2py","commit_stats":null,"previous_names":["chayleaf/ts2py"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayleaf%2Fts2py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayleaf%2Fts2py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayleaf%2Fts2py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayleaf%2Fts2py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chayleaf","download_url":"https://codeload.github.com/chayleaf/ts2py/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240612540,"owners_count":19829027,"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":["ast","javascript","js","python","ts","typescript"],"created_at":"2024-11-10T14:21:22.450Z","updated_at":"2026-04-13T03:49:54.994Z","avatar_url":"https://github.com/chayleaf.png","language":"Rust","readme":"# ts2py\n\nA basic JavaScript/TypeScript to Python converter. This won't produce\nworking code because I obviously don't plan to port all of node.js to\nPython, but it will translate the JS/TS AST to Python AST and serialize\nit using [Ruff](https://github.com/astral-sh/ruff).\n\n## Usage\n\nThe program will look at the directory `./a`, convert all .js/.ts\nfiles into .py files and put them to the `./b` directory. Some stuff\nwill inevitably break as there are `todo!()`s littered all over the\ncode, but you're smart, you'll figure this out, right?\n","funding_links":[],"categories":["Other Language Targets"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchayleaf%2Fts2py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchayleaf%2Fts2py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchayleaf%2Fts2py/lists"}