Slide 1

Slide 1 text

Modern Python through and friends

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

● Python Web API framework ● 60K+ GitHub stars (about 1K+ per month) ● Used by Microsoft, Uber, Netflix, etc. ● Performance in the top rank for Python ● 3rd most used (Python Developers Survey) ● Fastest growth (Python Developers Survey) ● 3rd most loved (StackOverflow Developer Survey) @tiangolo

Slide 4

Slide 4 text

Modern Python Currently supported versions (3.7+) 📝 f-strings 🧙 Type annotations ⏱ async / await ⚡ Performance 👥 Community ● Pydantic ● HTTPX ● Starlette ● Uvicorn ● Uvloop ● Rich ● Click @tiangolo ● Pydantic ● SQLAlchemy

Slide 5

Slide 5 text

Modern Python 📝 f-strings (formatted strings) @tiangolo

Slide 6

Slide 6 text

📝 f-strings (formatted strings) @tiangolo

Slide 7

Slide 7 text

📝 f-strings (formatted strings) @tiangolo

Slide 8

Slide 8 text

📝 f-strings (formatted strings) @tiangolo

Slide 9

Slide 9 text

📝 f-strings (formatted strings) @tiangolo

Slide 10

Slide 10 text

📝 f-strings (formatted strings) @tiangolo

Slide 11

Slide 11 text

Modern Python 🧙 Type annotations (type hints) @tiangolo

Slide 12

Slide 12 text

🧙 Type annotations (type hints) @tiangolo

Slide 13

Slide 13 text

🧙 Type annotations (type hints) @tiangolo

Slide 14

Slide 14 text

🧙 Type annotations (type hints) @tiangolo

Slide 15

Slide 15 text

🧙 Type annotations (type hints) - autocompletion @tiangolo

Slide 16

Slide 16 text

🧙 Type annotations (type hints) - autocompletion @tiangolo

Slide 17

Slide 17 text

🧙 Type annotations (type hints) - autocompletion @tiangolo

Slide 18

Slide 18 text

🧙 Type annotations (type hints) @tiangolo

Slide 19

Slide 19 text

🧙 Type annotations (type hints) @tiangolo

Slide 20

Slide 20 text

🧙 Type annotations (type hints) @tiangolo

Slide 21

Slide 21 text

🧙 Type annotations (type hints) @tiangolo

Slide 22

Slide 22 text

🧙 Type annotations (type hints) - error detection @tiangolo

Slide 23

Slide 23 text

🧙 Type annotations (type hints) - error detection @tiangolo

Slide 24

Slide 24 text

🧙 Type annotations (type hints) @tiangolo

Slide 25

Slide 25 text

🧙 Type annotations (type hints) - error detection @tiangolo

Slide 26

Slide 26 text

🧙 Type annotations (type hints) - error detection @tiangolo

Slide 27

Slide 27 text

🧙 Type annotations (type hints) - error detection @tiangolo

Slide 28

Slide 28 text

🧙 Type annotations (type hints) - error detection @tiangolo

Slide 29

Slide 29 text

🧙 Type annotations (type hints) @tiangolo

Slide 30

Slide 30 text

🧙 Type annotations (type hints) @tiangolo

Slide 31

Slide 31 text

🧙 Type annotations (type hints) @tiangolo

Slide 32

Slide 32 text

🧙 Type annotations (type hints) @tiangolo

Slide 33

Slide 33 text

Some of the people behind: Jukka Lehtosalo Ivan Levkivskyi Michael J. Sullivan @JukkaLeh @JukkaL @ILevkivskyi @ilevkivskyi @msully4321 @msullivan 🧙 Type annotations (type hints) @tiangolo

Slide 34

Slide 34 text

Modern Python 🧙 Type annotations with @tiangolo

Slide 35

Slide 35 text

🧙 Type annotations with FastAPI @tiangolo

Slide 36

Slide 36 text

🧙 Type annotations with FastAPI @tiangolo

Slide 37

Slide 37 text

🧙 Type annotations with FastAPI - autocompletion @tiangolo

Slide 38

Slide 38 text

🧙 Type annotations with FastAPI - autocompletion @tiangolo

Slide 39

Slide 39 text

🧙 Type annotations with FastAPI - error detection @tiangolo

Slide 40

Slide 40 text

http://127.0.0.1:8000/docs FastAPI - API documentation @tiangolo

Slide 41

Slide 41 text

FastAPI - API documentation @tiangolo

Slide 42

Slide 42 text

FastAPI - API documentation @tiangolo

Slide 43

Slide 43 text

FastAPI - data validation @tiangolo

Slide 44

Slide 44 text

FastAPI - data validation @tiangolo

Slide 45

Slide 45 text

FastAPI - data validation @tiangolo

Slide 46

Slide 46 text

FastAPI - data conversion http://127.0.0.1:8000/recipes/crunchy-frog?quantity=2 @tiangolo

Slide 47

Slide 47 text

FastAPI - data conversion @tiangolo

Slide 48

Slide 48 text

FastAPI - Type hints @tiangolo

Slide 49

Slide 49 text

● OpenAPI ● JSON Schema ● OAuth2 🔄 Automatic data conversion ✨ ✅ Automatic data validation ✨ FastAPI is based on standards 📝 Automatic API docs ✨ ● Standard type annotations @tiangolo

Slide 50

Slide 50 text

Modern Python 🧙 Type annotations with @tiangolo

Slide 51

Slide 51 text

Type annotations with Typer @tiangolo

Slide 52

Slide 52 text

Type annotations with Typer @tiangolo

