Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Francesco Pira
Francesco Pira
@pirafrank@mastodon.social  ·  activity timestamp 3 days ago

A bit of #Rust to speed up #Python API code! With FastAPI 0.131.0, if you declare the response model return type, Pydantic handles the JSON serialization in Rust.

https://fastapi.tiangolo.com/advanced/custom-response/#json-performance

Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author

Custom Response - HTML, Stream, File, others - FastAPI

FastAPI framework, high performance, easy to learn, fast to code, ready for production
  • Copy link
  • Flag this post
  • Block

Kakapo Social

Kakapo Social: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.2-alpha.34 no JS en
Automatic federation enabled
Log in
Instance logo
  • Explore
  • About
  • Members
  • Code of Conduct