All Projects → berislavlopac → pyotr

berislavlopac / pyotr

Licence: MIT license
Python OpenAPI-to-REST (and back) framework

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pyotr

swagger-editor-validate
This GitHub Actions validates OpenAPI (OAS) definition file using Swagger Editor.
Stars: ✭ 30 (-44.44%)
Mutual labels:  openapi
sanic-ext
Extended Sanic functionality
Stars: ✭ 26 (-51.85%)
Mutual labels:  openapi
bigflow
A Python framework for data processing on GCP.
Stars: ✭ 96 (+77.78%)
Mutual labels:  python-framework
openapi-generator
An OpenAPI document generator. ⚙️
Stars: ✭ 22 (-59.26%)
Mutual labels:  openapi
mcthings
A Python framework for creating 3D scenes in Minecraft and Minetest
Stars: ✭ 44 (-18.52%)
Mutual labels:  python-framework
mock-json-schema
Simple utility to mock example objects based on JSON schema definitions
Stars: ✭ 23 (-57.41%)
Mutual labels:  openapi
openapi4j
OpenAPI 3 parser, JSON schema and request validator.
Stars: ✭ 92 (+70.37%)
Mutual labels:  openapi
api-python
Python client library to access Data Commons
Stars: ✭ 52 (-3.7%)
Mutual labels:  python-api
cookbook
VueJS + NodeJS Evergreen Cookbook
Stars: ✭ 440 (+714.81%)
Mutual labels:  openapi
oauth1-signer-ruby
Zero dependency library for generating a Mastercard API compliant OAuth signature.
Stars: ✭ 15 (-72.22%)
Mutual labels:  openapi
faxplus-python
Python SDK to use FAX.PLUS API
Stars: ✭ 54 (+0%)
Mutual labels:  python-api
unicorn-binance-suite
The UNICORN Binance Suite is a Python Meta Package of unicorn-fy, unicorn-binance-local-depth-cache, unicorn-binance-rest-api, unicorn-binance-trailing-stop-loss and unicorn-binance-websocket-api.
Stars: ✭ 35 (-35.19%)
Mutual labels:  python-api
abap-openapi-client
ABAP OpenAPI Client and Server generator in ABAP
Stars: ✭ 44 (-18.52%)
Mutual labels:  openapi
apitte-openapi
👪 OpenAPI specification for Apitte stack
Stars: ✭ 15 (-72.22%)
Mutual labels:  openapi
ogen
OpenAPI v3 code generator for go
Stars: ✭ 436 (+707.41%)
Mutual labels:  openapi
cakephp-swagger-bake
Automatically generate OpenAPI, Swagger, and Redoc documentation from your existing CakePHP code.
Stars: ✭ 48 (-11.11%)
Mutual labels:  openapi
openapi-types.ts
Generated TypeScript definitions based on GitHub's OpenAPI spec
Stars: ✭ 30 (-44.44%)
Mutual labels:  openapi
restdocs-spec
A maven plugin for generating Open API and Postman Collection specifications using Spring Restdocs.
Stars: ✭ 43 (-20.37%)
Mutual labels:  openapi
swaggie
Tool for generating TypeScript services for given Swagger API endpoints
Stars: ✭ 18 (-66.67%)
Mutual labels:  openapi
sttp-openapi-generator
Generate sttp client from openapi specification with ease!
Stars: ✭ 26 (-51.85%)
Mutual labels:  openapi

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")
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].