Registry / gcp / proto-google-cloud-datastore-v1

proto-google-cloud-datastore-v1

JSON →
library0.90.4pypypiunverified

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.

pip install proto-google-cloud-datastore-v1
INSTALL
IMPORT
SIG · PROTO-GOOGLE-CLOUD
P
proto-google-cloud-datastore-v1
gcppythonv0.90.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DatastoreStub
from google.cloud.datastore_v1.proto.datastore_pb2_grpc import DatastoreStub
from google.cloud.datastore_v1.proto.datastore_pb2_grpc import DatastoreStub

Create a gRPC stub and a LookupRequest. Replace with authenticated channel for production.

import grpc from google.cloud.datastore_v1.proto.datastore_pb2_grpc import DatastoreStub from google.cloud.datastore_v1.proto.datastore_pb2 import LookupRequest channel = grpc.insecure_channel('datastore.googleapis.com:443') stub = DatastoreStub(channel) request = LookupRequest(project_id='my-project') # response = stub.Lookup(request) print('Client created')
Debug
Known issues
deprecatedThis 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.
fix
pip install google-cloud-datastore and use google.cloud.datastore.Client.
affects: all
breakingImport paths changed in version 0.90.x. Previously importable as from google.cloud.datastore.v1.proto.*, now flattened to google.cloud.datastore_v1.proto.*.
fix
Replace 'google.cloud.datastore.v1' with 'google.cloud.datastore_v1' in all imports.
affects: <0.90.0 -> >=0.90.0
gotchaThe package name on PyPI is proto-google-cloud-datastore-v1 but the import namespace is google.cloud.datastore_v1.proto (note underscore and suffix).
fix
Use 'google.cloud.datastore_v1.proto' for imports, not 'proto.google.cloud.datastore.v1'.
affects: all
Upgrade
Version history
0.90.4latest on PyPI · released Apr 28, 2017
Audit
Dependencies
googleapis-common-protosrequiredShared protobuf types
protobufrequiredRequired for proto definitions
grpciorequiredRequired for gRPC stubs
Agent activity
33 hits · last 30 days
node
30
OpenAI (training)
2
Resources
proto-google-cloud-datastore-v1 — pip install proto-google-cloud-datastore-v1 · libregistry