{"id":18533119,"url":"https://github.com/googleapis/gapic-generator-python","last_synced_at":"2026-02-06T02:01:29.026Z","repository":{"id":37927618,"uuid":"129809857","full_name":"googleapis/gapic-generator-python","owner":"googleapis","description":"Generate Python API client libraries from Protocol Buffers.","archived":false,"fork":false,"pushed_at":"2025-05-06T15:05:47.000Z","size":14827,"stargazers_count":129,"open_issues_count":284,"forks_count":70,"subscribers_count":53,"default_branch":"main","last_synced_at":"2025-05-06T16:38:36.079Z","etag":null,"topics":["code-generation","gapic","protobuf","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/googleapis.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-04-16T21:47:04.000Z","updated_at":"2025-04-25T16:46:47.000Z","dependencies_parsed_at":"2023-11-20T16:49:21.085Z","dependency_job_id":"d052bd8b-9513-4e60-9779-2fd82a91a173","html_url":"https://github.com/googleapis/gapic-generator-python","commit_stats":{"total_commits":1224,"total_committers":54,"mean_commits":"22.666666666666668","dds":0.8292483660130718,"last_synced_commit":"5a37094458cb7826c3db55687f238c78ef3ce35b"},"previous_names":[],"tags_count":252,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fgapic-generator-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fgapic-generator-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fgapic-generator-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fgapic-generator-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/googleapis","download_url":"https://codeload.github.com/googleapis/gapic-generator-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254374388,"owners_count":22060609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-generation","gapic","protobuf","python"],"created_at":"2024-11-06T19:09:27.053Z","updated_at":"2025-10-25T02:21:34.965Z","avatar_url":"https://github.com/googleapis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. _codingstyle:\n\nAPI Client Generator for Python\n===============================\n\n|release level| |pypi| |versions|\n\n    A generator for protocol buffer described APIs for and in Python 3.\n\nThis is a generator for API client libraries for APIs\nspecified by `protocol buffers`_, such as those inside Google.\nIt takes a protocol buffer (with particular annotations) and uses it\nto generate a client library.\n\n.. _protocol buffers: https://developers.google.com/protocol-buffers/\n\nPurpose\n-------\n\nThis library replaces the `monolithic generator`_\nwith some improvements:\n\n- An explicit normalized format for specifying APIs.\n- Light weight, in-language code generators.\n\n.. _monolithic generator: https://github.com/googleapis/gapic-generator\n\n\nBazel\n-------------\nThis generator can be called from Bazel, which is a recommended way of using it inside a continuous integration build or any other automated pipeline.\n\nClone the googleapis repository\n$ git clone https://github.com/googleapis/googleapis.git\n\nCreate the targets\n------------------\nYou need to add the following targets to your BUILD.bazel file.\n\n.. code-block:: c\n\n        load(\n            \"@gapic_generator_python//rules_python_gapic:py_gapic.bzl\",\n            \"py_gapic_library\"\n        )\n\n        load(\n            \"@gapic_generator_python//rules_python_gapic:py_gapic_pkg.bzl\",\n            \"py_gapic_assembly_pkg\"\n        )\n\n        py_gapic_library(\n            name = \"documentai_py_gapic\",\n            srcs = [\":documentai_proto\"],\n        )\n\n        py_gapic_assembly_pkg(\n            name = \"documentai-v1beta2-py\",\n            deps = [\n                \":documentai_py_gapic\",\n            ],\n        )\n\n\nCompiling an API\n----------------\n\nUsing Bazel:\n\n.. code-block:: c\n\n        bazel build //google/cloud/documentai/v1beta2:documentai-v1beta2-py\n\nUsing Protoc:\n\n.. code-block:: c\n\n        # This is assumed to be in the `googleapis` project root.\n        $ protoc google/cloud/vision/v1/*.proto \\\n            --python_gapic_out=/dest/\n\nDevelopment\n-------------\n`Development`_\n\n.. _Development: https://github.com/googleapis/gapic-generator-python/blob/main/DEVELOPMENT.md\n\nContributing\n-------------\nIf you are looking to contribute to the project, please see `Contributing`_\nfor guidlines.\n\n.. _Contributing: https://github.com/googleapis/gapic-generator-python/blob/main/CONTRIBUTING.md\n\nDocumentation\n-------------\n\nSee the `documentation`_.\n\n.. _documentation: https://googleapis.dev/python/gapic-generator/latest/\n\n.. |release level| image:: https://img.shields.io/badge/support-stable-gold.svg\n  :target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#general-availability\n.. |pypi| image:: https://img.shields.io/pypi/v/gapic-generator.svg\n  :target: https://pypi.org/project/gapic-generator/\n.. |versions| image:: https://img.shields.io/pypi/pyversions/gapic-generator.svg\n  :target: https://pypi.org/project/gapic-generator/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleapis%2Fgapic-generator-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogleapis%2Fgapic-generator-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleapis%2Fgapic-generator-python/lists"}