{"id":16798450,"url":"https://github.com/flosch/gopy","last_synced_at":"2025-09-14T04:36:25.667Z","repository":{"id":3976671,"uuid":"5071922","full_name":"flosch/GoPy","owner":"flosch","description":"An experimental Python bytecode interpreter implementation in Go","archived":false,"fork":false,"pushed_at":"2012-07-21T00:14:03.000Z","size":387,"stargazers_count":85,"open_issues_count":0,"forks_count":15,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-18T06:51:33.329Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flosch.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":"2012-07-16T18:57:28.000Z","updated_at":"2024-03-26T23:04:11.000Z","dependencies_parsed_at":"2022-08-31T10:31:02.696Z","dependency_job_id":null,"html_url":"https://github.com/flosch/GoPy","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/flosch%2FGoPy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flosch%2FGoPy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flosch%2FGoPy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flosch%2FGoPy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flosch","download_url":"https://codeload.github.com/flosch/GoPy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244897736,"owners_count":20528284,"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-10-13T09:25:39.873Z","updated_at":"2025-03-22T02:30:50.780Z","avatar_url":"https://github.com/flosch.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"GoPy is an experimental Python interpreter implementation in Go. It parses produced Python bytecode and executes it. \n\nThe following python code (see src/main/testapps/example.py)...\n\n\timport time\n\t\n\tdef hello(name, counter):\n\t    print \"Hello\", name, counter, \"!\"    \n\t\n\ta = 5\n\tb = 10\n\tprint a, \"*\", b, \"=\", a*b\n\tprint \"Unix time?\", time.time()\t\n\t\n\ti = 0\n\twhile i \u003c 5:\n\t\thello(\"Go\", i)\n\t\ti += 1\n\n... would be executed as ...\n\n\tGoPy 0.1 - (C) 2012 Florian Schlachter, Berlin\n\t2012/07/18 22:03:20 [Settings filename=testapps/example.pyc]\n\t2012/07/18 22:03:20 Parsing...\n\t2012/07/18 22:03:20 File created: 2012-07-18 22:03:05 +0200 CEST (timestamp: 1342641785)\n\t2012/07/18 22:03:20 Parsing finished\n\t2012/07/18 22:03:20 VM created [filename=example.py,name=\u003cmodule\u003e]\n\t2012/07/18 22:03:20 Running...\n\t2012/07/18 22:03:20 [VM] Stacksize = 3\n\t5 * 10 = 50 \n\tUnix time? 1342641800 \n\tHello Go 0 ! \n\tHello Go 1 ! \n\tHello Go 2 ! \n\tHello Go 3 ! \n\tHello Go 4 ! \n\t2012/07/18 22:03:20 [VM] Returning value: None (*vm.PyNone)\n\t2012/07/18 22:03:20 [VM] Execution of program took 1.252ms.\n\t2012/07/18 22:03:20 Running finished (166 instructions ran).\n\nI created GoPy to get in touch with the Go language and learn its basics. It's currently not more than an experimental approach and has some bugs which must be fixed in order to get more complicated programs running.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflosch%2Fgopy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflosch%2Fgopy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflosch%2Fgopy/lists"}