Skip to main content

Metrana Protobuf Models for Python

This package provides Python bindings for Metrana's protobuf schemas, enabling type-safe communication with Metrana services via gRPC and REST.

Installation

pip install metrana-protobuf

Usage

import grpc

from metrana_protobuf.common.v1 import attributes_pb2
from metrana_protobuf.ingestion.v1.svc import api_pb2, api_pb2_grpc

# Create protobuf messages
string_set = attributes_pb2.StringSet(values=["tag1", "tag2", "tag3"])

# Use gRPC service stubs
channel = grpc.secure_channel("app.metrana.ai:443", grpc.ssl_channel_credentials())
stub = api_pb2_grpc.IngestServiceStub(channel)
# response = stub.CreateRun(api_pb2.CreateRunRequest(...), metadata=(("authorization", f"Bearer {token}"),))

Included Schemas

  • common.v1 - Common types for series and attributes
  • ingestion.v1.types - Common types for ingestion (run definitions, and update messages)
  • ingestion.v1.svc - gRPC/REST service definitions for the Ingest API
  • management.v1.types - Common types for management (series processing descriptor)
  • query.v1.svc - gRPC/REST service definitions for the Query API

Requirements

  • Python 3.10+
  • protobuf >= 4.25.0
  • grpcio >= 1.60.0

License

Apache-2.0

Metadata

Release files for metrana-protobuf 0.8.0

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

Source distribution (sdist)

Source distribution for metrana-protobuf 0.8.0
File Size Uploaded Provenance Actions
metrana_protobuf-0.8.0.tar.gz 75.1 kB Without provenance Details for metrana_protobuf-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for metrana-protobuf 0.8.0
File Interpreter ABI Platform Actions
metrana_protobuf-0.8.0-py3-none-any.whl Python 3 none any Details for metrana_protobuf-0.8.0-py3-none-any.whl

Total release size: 171.5 kB

Release files / metrana_protobuf-0.8.0.tar.gz

Download URL metrana_protobuf-0.8.0.tar.gz
Size 75.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2db4ed8c1d1436a872dd133e7d5e0abb9b2fd371846a1c98b1d84af16480ebec
BLAKE2b-256 checksum
How to use checksums
7f949b8e72cee1456b01c17e1d9ade6af14c7e7c2f861fdab78d5d0114ba1445
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / metrana_protobuf-0.8.0-py3-none-any.whl

Download URL metrana_protobuf-0.8.0-py3-none-any.whl
Size 96.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6afa7ddfbe68334449fa197ca457f5097c731ece73f2ac1b9d9665041f5a6ca3
BLAKE2b-256 checksum
How to use checksums
df04044c3f26e80efa64f8e7c84c3413db396eaf7a0ec01f3836621807a4134e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for metrana-protobuf 0.8.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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