Skip to main content

Pyotr

Documentation Status CI builds

Pyotr is a Python library for serving and consuming REST APIs based on OpenAPI specifications. Its name is acronym of "Python OpenAPI to REST".

The project consists of two separate libraries that can be used independently:

  • pyotr.server is a Starlette-based framework for serving OpenAPI-based services. It is functionally very similar to connexion, except that it aims to be fully ASGI-compliant.
  • pyotr.client is a HTTP client for consuming OpenAPI-based services.

WARNING: This is still very much work in progress and not quite ready for production usage. Until version 1.0 is released, any version can be expected to break backward compatibility.

Quick Start

Server

from pyotr.server import Application
from some.path import endpoints

app = Application.from_file("path/to/openapi.yaml", module=endpoints)

Client

from pyotr.client import Client

client = Client.from_file("path/to/openapi.yaml")
result = client.some_endpoint_id("path", "variables", "query_var"="example")

Metadata

Release files for pyotr 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 pyotr 0.8.0
File Size Uploaded Provenance Actions
pyotr-0.8.0.tar.gz 9.1 kB Without provenance Details for pyotr-0.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 19.7 kB

Release files / pyotr-0.8.0.tar.gz

Download URL pyotr-0.8.0.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
12bf38850548681b7450d9b87427f15a1c85882dc8d224006b7a3f6f63e54a3b
BLAKE2b-256 checksum
How to use checksums
aee48ac02f72f8f5ba81ba25003899f169b6cb9ac7e727ed562dcba3a6d1bffe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.7 Linux/5.13.0-37-generic

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

Download URL pyotr-0.8.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23afebf4168af718fa44e435e32237f83b89f51fb18733849604403ab39a1be0
BLAKE2b-256 checksum
How to use checksums
82858b2a79b5260a15737c35300d92c77b761ddd03ad727f00991b589a4378a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.7 Linux/5.13.0-37-generic

Security for pyotr 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