Skip to main content

Generated protobuf/gRPC Python stubs for the Authorizer auth server API (authorizer.v1)

Project description

authorizer-proto (authorizer-proto-python)

Generated protobuf/gRPC Python stubs for the Authorizer auth server API (authorizer.v1).

This package is generated code, not meant for direct hand-editing. It is consumed as a versioned PyPI dependency by authorizer-py (and any other Python client that speaks Authorizer's gRPC / grpc-gateway REST API). It replaces the old approach of copy-pasting the stubs into the SDK.

Install

pip install authorizer-proto          # message stubs + REST (protojson) usage
pip install "authorizer-proto[grpc]"  # add grpcio for the gRPC client stubs

Usage

from authorizer_proto.authorizer.v1 import (
    admin_pb2, admin_pb2_grpc,
    authorizer_pb2, authorizer_pb2_grpc,
)

The import package is authorizer_proto (not authorizer) so it never collides with the SDK's own authorizer package. REST clients (grpc-gateway JSON, snake_case) reuse the same message classes via google.protobuf.json_format.

How it is generated

Stubs are generated directly from the published Buf Schema Registry module buf.build/authorizerdev/authorizer — there is no cross-repo copy step. google/api and buf/validate are vendored (via --include-imports) because Python needs them importable at runtime. protoc's default top-level import segments are rewritten to the authorizer_proto package.

./scripts/generate.sh

CI regenerates on demand (Regenerate workflow) and opens a PR when the upstream schema has moved. Releases publish to PyPI on a v* tag.

License

Apache-2.0. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

authorizer_proto-0.2.0rc0.tar.gz (62.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

authorizer_proto-0.2.0rc0-py3-none-any.whl (71.2 kB view details)

Uploaded Python 3

File details

Details for the file authorizer_proto-0.2.0rc0.tar.gz.

File metadata

  • Download URL: authorizer_proto-0.2.0rc0.tar.gz
  • Upload date:
  • Size: 62.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for authorizer_proto-0.2.0rc0.tar.gz
Algorithm Hash digest
SHA256 10e2af3c7cbf5287d23548ab11d429974b6de904150b210ee2ed139eb045a00f
MD5 9fca49e309d1f98fa1409983199006e6
BLAKE2b-256 fd1d2ef1c9cb569535b4971fcaf27d1bd449dcb8676a9f4876b730884c5f3311

See more details on using hashes here.

Provenance

The following attestation bundles were made for authorizer_proto-0.2.0rc0.tar.gz:

Publisher: release.yml on authorizerdev/authorizer-proto-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file authorizer_proto-0.2.0rc0-py3-none-any.whl.

File metadata

File hashes

Hashes for authorizer_proto-0.2.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 5121a844a32b7f9002c7c5af94b9a3f56d4a78caca8547de69de046efd06b447
MD5 749e9e156406afb64a3967d2ae17e694
BLAKE2b-256 429b1907473d4e0846893d43fbffc4626c1df1444633b3a40a49018004d7fd33

See more details on using hashes here.

Provenance

The following attestation bundles were made for authorizer_proto-0.2.0rc0-py3-none-any.whl:

Publisher: release.yml on authorizerdev/authorizer-proto-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page