Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Modern Python through FastAPI and friends - PyC...

Modern Python through FastAPI and friends - PyCon Indonesia

Explore some of the great features from modern Python and how to use them with FastAPI and friends.

We will see how to make code that is less error-prone, simpler, more efficient, and have a great developer experience, all at the same time.

And all this while including best practices by default.

We will see a bit about type annotations (type hints), async/await, and an overview of FastAPI, Typer, and others.

This talk doesn't expect any technical background, just some basic knowledge of Python.

Sebastián Ramírez

November 29, 2021
Tweet

More Decks by Sebastián Ramírez

Other Decks in Technology

Transcript

  1. Who am I? Sebastián Ramírez github.com/tiangolo linkedin.com/in/tiangolo twitter.com/tiangolo tiangolo.com Berlin,

    Germany Staff Software Engineer at I created: ➕ External Consultant for other teams
  2. Modern Python Currently supported versions (3.6+) 📝 f-strings 🧙 Type

    annotations ⏱ async / await ⚡ Performance 👥 Community • Pydantic • HTTPX • Starlette • Uvicorn • Uvloop • Rich • Click @tiangolo • Pydantic • SQLAlchemy
  3. • Web API framework • 38K GitHub stars (about 1K+

    per month) • Used by Microsoft, Uber, Netflix, etc. • Performance in the top rank for Python High performance, easy to learn, fast to code, ready for production @tiangolo
  4. Some of the people behind: Jukka Lehtosalo Ivan Levkivskyi Michael

    J. Sullivan @JukkaLeh @JukkaL @ILevkivskyi @ilevkivskyi @msully4321 @msullivan 🧙 Type annotations (type hints) @tiangolo
  5. • OpenAPI • JSON Schema • OAuth2 🔄 Automatic data

    conversion ✨ ✅ Automatic data validation ✨ FastAPI is based on standards 📝 Automatic API docs ✨ • Standard type annotations @tiangolo
  6. David Lord Click maintainer Will McGugan Rich creator @davidism @davidism

    @willmcgugan @willmcgugan Typer and friends - the people behind @tiangolo
  7. Samuel Colvin Pydantic creator David Montague Pydantic and FastAPI notorious

    contributor @samuel_colvin @samuelcolvin @dmontagu FastAPI - the people behind Tom Christie Creator of Starlette (and more) @_tomchristie @tomchristie @tiangolo
  8. Samuel Colvin Pydantic creator @samuel_colvin @samuelcolvin SQLModel - the people

    behind Mike Bayer SQLAlchemy creator @zzzeek @zzzeek @tiangolo
  9. ⏱ async / await - concurrency Photo by John Cameron:

    https://unsplash.com/@john_cameron @tiangolo
  10. ⏱ async / await - concurrency Photo by Kate Townsend:

    https://unsplash.com/@k8townsend @tiangolo
  11. FastAPI async / await - the people behind Tom Christie

    Creator of Starlette, HTTPX, and more @_tomchristie @tomchristie Florimond Manca Co-maintainer of HTTPX, and others @florimondmanca @florimondmanca Andrew Godwin Author of the ASGI specification @andrewgodwin @andrewgodwin @tiangolo
  12. ⚡ Performance - the people behind Tom Christie Creator of

    Starlette, Uvicorn, and more @_tomchristie @tomchristie Yury Selivanov Creator of Uvloop @1st1 @1st1 Stefan Behnel Maintainer of Cython @scoder @tiangolo
  13. 👥 Community • All by normal people 👥 • Mostly

    during free time ⏰ • Trying to help others ✨ @tiangolo
  14. 👥 Community - FastAPI You can help too! 🚀 •

    Translate a page 👥 • Review translations from others 🔍 • Answer questions from others 🗣 • Help with bugs and features 🤓 • Help with other projects 󰠁󰞵 https://fastapi.tiangolo.com/help-fastapi/ https://fastapi.tiangolo.com/contributing/#translations @tiangolo