Skip to main content

make your flask app become restful and modern

Project description

flask-frest

make your flask app become fluent and restful

pip install flask-frest

quickstart

from flask import Flask
from pydantic import BaseModel
from frest import restful

app = Flask(__name__)

class Person(BaseModel):
    name: str
    age: int


@app.get("/person")
@restful
def list_person():
    person = Person(name='jun', age=24)
    return person


@app.post("/person")
@restful
def create_person(person: Person):
    # creating...
    return person

todo list

  • auto serialize input/output json
  • ...

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

flask_frest-0.1.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

flask_frest-0.1.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file flask_frest-0.1.3.tar.gz.

File metadata

  • Download URL: flask_frest-0.1.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.20

File hashes

Hashes for flask_frest-0.1.3.tar.gz
Algorithm Hash digest
SHA256 be862385b73a630e4ba5fa41ba409cbd919c9e80df9659afb8374cb27cff359a
MD5 bae4786544b9e790a73c6fb4a51a24c3
BLAKE2b-256 d15e154d9a13a66619a439b817989be7c5485522963336226b2abb821853a7f3

See more details on using hashes here.

File details

Details for the file flask_frest-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for flask_frest-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 280f16c4504f83834e58fc387012630623f0e90e12b740ca940a434b9b78295f
MD5 c9b86be925e5954b5defd7beca020f10
BLAKE2b-256 0689a16d85a2b3a56de4ad2d3c3fae9356581b7ad3d65c00bed2b938f41c9d04

See more details on using hashes here.

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