{"id":17660910,"url":"https://github.com/soulteary/go-python-ast","last_synced_at":"2026-05-05T15:36:50.301Z","repository":{"id":169708706,"uuid":"645718111","full_name":"soulteary/go-python-ast","owner":"soulteary","description":"Get Python AST with Go.","archived":false,"fork":false,"pushed_at":"2023-05-26T12:13:24.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T12:46:59.472Z","etag":null,"topics":["go","python","python-ast"],"latest_commit_sha":null,"homepage":"https://soulteary.com/2023/05/22/using-golang-and-docker-to-implement-python-computing-services.html","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soulteary.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":"2023-05-26T09:24:49.000Z","updated_at":"2024-09-10T06:35:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"f954ba5b-cf40-4910-a76a-9b57763b9c99","html_url":"https://github.com/soulteary/go-python-ast","commit_stats":null,"previous_names":["soulteary/go-python-ast"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soulteary%2Fgo-python-ast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soulteary%2Fgo-python-ast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soulteary%2Fgo-python-ast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soulteary%2Fgo-python-ast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soulteary","download_url":"https://codeload.github.com/soulteary/go-python-ast/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246308051,"owners_count":20756482,"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":["go","python","python-ast"],"created_at":"2024-10-23T17:09:43.034Z","updated_at":"2026-05-05T15:36:45.279Z","avatar_url":"https://github.com/soulteary.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Python AST\n\nGet Python AST with Go.\n\n## Usage\n\nStart Go Python AST service, `8080` for HTTP client and `8081` for GRPC client.\n\n```bash\n# docker image base debian\ndocker run --rm -it -p 8080:8080 -p 8081:8081 soulteary/go-python-ast\n# or alpine base\ndocker run --rm -it -p 8080:8080 -p 8081:8081 soulteary/go-python-ast:alpine\n```\n\nYou can use the following commands to test the HTTP API.\n\n```bash\n# curl --request POST 'http://127.0.0.1:8080/api/convert' --header 'Content-Type: application/json' --data-raw 'print(\"hello world\")'\n\n\"{\\\"Module\\\": {\\\"body\\\": [{\\\"Expr\\\": {\\\"value\\\": {\\\"Call\\\": {\\\"func\\\": {\\\"Name\\\": {\\\"id\\\": \\\"print\\\", \\\"ctx\\\": \\\"Load\\\"}}, \\\"args\\\": [{\\\"Str\\\": {\\\"s\\\": \\\"hello world\\\"}}], \\\"keywords\\\": []}}}}]}}\"\n```\n\nYou can use the following commands to test the GRPC API.\n\n```bash\ncd example/grpc-client\ngo run main.go\n```\n\n## Tutorial\n\n- [Using Golang and Docker to implement Python computing services](https://soulteary.com/2023/05/22/using-golang-and-docker-to-implement-python-computing-services.html)\n\n## Dev\n\n```bash\ndocker build -t soulteary/go-python-ast . -f docker/Dockerfile\n```\n\n## Credits\n\n- [Docker Python in Go](https://github.com/soulteary/docker-python-in-go), the principle.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoulteary%2Fgo-python-ast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoulteary%2Fgo-python-ast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoulteary%2Fgo-python-ast/lists"}