{"id":26724,"library":"ansys-api-edb","title":"Ansys API for EDB (gRPC interface)","description":"Autogenerated Python gRPC interface package for Ansys Electronics Database (EDB). Provides protobuf and gRPC stubs used by pyedb-core. Version 0.3.0, released April 2026, with active development including dev releases (0.4.dev0).","status":"active","version":"0.3.0","language":"python","source_language":"en","source_url":"https://github.com/ansys/ansys-api-edb","tags":["ansys","edb","grpc","protobuf","api"],"install":[{"cmd":"pip install ansys-api-edb","lang":"bash","label":"Latest stable"}],"dependencies":[{"reason":"Required for gRPC communication","package":"grpcio","optional":false},{"reason":"Required for protobuf message handling; note upper bound <7","package":"protobuf","optional":false}],"imports":[{"note":"The package exposes no top-level import; stubs are under ansys.api.edb.v1.*","wrong":"import ansys_api_edb","symbol":"EdbGrpcClient","correct":"from ansys.api.edb.v1.edb_messages_pb2_grpc import EdbGrpcStub"}],"quickstart":{"code":"import grpc\nfrom ansys.api.edb.v1.edb_messages_pb2_grpc import EdbGrpcStub\nfrom ansys.api.edb.v1.edb_messages_pb2 import Empty\nchannel = grpc.insecure_channel('localhost:50051')\nstub = EdbGrpcStub(channel)\nresponse = stub.GetVersion(Empty())\nprint(response)","lang":"python","description":"Connect to a running EDB gRPC server and fetch version."},"warnings":[{"fix":"Install pyedb-core (or pyaedt) for a user-friendly API.","message":"This library provides only gRPC stubs and protobuf messages. It does NOT provide high-level Python EDB APIs; use pyedb-core or pyaedt for that.","severity":"gotcha","affected_versions":"all"},{"fix":"Refer to ansys/api/edb/v1/ for current structure, not older import paths like ansys.api.edb.v0.","message":"The package is autogenerated; import paths changed between major versions. Always check the exact .proto files for message and service names.","severity":"breaking","affected_versions":">=0.3.0"},{"fix":"Upgrade to >=0.3.0 and ensure pyedb-core is compatible.","message":"Older v0.2.x releases used different proto packages; avoid mixing versions of ansys-api-edb and pyedb-core.","severity":"deprecated","affected_versions":"<=0.2.2"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"pip install ansys-api-edb","cause":"ansys-api-edb not installed or installed in wrong environment.","error":"ModuleNotFoundError: No module named 'ansys.api.edb'"},{"fix":"List the contents of the pb2_grpc module: dir(grpc_module) and use the correct class name.","cause":"Service/stub names differ per version; the correct stub may have a different suffix.","error":"ImportError: cannot import name 'EdbGrpcStub' from 'ansys.api.edb.v1.edb_messages_pb2_grpc'"},{"fix":"Check installed version with `pip show ansys-api-edb`; reinstall if necessary.","cause":"Package version mismatch or corrupted install.","error":"AttributeError: module 'ansys.api.edb' has no attribute 'v1'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}