PyMi Meetup
-
19th April 2023
Education between Econ & CS (with a bit of ML)
Mostly working with web technologies and data-related applications.
Currently leading the Eng. team @ Quick Algorithm
@Giuzzilla
/in/giuliomazzanti/
Go argue with me on..
Go APIs are so fast
Node.js is async by default
TypeScript frameworks are so damn.. TypeSafe
Showing an ideal TypeScript stack
Building our Python competitor
&
If you're looking for an Async primer, watch the previous PyMI meetup on youtube!
All roads lead to Rome. So if you know a better way let me know! (e.g. Quart, Django Ninja...)
Excalidraw sketches coming
Probably irrelevant in a few months with some cool Rust-powered framework (watch also the previous PyMI talk!)... or possibly a language model will fire us all
Python type hints are available since 3.5 and constantly improving
It should also be emphasized that Python will remain a dynamically typed language, and the authors have no desire to ever make type hints mandatory, even by convention.
From PEP 484
+ React + vite.. but less relevant
=
"The hitchhiker's guide to asyncio." by Emanuele Fabbiani @ Past PyMi meetup
Server-side
Client-side
*Logo redrawn with Excalidraw because they only had the light-mode version, don't sue me plz
*
A "micro-framework".
Untyped, Blocking I/O (sync)
1.x
(of course you can fully rely on copilot)
And s/he *will* get them wrong (i.e. not type-safe)
Introducing...
A python framework similar to Flask but Async & with type-hints/validation
FastAPI is based on Starlette, a performant python ASGI framework.
You can use Uvicorn (uvloop) as the ASGI webserver.
SQLAlchemy <1.4 doesn't implement an async interface natively. Either need to use TortoiseORM (ugh) or an adapter (e.g. encode/databases).
2.x
(from 1.4)
Even though the Typescript experience is more standard, Python is catching up
Watch out for updates on deeper Pydantic integrations with SQLAlchemy & SQLModel from FastAPI's creator
Pydantic 2.x is coming, with a Rust rewrite™