{"id":27664,"library":"connectrpc","title":"connectrpc","description":"Server and client runtime library for Connect RPC. Current version: 0.10.0. Requires Python >=3.10. Released on PyPI as connectrpc since v0.9.0 (previously connect-python). Monthly releases.","status":"active","version":"0.10.0","language":"python","source_language":"en","source_url":"https://github.com/connectrpc/connect-python","tags":["rpc","grpc","connect","protobuf","async","http"],"install":[{"cmd":"pip install connectrpc","lang":"bash","label":"Default install"}],"dependencies":[{"reason":"Protocol Buffers support","package":"protobuf","optional":false},{"reason":"HTTP client for Connect/gRPC","package":"httpx","optional":true},{"reason":"HTTP/2 support for gRPC protocol","package":"h2","optional":true}],"imports":[{"note":"Package renamed to connectrpc","wrong":"from connect_rpc.server import create_connect_server","symbol":"create_connect_server","correct":"from connectrpc.server import create_connect_server"},{"note":"Incorrect module name","wrong":"from connect.server import ConnectServer","symbol":"ConnectServer","correct":"from connectrpc.server import ConnectServer"},{"note":"Package renamed","wrong":"from connect_rpc.client import create_connect_client","symbol":"create_connect_client","correct":"from connectrpc.client import create_connect_client"},{"note":"Moved to codec module","wrong":"from connectrpc.converter import proto_json_codec","symbol":"proto_json_codec","correct":"from connectrpc.codec import proto_json_codec"},{"note":"Exception class in exceptions module","wrong":"from connectrpc.errors import ConnectException","symbol":"ConnectException","correct":"from connectrpc.exceptions import ConnectException"}],"quickstart":{"code":"import asyncio\nfrom connectrpc.client import create_connect_client\nfrom connectrpc.codec import proto_json_codec\n\nasync def main():\n    client = create_connect_client(\n        \"http://localhost:8080\",\n        codec=proto_json_codec(),\n    )\n    request = {\"name\": \"World\"}\n    response = await client.call(\"greet.GreetService/Greet\", request)\n    print(response)\n\nasyncio.run(main())","lang":"python","description":"Minimal JSON client calling a Connect RPC service."},"warnings":[{"fix":"pip uninstall connect-python && pip install connectrpc","message":"PyPI package renamed from 'connect-python' to 'connectrpc' in v0.9.0. Update your dependencies to 'connectrpc'.","severity":"breaking","affected_versions":"<0.9.0"},{"fix":"from connectrpc.codec import proto_json_codec; client = create_connect_client('...', codec=proto_json_codec())","message":"proto_json=True removed in v0.10.0. Use codec=proto_json_codec() instead.","severity":"breaking","affected_versions":"<=0.9.0"},{"fix":"from connectrpc.transport import PyqwestTransport; create_connect_client('...', transport=PyqwestTransport(...))","message":"Default transport changed from httpx to pyqwest (v0.8.0+). For custom HTTP settings, use transport parameter.","severity":"gotcha","affected_versions":">=0.8.0"},{"fix":"See rename warning.","message":"The 'connect-python' package on PyPI is deprecated. All future releases are under 'connectrpc'.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"pip install connectrpc","cause":"Package not installed or installed under old name 'connect-python'.","error":"ModuleNotFoundError: No module named 'connectrpc'"},{"fix":"Use codec=proto_json_codec() instead.","cause":"proto_json=True removed in v0.10.0.","error":"TypeError: create_connect_client() got an unexpected keyword argument 'proto_json'"},{"fix":"Use 'from connectrpc.server import create_connect_server'","cause":"Incorrect import path. Package structure uses submodules like connectrpc.server.","error":"AttributeError: module 'connectrpc' has no attribute 'server'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}