Skip to main content

API Client Generator for Python

release level pypi versions

A client library generator for APIs described through protocol buffers.

This is a generator for API client libraries for APIs specified by protocol buffers, such as those inside Google. It takes a protocol buffer (with particular annotations) and uses it to generate a client library.

Purpose

This library replaces the monolithic generator with 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 clone https://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:

bazel build //google/cloud/documentai/v1beta2:documentai-v1beta2-py

Using Protoc:

# This is assumed to be in the `googleapis` project root.
$ protoc google/cloud/vision/v1/*.proto \
    --python_gapic_out=/dest/

Development

Development

Contributing

If you are looking to contribute to the project, please see Contributing for guidlines.

Documentation

See the documentation.

Metadata

Release files for gapic-generator 1.44.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gapic-generator 1.44.2
File Size Uploaded Provenance Actions
gapic_generator-1.44.2.tar.gz 2.3 MB With provenance Details for gapic_generator-1.44.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gapic-generator 1.44.2
File Interpreter ABI Platform Actions
gapic_generator-1.44.2-py3-none-any.whl Python 3 none any Details for gapic_generator-1.44.2-py3-none-any.whl

Total release size: 2.6 MB

Release files / gapic_generator-1.44.2.tar.gz

Download URL gapic_generator-1.44.2.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
1b466d339f5102590706c5cc06701532717f3599999bc1da2f27f0920cc45a83
BLAKE2b-256 checksum
How to use checksums
866b86632ee5cdfd9319d8f395c6e927bd8cb99f87c38556ad95c18fdb5b9c86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.2.0 CPython/3.11.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by Google Cloud, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / gapic_generator-1.44.2-py3-none-any.whl

Download URL gapic_generator-1.44.2-py3-none-any.whl
Size 320.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87ecdaaba184b78b923eeca53a609fd7b1641810fc3251e19979933dd7720cc8
BLAKE2b-256 checksum
How to use checksums
58d831b92d96c5eed084e36438e591e8991dcd99c9ddb44f208fb9cdbc11ea12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.2.0 CPython/3.11.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by Google Cloud, verified by PyPI on Nov 5, 2026.

Transparency log

Security for gapic-generator 1.44.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gapic_generator-1.44.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by Google Cloud, verified by PyPI on Nov 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.44.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page