{"id":18724543,"url":"https://github.com/go-python/py","last_synced_at":"2025-04-12T15:31:59.188Z","repository":{"id":26626374,"uuid":"30081959","full_name":"go-python/py","owner":"go-python","description":"py is a high-level API wrapping the low-level CPython C-API, for go","archived":false,"fork":false,"pushed_at":"2015-07-24T14:34:00.000Z","size":164,"stargazers_count":17,"open_issues_count":4,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T10:11:31.672Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/go-python.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}},"created_at":"2015-01-30T17:06:19.000Z","updated_at":"2024-06-05T00:24:01.000Z","dependencies_parsed_at":"2022-09-01T20:52:10.587Z","dependency_job_id":null,"html_url":"https://github.com/go-python/py","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-python%2Fpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-python%2Fpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-python%2Fpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-python%2Fpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-python","download_url":"https://codeload.github.com/go-python/py/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248589726,"owners_count":21129673,"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":"2024-11-07T14:07:03.726Z","updated_at":"2025-04-12T15:31:57.892Z","avatar_url":"https://github.com/go-python.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"py\n==\n\n`py` is a high-level API wrapping the low-level `CPython` C-API, for `go`.\n\n## Installation\n\n```sh\n$ go get github.com/go-python/py\n```\n\n\n## Documentation\n\nDocumentation is available on [godoc](https://godoc.org):\n\n [github.com/go-python/py](https://godoc.org/github.com/go-python/py)\n\n\n## Examples\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/go-python/py\"\n)\n\nfunc init() {\n\terr := py.Initialize()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n}\n\nfunc main() {\n\tgostr := \"foo\"\n\tpystr := py.NewString(gostr)\n\tfmt.Printf(\"hello [%v]\\n\", pystr)\n}\n```\n\n```sh\n$ go run ./main.go\nhello [foo]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-python%2Fpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-python%2Fpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-python%2Fpy/lists"}