vrslev / fastapi-typed-error-responses

Proof of concept for implementation of Rust-like Result (enum Result { Ok(data), Err(error) }) in FastAPI. With OpenAPI support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fastapi-rust-result

Proof of concept for implementation of better exception handling in FastAPI. With OpenAPI support.

Installation

pip install git+https://github.com/vrslev/fastapi-rust-result.git

Usage

Install hatch, and...

  • hatch run app to run the ASGI app,
  • hatch run watch to watch changed files and run tests.

License

fastapi-rust-result is distributed under the terms of the MIT license.

About

Proof of concept for implementation of Rust-like Result (enum Result { Ok(data), Err(error) }) in FastAPI. With OpenAPI support.

License:MIT License


Languages

Language:TypeScript 88.5%Language:Python 11.5%