Skip to main content

Polypheny Prism API files for Python

Project description

Polypheny-Prism-API

The definition files for the Polypheny Prism API, a multi-model, multi-language query interface.

The Prism Interface uses Protocol Buffer (protobuf) messages to define it's services. To keep things clear and well-organized, the message definitions are grouped into several files. This simplifies finding specific messages, based on what they do or what part of the system they relate to. The files itself are grouped in categories. Those are expressed in the file names. Two kinds of categories exist:

Request Response Category

The category type contains messages that are used in communication adhering to a request, response scheme. Here the client sends a request message to the server upon which the server sends back a response message.

  • Requests File: This file contains all messages that are sent from the client to the server. The file name adheres to the following pattern: [category]_requests.proto. For example, all the request messages for making or managing connections would be in connection_requests.proto.

  • Responses File: This is the partner file to Requests. It contains all the messages the server sends back to the client. Following the naming pattern, these files end with _responses.proto. The response messages related to connections would thus be in connection_responses.proto.

Other Category

The other kind of category contains messages that are not directly used as a response to a request. An example therefore would be messages representing a specific datatype supported by the DBMS. This category always contains only one file. The filename adheres to the pattern [category].proto.

Doc Generator

Detailed Documentation of the proto files their messages and enums and much more can automatically be created using the doc generator included in this repo. For this to work, the protobuf compiler must be installed. It's current version can be downloaded here.

To run the doc generator, execute the file generator.py in the doc-generator directory.

This creates a directory called docs containing the generated documentation.

Generate Python files

Generate the Python code:

python -m grpc_tools.protoc -I . --python_out . org/polypheny/prism/*.proto

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

polypheny-prism-api-2.0.tar.gz (17.7 kB view details)

Uploaded Source

File details

Details for the file polypheny-prism-api-2.0.tar.gz.

File metadata

  • Download URL: polypheny-prism-api-2.0.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for polypheny-prism-api-2.0.tar.gz
Algorithm Hash digest
SHA256 cccf2f4df24e3489f59bd0cc3e9c65d7bad6c660b9d79787838af6fb5faaa51e
MD5 897997d15e00f5da43a093f3a726937b
BLAKE2b-256 43fd3a65ac5f4ab516f99510e3d10a7092b6baf61ebeddf3a1ee2a8ad402a282

See more details on using hashes here.

Provenance

The following attestation bundles were made for polypheny-prism-api-2.0.tar.gz:

Publisher: publish-pypi.yml on polypheny/Polypheny-Prism-API

Attestations:

Supported by

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