{"id":28415596,"url":"https://github.com/golemcloud/golem-py","last_synced_at":"2026-01-20T16:49:30.492Z","repository":{"id":290430264,"uuid":"974136073","full_name":"golemcloud/golem-py","owner":"golemcloud","description":"A library that helps with writing Golem components in Python","archived":false,"fork":false,"pushed_at":"2025-05-27T10:36:37.000Z","size":330,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-04T01:16:25.424Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/golemcloud.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,"zenodo":null}},"created_at":"2025-04-28T10:02:11.000Z","updated_at":"2025-05-27T10:36:21.000Z","dependencies_parsed_at":"2025-05-18T19:30:21.635Z","dependency_job_id":"5d56b4b3-ae97-456a-8e59-5441702a5b46","html_url":"https://github.com/golemcloud/golem-py","commit_stats":null,"previous_names":["golemcloud/golem-py"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/golemcloud/golem-py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golemcloud%2Fgolem-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golemcloud%2Fgolem-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golemcloud%2Fgolem-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golemcloud%2Fgolem-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/golemcloud","download_url":"https://codeload.github.com/golemcloud/golem-py/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golemcloud%2Fgolem-py/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261278193,"owners_count":23134654,"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-06-03T17:16:20.053Z","updated_at":"2026-01-20T16:49:29.460Z","avatar_url":"https://github.com/golemcloud.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# golem-cloud\nA library that helps with writing [Golem](https://www.golem.cloud/) components in Python\n\n## Usage\n\ngolem-cloud is built on top of [componentize-py](https://github.com/bytecodealliance/componentize-py) and relies on bindings generated by it to work.\nTo set up a project begin by creating a wit directory and defining a world that your component will implement:\n\n```wit\npackage demo-namespace:demo-package;\n\ninterface demo-api {\n  run: func();\n}\n\nworld demo-world {\n  import wasi:http/types@0.2.0;\n  import wasi:http/outgoing-handler@0.2.0;\n  import golem:api/host@1.1.6;\n\n  export demo-api;\n}\n```\n\nTo enable usage of golem-cloud with your project you need to tell it about your world and where the bindings will be generated by componentize-py. To do this include\nthe following code snippet at the top of your python code. Make sure to place it before any other uses of the golem-cloud library.\n\n```python\nimport golem_py_bindings\ngolem_py_bindings.register_bindings(\"demo_world\") # Put the name of your world here\n```\n\nYou can now use golem-cloud in your project:\n```python\nfrom golem_py.durability import Durability, DurableFunctionType\nfrom demo_world.imports.oplog import WrappedFunctionType_ReadLocal\n\ndurability = Durability(\"custom\", \"random-number-generator\", WrappedFunctionType_ReadLocal)\n```\n\nNote:\ngolem-cloud is using bindings that are generated by componentize-py for your world. You can only use the modules in golem-cloud for which you have all necessary bindings (by having the appropriate imports and exports in your world). Trying\nto use a module for which your don't have all required bindings will fail with an import error (even if the initial register_bindings was successful). Every module in golem-cloud documents which bindings are required for it to work, so please consult the module documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgolemcloud%2Fgolem-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgolemcloud%2Fgolem-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgolemcloud%2Fgolem-py/lists"}