{"id":26590541,"url":"https://github.com/emcfarlane/starlarkproto","last_synced_at":"2025-03-23T13:52:39.678Z","repository":{"id":57515744,"uuid":"244197351","full_name":"emcfarlane/starlarkproto","owner":"emcfarlane","description":"Support protobuffers in Starlark","archived":false,"fork":false,"pushed_at":"2024-03-20T21:10:54.000Z","size":195,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-21T00:58:22.356Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/emcfarlane.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":"2020-03-01T17:57:13.000Z","updated_at":"2023-05-04T18:04:01.000Z","dependencies_parsed_at":"2022-09-08T23:51:27.833Z","dependency_job_id":null,"html_url":"https://github.com/emcfarlane/starlarkproto","commit_stats":null,"previous_names":["afking/starlarkproto"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emcfarlane%2Fstarlarkproto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emcfarlane%2Fstarlarkproto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emcfarlane%2Fstarlarkproto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emcfarlane%2Fstarlarkproto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emcfarlane","download_url":"https://codeload.github.com/emcfarlane/starlarkproto/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245111929,"owners_count":20562511,"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-03-23T13:52:38.963Z","updated_at":"2025-03-23T13:52:39.670Z","avatar_url":"https://github.com/emcfarlane.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# starlarkproto\n\n[![GoDev](https://img.shields.io/static/v1?label=godev\u0026message=reference\u0026color=00add8)](https://pkg.go.dev/github.com/emcfarlane/starlarkproto?tab=doc)\n\nSupports protobuffers in starlark with rich type conversion to and from starlark. Most methods on lists and maps are supported, see package internals for details.\n\n```python\ntest = proto.file(\"github.com/emcfarlane/starlarkproto/testpb/star.proto\")\nm = test.Message(body=\"Hello, world!\")\nprint(m)  # Message(body = Hello, world!, type = UNKNOWN, ...)\nm.type = \"GREETING\"  # Enums can be assigned by String, Int or proto.Enum\nprint(m)  # Message(body = Hello, world!, type = GREETING, ...)\n\ngreeting = test.Message.Type.GREETING\nprint(greeting)  # GREETING\n\ndata = proto.marshal(m)  # Byte encoded string\nm2 = test.Message()\nproto.unmarshal(data, m2)  # Unmarshal back to message\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femcfarlane%2Fstarlarkproto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femcfarlane%2Fstarlarkproto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femcfarlane%2Fstarlarkproto/lists"}