Skip to main content

Schemas for the Arrakis API

Project description

Arrakis Schema Specification

This repository defines the schema for all data, metadata and API requests for the arrakis LIGO data distribution system.

Schemas are defined in one of two places:

  • endpoints/: Endpoints served from Arrakis server
  • publication/: Data published into Kafka

Endpoints

The Arrakis server responds to API requests corresponding to the four main actions exposed by the client API:

as well as two actions which aid in publication:

All API requests are done in a two-stage approach by first sending an Arrow Flight descriptor to the server, returning back a Flight info object which contains the request and the server to contact, contained within a Flight ticket. This ticket is then sent to receive back the expected payload with a specific Arrow flight schema dependent on the request, serialized in the Arrow streaming format.

The Flight descriptors sent to the server in the first stage are all specified here as JSON packets which are UTF-8-encoded, using the command variant of the Flight descriptor, which can be used to specify any application-specific command.

The Flight descriptor schemas are described within each endpoint in descriptor.json, while the payload schemas are described via schema.txt. In addition, a generic descriptor specification for all endpoints is described in endpoints/descriptor.json.

Publication

Publication is done by first registering a publisher via the publish endpoint with a publisher ID. If authorized to do so, the server will send a response with connection details to connect via Kafka to publish data.

The data is published via Kafka with the schema described in publication/schema.txt.

Usage

Python

The generic Flight descriptor schema is described within each endpoint in {endpoint}.json. In addition, a generic descriptor specification for all endpoints is described in descriptor.json.

from arrakis_schema import load_schema

schema = load_schema("count.json")

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

arrakis_schema-0.2.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

arrakis_schema-0.2.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file arrakis_schema-0.2.0.tar.gz.

File metadata

  • Download URL: arrakis_schema-0.2.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for arrakis_schema-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8d707bdfde72eba6f3827cab3841d42962f690effbfbd08624998eece5aae430
MD5 2f5c038a6cea5b7f87b1af38e32258e0
BLAKE2b-256 98224559cd9e207ee2756c4f221f5889e949338542bbc47dc7b7d0efb4552af5

See more details on using hashes here.

File details

Details for the file arrakis_schema-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for arrakis_schema-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41b4abbafaba418d2f946e0d82a131f7f215bc61c84345b46a425e1345ceed3e
MD5 d0f0afda9afb22fa1278de9aae657c86
BLAKE2b-256 7aff1e81156935d44d8a4d1b0376b0bc80901e3e82f55ddb9e76d3fa6dcb729f

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