https://github.com/berislavlopac/pyapi-server
Lightweight API framework using an OpenAPI spec for routing and validation.
https://github.com/berislavlopac/pyapi-server
api openapi openapi3 rest-api swagger
Last synced: 10 months ago
JSON representation
Lightweight API framework using an OpenAPI spec for routing and validation.
- Host: GitHub
- URL: https://github.com/berislavlopac/pyapi-server
- Owner: berislavlopac
- Created: 2022-08-12T17:32:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-18T14:53:17.000Z (about 1 year ago)
- Last Synced: 2025-03-25T11:42:44.381Z (10 months ago)
- Topics: api, openapi, openapi3, rest-api, swagger
- Language: Python
- Homepage: https://pyapi-server.readthedocs.io
- Size: 62.5 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PyAPI Server
[](https://b11c.semaphoreci.com/projects/pyapi-server)
[](https://pyapi-server.readthedocs.io/en/latest/?badge=latest)
**PyAPI Server** is a Python library for serving REST APIs based on
[OpenAPI](https://swagger.io/resources/open-api/) specifications. It is based on [Starlette](https://www.starlette.io) and is functionally very similar to [connexion](https://connexion.readthedocs.io), except that it aims to be fully [ASGI](https://asgi.readthedocs.io)-compliant.
**WARNING:** This is still a work in progress and not quite ready for production usage. Until version 1.0 is released, any new release can be expected to break backward compatibility.
## Quick Start
```python
from pyapi.server import Application
from some.path import endpoints
app = Application.from_file("path/to/openapi.yaml", module=endpoints)
```