Slide 53

Slide 53 text

Typer - automatic help errors @tiangolo

Slide 54

Slide 54 text

Typer - CLI Arguments @tiangolo

Slide 55

Slide 55 text

Typer - CLI Options @tiangolo

Slide 56

Slide 56 text

Typer - validation @tiangolo

Slide 57

Slide 57 text

Typer - shell (TAB) completion @tiangolo

Slide 58

Slide 58 text

Typer @tiangolo

Slide 59

Slide 59 text

Modern Python 🧙 Type annotations with and Rich @tiangolo

Slide 60

Slide 60 text

Typer with Rich @tiangolo

Slide 61

Slide 61 text

Typer with Rich @tiangolo

Slide 62

Slide 62 text

Typer with Rich @tiangolo

Slide 63

Slide 63 text

David Lord Click maintainer Will McGugan Rich creator @davidism @davidism @willmcgugan @willmcgugan Typer and friends - the people behind @tiangolo

Slide 64

Slide 64 text

Modern Python 🧙 Type annotations with and Pydantic @tiangolo

Slide 65

Slide 65 text

FastAPI with Pydantic @tiangolo

Slide 66

Slide 66 text

FastAPI with Pydantic @tiangolo

Slide 67

Slide 67 text

FastAPI with Pydantic - API documentation @tiangolo

Slide 68

Slide 68 text

FastAPI with Pydantic - interactive API docs @tiangolo

Slide 69

Slide 69 text

FastAPI with Pydantic - interactive API docs @tiangolo

Slide 70

Slide 70 text

FastAPI with Pydantic - data validation @tiangolo

Slide 71

Slide 71 text

FastAPI with Pydantic - data validation @tiangolo

Slide 72

Slide 72 text

FastAPI with Pydantic - nested data @tiangolo

Slide 73

Slide 73 text

FastAPI with Pydantic - nested data @tiangolo

Slide 74

Slide 74 text

FastAPI with Pydantic - autocompletion @tiangolo

Slide 75

Slide 75 text

FastAPI with Pydantic - autocompletion @tiangolo

Slide 76

Slide 76 text

FastAPI with Pydantic - error detection @tiangolo

Slide 77

Slide 77 text

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) @starletdreaming @tomchristie @tiangolo @david_montague_

Slide 78

Slide 78 text

Modern Python 🧙 Type annotations with and @tiangolo

Slide 79

Slide 79 text

FastAPI with SQLModel @tiangolo

Slide 80

Slide 80 text

FastAPI with SQLModel @tiangolo

Slide 81

Slide 81 text

FastAPI with SQLModel @tiangolo

Slide 82

Slide 82 text

FastAPI with SQLModel @tiangolo

Slide 83

Slide 83 text

FastAPI with SQLModel @tiangolo

Slide 84

Slide 84 text

Samuel Colvin Pydantic creator @samuel_colvin @samuelcolvin SQLModel - the people behind Mike Bayer SQLAlchemy creator @zzzeek @zzzeek @tiangolo

Slide 85

Slide 85 text

Modern Python ⏱ async / await @tiangolo

Slide 86

Slide 86 text

⏱ async / await - concurrency @tiangolo

Slide 87

Slide 87 text

⏱ async / await - concurrency @tiangolo

Slide 88

Slide 88 text

⏱ async / await - concurrency Photo by John Cameron: https://unsplash.com/@john_cameron @tiangolo

Slide 89

Slide 89 text

⏱ async / await - concurrency @tiangolo

Slide 90

Slide 90 text

⏱ async / await - concurrency @tiangolo

Slide 91

Slide 91 text

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

Slide 92

Slide 92 text

⏱ async / await - concurrency @tiangolo

Slide 93

Slide 93 text

⏱ async / await - FastAPI and HTTPX @tiangolo

Slide 94

Slide 94 text

⏱ async / await - FastAPI and HTTPX @tiangolo

Slide 95

Slide 95 text

⏱ async / await - FastAPI and HTTPX @tiangolo

Slide 96

Slide 96 text

⏱ async / await - optional with FastAPI and HTTPX @tiangolo

Slide 97

Slide 97 text

⏱ async / await - optional with FastAPI and HTTPX @tiangolo

Slide 98

Slide 98 text

FastAPI async / await - the people behind Tom Christie Creator of Starlette, HTTPX, and more @starletdreaming @tomchristie Marcelo Trylesinski Co-maintainer of Starlette and Uvicorn @marcelotryle @Kludex Andrew Godwin Author of the ASGI specification @andrewgodwin @andrewgodwin @tiangolo

Slide 99

Slide 99 text

⚡ Performance with FastAPI @tiangolo

Slide 100

Slide 100 text

⚡ Performance with FastAPI @tiangolo

Slide 101

Slide 101 text

⚡ Performance with FastAPI @tiangolo Now in Rust

Slide 102

Slide 102 text

@tiangolo ⚡ Performance with FastAPI

Slide 103

Slide 103 text

⚡ Performance with FastAPI @tiangolo

Slide 104

Slide 104 text

⚡ 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

Slide 105

Slide 105 text

👥 Community ● All by normal people 👥 ● Mostly during free time ⏰ ● Trying to help others ✨ @tiangolo

Slide 106

Slide 106 text

👥 Community @tiangolo

Slide 107

Slide 107 text

👥 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

Slide 108

Slide 108 text

No content

Slide 109

Slide 109 text

Thank you! Sebastián Ramírez tiangolo.com fastapi.tiangolo.com github.com/tiangolo linkedin.com/in/tiangolo twitter.com/tiangolo