FastAPI framework, high performance, easy to learn, fast to code, ready for production. 🚀 Web APIs with Python type hints. 🐍 By @tiangolo 🤓

Internet
Joined September 2020
Do you like weekend releases? Here's FastAPI 0.115.11 ☕️ ✨ New docs and first-class support for custom validators: fastapi.tiangolo.com/tutoria… 🐛 This fixes a bug introduced in the last release (from yesterday) that would break those custom validators.
2
14
1
112
These past days @FastAPI surpassed Laravel (PHP) and Gin (Go) in GitHub stars 🤩 Python has the two most starred web backend frameworks in all languages: Django and FastAPI 🐍🚀 github.com/fastapi/fastapi
FastAPI has been downloaded 1 billion times. 😮🥳🎉 1,000,000,000 downloads. That's a lot! 😁🚀 github.com/fastapi/fastapi You can check it in pepy.tech/projects/fastapi
24
98
21
1,067
A documentação da @FastAPI agora ta toda traduzida ao português! 🤩 fastapi.tiangolo.com/pt/ 💃🌐🕺 The FastAPI docs are now fully translated into Portuguese! 🤩
8
15
3
113
This is exactly the point, that's the intention behind @FastAPI (and everything else I build) 🚀🎸 No matter if you're new or an expert, you can make something ready to put out there in a (small) fraction of the time it would have taken... And have lots of fun doing it. 😎
Replying to @HenrM_Cruz
It’s wild that someone like me with almost no coding skills can go from idea to production in a couple of hours. Props to the @tiangolo and the @FastAPI project for making it incredible easy to build and test an API.
5
5
99
FastAPI retweeted
One of my biggest heroes (and not only for ML/AI), @AndrewYNg, uses and suggests @FastAPI 🤩🚀 Also on the latest newsletter from @DeepLearningAI's The Batch 🤓 deeplearning.ai/the-batch/is… ...I feel like a popstar's fan who just got invited to dance on stage in a concert 🤩
Using AI-assisted coding to build software prototypes is an important way to quickly explore many ideas and invent new things. In this and future posts, I’d like to share with you some best practices for prototyping simple web apps. This post will focus on one idea: being opinionated about the software stack. The software stack I personally use changes every few weeks. There are many good alternatives to these choices, and if you pick a preferred software stack and become familiar with its components, you’ll be able to develop more quickly. But as an illustration, here’s my current default: - Python with FastAPI for building web-hosted APIs: I develop primarily in Python, so that’s a natural choice for me. If you’re a JavaScript/TypeScript developer, you’ll likely make a different choice. I’ve found FastAPI really easy to use and scalable for deploying web services (APIs) hosted in Python. - Uvicorn to run the backend application server (to execute code and serve web pages) for local testing on my laptop. - If deploying on the cloud, then either Heroku for small apps or AWS Elastic Beanstalk for larger ones (disclosure: I serve on Amazon’s board of directors): There are many services for deploying jobs, including HuggingFace Spaces, Railway, Google’s Firebase, Vercel, and others. Many of these work fine, and becoming familiar with just 1 or 2 will simplify your development process. - MongoDB for NoSQL database: While traditional SQL databases are amazing feats of engineering that result in highly efficient and reliable data storage, the need to define the database structure (or schema) slows down prototyping. If you really need speed and ease of implementation, then dumping most of your data into a NoSQL (unstructured or semi-structured) database such as MongoDB lets you write code quickly and sort out later exactly what you want to do with the data. This is sometimes called schema-on-write, as opposed to schema-on-read. Mind you, if an application goes to scaled production, there are many use cases where a more structured SQL database is significantly more reliable and scalable. - OpenAI’s o1 and Anthropic’s Claude 3.5 Sonnet for coding assistance, often by prompting directly (when operating at the conceptual/design level). Also occasionally Cursor (when operating at the code level). I hope never to have to code again without AI assistance! Claude 3.5 Sonnet is widely regarded as one of the best coding models. And o1 is incredible at planning and building more complex software modules, but you do have to learn to prompt it differently. On top of all this, of course, I use many AI tools to manage agentic workflows, data ingestion, retrieval augmented generation, and so on. DeepLearning.AI and our wonderful partners offer courses on many of these tools. My personal software stack continues to evolve regularly. Components enter or fall out of my default stack every few weeks as I learn new ways to do things. So please don’t feel obliged to use the components I do, but perhaps some of them can be a helpful starting point if you are still deciding what to use. Interestingly, I have found most LLMs not very good at recommending a software stack. I suspect their training sets include too much “hype” on specific choices, so I don’t fully trust them to tell me what to use. And if you can be opinionated and give your LLM directions on the software stack you want it to build on, I think you’ll get better results. A lot of the software stack is still maturing, and I think many of these components will continue to improve. With my stack, I regularly build prototypes in hours that, without AI assistance, would have taken me days or longer. I hope you, too, will have fun building many prototypes! [Original text: deeplearning.ai/the-batch/is… ]
6
8
1
120
¿Hablas español? Te tengo un regalo. 🎁 Ahora TODA la documentación de FastAPI está traducida al español. 🎉 Ya no son 22 páginas, sino todas las 109, traducidas. 🤓 fastapi.tiangolo.com/es/
How to make technical writing relevant to contemporary dilemmas? Further, how to make technical documentation relevant? IMO: it is possible, and is done. @FastAPI and @pydantic are examples of tools which address crucial dilemmas in software engineering. (1/2)
1
5
17
The command fastapi (the FastAPI CLI) now looks so much nicer 😎 It now uses @patrick91's rich-toolkit 🎨 To get it, upgrade your dependencies with fastapi[standard] 🤓 Or manually upgrade the package fastapi-cli to the latest version: 0.0.6 🚀
A small one, FastAPI 0.115.6 🐛 This fixes a bug that prevented having the full traceback when a sync dependency with yield raised an exception in Python 3.11. 🤓 Thanks to @marcelotryle for the help with this one! 🙌 github.com/fastapi/fastapi
1
11
110
🎟️ BLACK FRIDAY DEAL 🎉 @FastAPI with 70% discount * 😱 Grab it today and get the rest of the stack for free: SQLModel, Typer, Asyncer, the full-stack template 🎁 Save even more with the bundle, including @pydantic, uv, Rich, HTTPX * 🤯 github.com/fastapi/fastapi
FastAPI retweeted
我愿称 @FastAPI 写的文档为业界标杆
2
1
6