This release is a pre-release and may not be stable for production use.
Introduction
This project provides collection of commonly used schemas for FastAPI.
Quick Start
This section shows how to use the utilities provided by this project:
from fastapi import FastAPI
from surquest.fastapi.schemas.args import Args
app = FastAPI()
@app.get("/users")
async def get_users(
offset: Args.offset().type_ = Args.offset().query,
limit: Args.limit().type_ = Args.limit().query,
):
return [{
"id": 1,
"name": "John Doe"
}]
Local development
You are more than welcome to contribute to this project. To make your start easier we have prepared a docker image with all the necessary tools to run it as interpreter for Pycharm or to run tests.
Build docker image
docker build `
--tag surquest/fastapi/schemas `
--file package.base.dockerfile `
--target test .
Run tests
docker run --rm -it `
-v "${pwd}:/opt/project" `
-w "/opt/project/test" `
surquest/fastapi/schemas pytest
Metadata
Release files for surquest-fastapi-schemas 0.0.1rc10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| surquest_fastapi_schemas-0.0.1rc10.tar.gz | 7.5 kB | Without provenance | Details for surquest_fastapi_schemas-0.0.1rc10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| surquest_fastapi_schemas-0.0.1rc10-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for surquest_fastapi_schemas-0.0.1rc10-py2.py3-none-any.whl |
Total release size: 14.0 kB
Release files / surquest_fastapi_schemas-0.0.1rc10.tar.gz
| Download URL | surquest_fastapi_schemas-0.0.1rc10.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f48c640ccc8787fa1b80b1a838765f63d9c02e6687a514467f43f2feaa91881
|
|
BLAKE2b-256 checksum How to use checksums |
dea470af62f08464eaedb15315557db65b2ea5eeb70f3398675c32611f040797
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Release files / surquest_fastapi_schemas-0.0.1rc10-py2.py3-none-any.whl
| Download URL | surquest_fastapi_schemas-0.0.1rc10-py2.py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
bff23e0c103d8641882b7c875af7497939d45ce672ecd621e81cfb1a1457dac0
|
|
BLAKE2b-256 checksum How to use checksums |
a4b626a7ba64274709d9d0ffc602fa729abd05f7105ac180d29271cebae62b25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Security for surquest-fastapi-schemas 0.0.1rc10
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.