Skip to main content

Shared relay transport for kiapi: request/response schemas, the relay protocol, and a client to reach a kiapi instance over a relay (local filesystem or GCP).

Project description

kiapi-relay

English | 日本語

Shared relay transport for kiapi. It provides the relay protocol, the request/response schemas, the in-process request runner, and a client for issuing requests to a kiapi instance over a relay.

This package is platform-agnostic and is depended on by both kiapi (the server side, which runs the relay runner) and kiapi-proxy (the client side, which forwards HTTP requests over a relay).

Installation

pip install kiapi-relay

# With the GCP relay backend
pip install "kiapi-relay[gcp]"

Backends

Module Description Extra
kiapi_relay.impl.local Filesystem-backed relay for local development and verification.
kiapi_relay.impl.gcp GCP relay (GCS payloads + Firebase Realtime Database notifications). gcp

Usage

from kiapi_relay import RelayRequest, RelayResponse, relay_registry

# Resolve a configured relay and issue a request over it.
relay = relay_registry.get("local")
response: RelayResponse = await relay.request(
    RelayRequest(method="GET", path="/health")
)

See the kiapi documentation for the full relay architecture.

License

MIT

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

kiapi_relay-0.3.0.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

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

kiapi_relay-0.3.0-py3-none-any.whl (42.4 kB view details)

Uploaded Python 3

File details

Details for the file kiapi_relay-0.3.0.tar.gz.

File metadata

  • Download URL: kiapi_relay-0.3.0.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.20

File hashes

Hashes for kiapi_relay-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5a879c757713f61db209c633e9225d06985cdd3307b02ce01889548df3d0ad0d
MD5 acec943e74fed8111cbabca6ac1135c5
BLAKE2b-256 6a078e2aff552d3fb81e0be89677803f53c8697d9e6d75c427f630ae92ab3c4e

See more details on using hashes here.

File details

Details for the file kiapi_relay-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kiapi_relay-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f02b426481bec3d93e5572c804922008ed0ad2eac29c25cd17e3b36451ac5000
MD5 004b3d69a049c794a99489cb86f74a0a
BLAKE2b-256 32ab498f3e4b03ccb5a7a3acbdafde24af56dcc85bf9a19a98a56fcaca8c3e88

See more details on using hashes here.

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