Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Generate Python API client libraries from Protocol Buffers.

License

NotificationsYou must be signed in to change notification settings

googleapis/gapic-generator-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

release levelpypiversions

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.

Purpose

This library replaces themonolithic generatorwith some improvements:

  • An explicit normalized format for specifying APIs.
  • Light weight, in-language code generators.

Bazel

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

Create the targets

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",    ],)

Compiling an API

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/

Development

Development

Contributing

If you are looking to contribute to the project, please seeContributingfor guidlines.

Documentation

See thedocumentation.

About

Generate Python API client libraries from Protocol Buffers.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp