- Notifications
You must be signed in to change notification settings - Fork74
Generate Python API client libraries from Protocol Buffers.
License
googleapis/gapic-generator-python
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A generator for protocol buffer described APIs for and in Python 3.
This is a generator for API client libraries for APIsspecified byprotocol buffers, such as those inside Google.It takes a protocol buffer (with particular annotations) and uses itto generate a client library.
This library replaces themonolithic generatorwith some improvements:
- An explicit normalized format for specifying APIs.
- Light weight, in-language code generators.
This generator can be called from Bazel, which is a recommended way of using it inside a continuous integration build or any other automated pipeline.
Clone the googleapis repository$ git clonehttps://github.com/googleapis/googleapis.git
You need to add the following targets to your BUILD.bazel file.
load("@gapic_generator_python//rules_python_gapic:py_gapic.bzl","py_gapic_library")load("@gapic_generator_python//rules_python_gapic:py_gapic_pkg.bzl","py_gapic_assembly_pkg")py_gapic_library(name="documentai_py_gapic",srcs= [":documentai_proto"],)py_gapic_assembly_pkg(name="documentai-v1beta2-py",deps= [":documentai_py_gapic", ],)
Using Bazel:
bazelbuild//google/cloud/documentai/v1beta2:documentai-v1beta2-py
Using Protoc:
# This is assumed to be in the `googleapis` project root.$protocgoogle/cloud/vision/v1/*.proto \--python_gapic_out=/dest/
If you are looking to contribute to the project, please seeContributingfor guidlines.
See thedocumentation.
About
Generate Python API client libraries from Protocol Buffers.
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.