{"id":27258,"library":"proto-google-cloud-datastore-v1","title":"proto-google-cloud-datastore-v1","description":"Protobuf and gRPC generated code for the Google Cloud Datastore v1 API. This is a low-level library providing the proto definitions and gRPC stubs; most users should use the higher-level google-cloud-datastore instead. Current version: 0.90.4. Released irregularly alongside Google API updates.","status":"active","version":"0.90.4","language":"python","source_language":"en","source_url":"https://github.com/googleapis/googleapis","tags":["grpc","protobuf","google-cloud","datastore","generated"],"install":[{"cmd":"pip install proto-google-cloud-datastore-v1","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Shared protobuf types","package":"googleapis-common-protos","optional":false},{"reason":"Required for proto definitions","package":"protobuf","optional":false},{"reason":"Required for gRPC stubs","package":"grpcio","optional":false}],"imports":[{"note":"Incorrect module path; the package uses a flat structure under google.cloud.datastore_v1.proto.","wrong":"from proto.google.cloud.datastore.v1 import DatastoreStub","symbol":"DatastoreStub","correct":"from google.cloud.datastore_v1.proto.datastore_pb2_grpc import DatastoreStub"},{"note":"The protobuf messages are in the .proto subpackage.","wrong":"from google.cloud.datastore.v1 import LookupRequest","symbol":"LookupRequest","correct":"from google.cloud.datastore_v1.proto.datastore_pb2 import LookupRequest"}],"quickstart":{"code":"import grpc\nfrom google.cloud.datastore_v1.proto.datastore_pb2_grpc import DatastoreStub\nfrom google.cloud.datastore_v1.proto.datastore_pb2 import LookupRequest\n\nchannel = grpc.insecure_channel('datastore.googleapis.com:443')\nstub = DatastoreStub(channel)\nrequest = LookupRequest(project_id='my-project')\n# response = stub.Lookup(request)\nprint('Client created')\n","lang":"python","description":"Create a gRPC stub and a LookupRequest. Replace with authenticated channel for production."},"warnings":[{"fix":"pip install google-cloud-datastore and use google.cloud.datastore.Client.","message":"This library is generated from googleapis and may be deprecated in favor of google-cloud-datastore (the high-level client). Use google-cloud-datastore for most use cases.","severity":"deprecated","affected_versions":"all"},{"fix":"Replace 'google.cloud.datastore.v1' with 'google.cloud.datastore_v1' in all imports.","message":"Import paths changed in version 0.90.x. Previously importable as from google.cloud.datastore.v1.proto.*, now flattened to google.cloud.datastore_v1.proto.*.","severity":"breaking","affected_versions":"<0.90.0 -> >=0.90.0"},{"fix":"Use 'google.cloud.datastore_v1.proto' for imports, not 'proto.google.cloud.datastore.v1'.","message":"The package name on PyPI is proto-google-cloud-datastore-v1 but the import namespace is google.cloud.datastore_v1.proto (note underscore and suffix).","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'pip install proto-google-cloud-datastore-v1' and use 'from google.cloud.datastore_v1.proto import ...'.","cause":"Package not installed or wrong import path.","error":"ModuleNotFoundError: No module named 'google.cloud.datastore_v1'"},{"fix":"Ensure proto-google-cloud-datastore-v1 is installed with its dependencies: 'pip install --upgrade proto-google-cloud-datastore-v1 googleapis-common-protos grpcio protobuf'.","cause":"Missing protobuf subpackage due to incomplete installation or version mismatch.","error":"AttributeError: module 'google.cloud.datastore_v1' has no attribute 'proto'"},{"fix":"Correct import: 'from google.cloud.datastore_v1.proto.datastore_pb2_grpc import DatastoreStub'.","cause":"Module name typo: 'datastore_pb2_grpc' has double 'r'? Actually correct name is 'datastore_pb2_grpc' (single 'r' after 'st'). Common misspelling.","error":"ImportError: cannot import name 'DatastoreStub' from 'google.cloud.datastore_v1.proto.datastore_pb2_grpc'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}