{"id":18562450,"url":"https://github.com/replit/river-python","last_synced_at":"2026-03-10T00:03:34.849Z","repository":{"id":235940359,"uuid":"777950017","full_name":"replit/river-python","owner":"replit","description":"Python client/server for river","archived":false,"fork":false,"pushed_at":"2026-03-01T01:05:09.000Z","size":726,"stargazers_count":4,"open_issues_count":2,"forks_count":3,"subscribers_count":17,"default_branch":"main","last_synced_at":"2026-03-01T03:46:50.760Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/replit.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-26T19:57:47.000Z","updated_at":"2026-03-01T00:41:15.000Z","dependencies_parsed_at":"2024-05-20T19:46:23.094Z","dependency_job_id":"0a251f15-d209-4f71-98a1-c7a240540988","html_url":"https://github.com/replit/river-python","commit_stats":null,"previous_names":["replit/river-python"],"tags_count":114,"template":false,"template_full_name":null,"purl":"pkg:github/replit/river-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Friver-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Friver-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Friver-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Friver-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/replit","download_url":"https://codeload.github.com/replit/river-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Friver-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30152100,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T21:15:50.531Z","status":"ssl_error","status_checked_at":"2026-03-05T21:15:11.173Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-06T22:09:45.053Z","updated_at":"2026-03-05T22:09:37.333Z","avatar_url":"https://github.com/replit.png","language":"Python","readme":"# River\n\nMachinery for compatibility with \u003chttps://github.com/replit/river\u003e, the protocol behind the Workspace ↔ pid2 WebSocket (and in general, the protocol behind the Workspace ↔ * WebSocket).\n\nSince the pid2 services are declared in TypeScript using [TypeBox](https://github.com/sinclairzx81/typebox/) in the main repl-it-web repository, and it would be terrible for everyone involved to force folks to follow this paradigm of declaring their services, types, and interfaces in a foreign repository, any other River servers will use gRPC for their protocol definition and implementation. The [`@replit/river-codegen`](https://www.npmjs.com/package/@replit/river-codegen) package can be used to compile the gRPC `.proto` files into a River-compatible TypeBox declaration that can be then packaged into an npm package that can be imported by the Workspace and consumed ergonomically.\n\nThis includes the necessary machinery to act as a client or server for River:\n\n* As a River server, create a WebSocket server and the gRPC -\u003e Python River codegen (similar to the protoc flow that generates the Python bindings).\n* As a River client, create a WebSocket client and the JSON Schema -\u003e Python River codegen.\n  `python -m river.codegen client --output pkgs/river/river/schema.py --client-name Pid2Client pkgs/river/schema.json`\n* If we need to create the client-side of a Python gRPC River server, we also need to generate the JSON schema from the .proto file, with this command:\n  `python -m river.codegen server-schema --output pkgs/river/river/schema.py  pkgs/river/tests/client/proto/test.proto  \u0026\u0026 cat ./test_schema.json`\n\n## Publishing\n\n### Release Drafts\nPending releases are curated by [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) on the [Releases](https://github.com/replit/river-python/releases) page.\n\nMaintainers can see the next `Draft` release, regenerated every time [release-drafter.yml](https://github.com/replit/river-python/actions/workflows/release-drafter.yml) is triggered.\n\n### PR Labeling\n\nPRs merged since the last release are considered, with the labels on those PRs used for release metadata. `feature`, `bug`, `chore`, and `dependencies` are used for categorization, `major`, `minor`, and `patch` are used to influence the next release's version.\n\nThese labels can be altered after merge, re-trigger release-drafter to get it to regenerate the draft once you've curated the next release.\n\n### Triggering release\n\nThe tag version is used to set the version during the build, the value in `pyproject.toml` is not expected to be kept up-to-date.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplit%2Friver-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freplit%2Friver-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplit%2Friver-python/lists"}