Skip to main content

Alvenir GRPC Contracts

This package provides methods for interacting with the alvenir gRPC api.

To see more about gRPC look here: https://grpc.io/

Package on pypi: https://pypi.org/project/alvenir-grpc-contracts/

Installation

pip install alvenir-grpc-contracts

Usage example

import grpc
from pathlib import Path
from alvenir_grpc_contracts.summary.v1 import summary_pb2_grpc
from alvenir_grpc_contracts.types.v1 import ping_pb2

# Endpoint needs to be provided by alvenir
ENDPOINT = "<grpc_endpoint>:443"
# Required if server uses tls
ROOT_CERT = Path("<path to alvenir ca.crt>").read_bytes()

# If server does not use tls, replace credentials and with statement with:
# with grpc.insecure_channel(ENDPOINT) as channel:
credentials = grpc.ssl_channel_credentials(root_certificates=ROOT_CERT)
with grpc.secure_channel(ENDPOINT, credentials=credentials) as channel:
    stub = summary_pb2_grpc.SummaryServiceStub(channel)
    response: ping_pb2.PingResponse = stub.Ping(
        ping_pb2.PingRequest(wait_time=1)
    )
    print(response.requests_received_utc, response.response_sent_utc)

Metadata

Release files for alvenir_grpc_contracts 0.0.3

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

Source distribution (sdist)

Source distribution for alvenir_grpc_contracts 0.0.3
File Size Uploaded Provenance Actions
alvenir_grpc_contracts-0.0.3.tar.gz 24.4 kB Without provenance Details for alvenir_grpc_contracts-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for alvenir_grpc_contracts 0.0.3
File Interpreter ABI Platform Actions
alvenir_grpc_contracts-0.0.3-py3-none-any.whl Python 3 none any Details for alvenir_grpc_contracts-0.0.3-py3-none-any.whl

Total release size: 52.0 kB

Release files / alvenir_grpc_contracts-0.0.3.tar.gz

Download URL alvenir_grpc_contracts-0.0.3.tar.gz
Size 24.4 kB
Tags Source
SHA-256 checksum
How to use checksums
baef7d17786ee4cc93ab26a863fc23d849f2634983968de77c451accdc7e7b44
BLAKE2b-256 checksum
How to use checksums
c28c9388c72624cb9c62cd4253225280c1fd9f2119dbe84e1f76d73dd054f818
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Release files / alvenir_grpc_contracts-0.0.3-py3-none-any.whl

Download URL alvenir_grpc_contracts-0.0.3-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46a76a11817caec3e76a73c497268ffc7b8181deed6c23e143bb786b76357bb7
BLAKE2b-256 checksum
How to use checksums
08ba2060402079ca77c55c39e9598e2aa8dbfa451f684b368a49855988e7198f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Security for alvenir_grpc_contracts 0.0.3

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