Best of FastAPI — 2024

  1. 1
    Article
    Avatar of kdnuggetsKDnuggets·2y

    LLM Portfolio Projects Ideas to Wow Employers

    Discover diverse AI project ideas that can be built using Python and various open-source tools like LangChain, FastAPI, OpenAI API, and Hugging Face. From fine-tuning Llama 3 and creating Q&A retrieval systems to building YouTube summarizers and vacation planning assistants, these projects are designed to enhance your portfolio and impress potential employers. Each project comes with guides or sample links to aid in development, making AI more accessible even to those with fundamental Python skills.

  2. 2
    Article
    Avatar of hnHacker News·2y

    Building the Same App Using Various Web Frameworks

    The author explores migrating from a current web app stack (FastAPI, HTML, CSS, and JavaScript) to modern web frameworks like FastHTML, Next.js, and Svelte by building the same web app using each one. The app allows users to upload a CSV file, view and update the table in the browser, and download the updated data. While the author found the FastAPI implementation straightforward, they learned various tricks and optimizations while building with FastHTML, Next.js, and Svelte. The experiment also highlighted how coding assistants might favor established frameworks over newer ones due to training data biases, impacting their effectiveness.

  3. 3
    Article
    Avatar of communityCommunity Picks·2y

    I built an AI tool to handle my mom's invoices and saved her 20 hours of work! 😲

    A developer built an AI tool that automates invoice processing for a small business, saving 20 hours of manual work. The tool uses Composio for retrieving emails and attachments, Nanonets for extracting data from PDFs, and Google Sheets for organizing the information. The project leverages technologies like GmailGenius, CrewAI, React, Firebase for authentication, and FastAPI for the backend, creating a streamlined solution for managing invoices.

  4. 4
    Video
    Avatar of TechWithTimTech With Tim·2y

    FastAPI, Flask or Django - Which Should You Use?

    Comparison of Flask, Django, and FastAPI for Python web development. Flask is lightweight and customizable, ideal for small to medium-sized apps. Django is high-level with many built-in features, suitable for complex web applications. FastAPI is a modern, high-performance framework for building self-documenting and fast APIs. Choose the framework based on your use case, ease of learning, performance needs, and project requirements.

  5. 5
    Video
    Avatar of freecodecampfreeCodeCamp·2y

    FARM Stack Course – Full Stack Development with FastAPI, React MongoDB

    The FARM stack is a modern web development stack that combines FastAPI for the backend, React for the front end, and MongoDB for the database. This course covers each component, their integration using Docker, and steps to build a full-featured to-do application. FastAPI provides a high-performance Python framework for APIs, React enables efficient UI creation, and MongoDB offers flexible, document-oriented data storage. The tutorial emphasizes setting up the development environment, creating API endpoints, building a responsive UI, and managing databases, culminating in a Dockerized application deployment.

  6. 6
    Article
    Avatar of hnHacker News·2y

    Modern web applications in pure Python

    FastHTML enables the creation of modern web applications using pure Python, leveraging solid web foundations and offering seamless scalability. With the ability to utilize any Python or JS library, FastHTML provides flexibility and speed, making it ideal for various applications from dashboards to scalable SPAs. Deployment options are versatile, supporting any service or server compatible with Python, and users familiar with FastAPI will find transitioning to FastHTML intuitive. Additionally, incorporating HTMX can enhance functionality by filling in web browser gaps with a lightweight JavaScript library.

  7. 7
    Article
    Avatar of kdnuggetsKDnuggets·2y

    A Simple to Implement End-to-End Project with HuggingFace

    Create an end-to-end project using a pre-trained Hugging Face model for sentiment analysis. This guide details how to deploy the model with FastAPI, build an API endpoint, and use Docker to containerize the application for easy deployment.

  8. 8
    Video
    Avatar of TechWithTimTech With Tim·1y

    How to Create a FastAPI & React Project - Python Backend + React Frontend

    A comprehensive guide to connecting a FastAPI backend with a React frontend from scratch. It addresses common issues such as CORS errors and provides a step-by-step walkthrough for setting up and testing the integration. Advanced features like user authentication and authorization using JWT tokens are also discussed, with a detailed example available in a GitHub repository.

  9. 9
    Article
    Avatar of testdrivenTestDriven.io·2y

    Using HTMX with FastAPI

    Learn how to integrate HTMX with FastAPI by creating a simple todo app. This guide covers setting up the environment, creating endpoints to handle CRUD operations, and deploying the app on Render. The combination of FastAPI and HTMX facilitates efficient server-side rendering, minimizing client-side logic and providing a seamless user experience. Included are techniques for rendering HTML conditionally based on request headers and leveraging Jinja2 templates for dynamic content.

  10. 10
    Article
    Avatar of jetbrainsJetBrains·2y

    How to Use FastAPI for Machine Learning

    FastAPI is a user-friendly Python web framework ideal for quickly building backend services. It is widely adopted by companies like Microsoft and Netflix, offering benefits such as easy API creation, fast documentation, and simple testing. FastAPI allows data scientists with little to no backend experience to deploy prediction models, suggestion engines, and dynamic reporting systems efficiently. This guide walks through using FastAPI to create machine learning project APIs, including setup, environment dependency, handling request responses, and advanced functionalities like image classification and retraining models with background tasks.

  11. 11
    Article
    Avatar of communityCommunity Picks·2y

    Building a Full-Stack Portfolio Website with a RAG Powered Chatbot

    Develop a portfolio website using React and FastAPI, featuring a chatbot powered by pgvector, Neon Postgres, and OpenAI embeddings. This guide walks you through setting up the backend, database, API endpoints, and front end, and optionally containerizing the project with Docker. You'll learn how to create a modern tech portfolio that demonstrates both front-end and back-end skills, while integrating an AI chatbot to answer questions about your experience.

  12. 12
    Article
    Avatar of inPlainEngHQPython in Plain English·2y

    File Uploads and Downloads in FastAPI: A Comprehensive Guide

    This post provides a comprehensive guide on handling file uploads and downloads in FastAPI. It covers topics such as introduction to FastAPI, understanding file uploads, making files statically available, validating file types, and handling file downloads.

  13. 13
    Article
    Avatar of medium_jsMedium·2y

    101 Things I Never Knew About Python

    The post shares insights from an experienced Python developer who has written extensively on the language. It details the author's journey from learning Python in university to becoming a full-stack software engineer and prolific writer on Medium. The post also introduces a book compiled from over 700 articles, aiming to consolidate various Python tricks and concepts learned over the years.

  14. 14
    Article
    Avatar of mlmMachine Learning Mastery·2y

    A Practical Guide to Deploying Machine Learning Models

    Learn how to deploy a machine learning model in this hands-on guide. Starting with building the model using Scikit-learn, the guide walks you through creating a REST API with FastAPI, containerizing the API with Docker, and testing it locally. Finally, it covers tagging and pushing the Docker image to Docker Hub for easy distribution and hints at deploying to cloud platforms for production use.

  15. 15
    Article
    Avatar of collectionsCollections·1y

    Flutter Full Stack Tutorial – Spotify Clone with MVVM Architecture, Python, FastAPI, and Riverpod

    Learn to build a fully functional Spotify clone using Flutter for the front end and FastAPI for the backend, following the MVVM architecture. The tutorial covers advanced topics including user authentication, background music playback, and data persistence with PostgreSQL, along with efficient state management using Riverpod.

  16. 16
    Article
    Avatar of medium_jsMedium·2y

    How to Build a Streaming Agent with Burr, FastAPI, and React

    Learn how to build a streaming agentic chatbot using Burr, FastAPI, and React. This guide covers why streaming is important, introduces the open-source tools used, and provides a step-by-step example of integrating these technologies to create an interactive chatbot. The chatbot streams responses in real-time, leveraging Burr's state machine capabilities, FastAPI's SSEs, and a React frontend. Key steps include modeling the chatbot as a state machine, setting up streaming actions, building an application, exposing it through FastAPI, and creating the UI to handle streaming data.

  17. 17
    Video
    Avatar of TechWithTimTech With Tim·2y

    How To Create a Python API With FastAPI - Full Tutorial

    Learn how to create a Python API with FastAPI using Python version 3.8 or above. FastAPI is a performant Python framework that is easy to learn, fast to code, and ready for production. It provides automatic documentation for APIs, handles API development complexities, and supports JSON data.

  18. 18
    Article
    Avatar of netguruNetguru·2y

    FastAPI vs Flask: Which Should You Choose?

    Choosing between Flask and FastAPI for Python web development hinges on understanding their respective strengths: Flask's simplicity and long-standing stability versus FastAPI’s performance and modern features. Flask is ideal for small to medium-sized projects and prototypes, offering extensive flexibility and a larger community. FastAPI, on the other hand, excels in speed, concurrency, and automatic documentation, making it suitable for high-performance and real-time applications.

  19. 19
    Article
    Avatar of earthlyEarthly·2y

    Top Python Frameworks for 2024

    This post provides an overview of Python web frameworks, including Django, Flask, and FastAPI. It explains the difference between a library and a framework, highlights the features and use cases of each framework, and offers tips for choosing the right framework for your project.

  20. 20
    Video
    Avatar of communityCommunity Picks·1y

    Python (FastAPI) vs Go (Golang) Performance Benchmark

    The post compares the performance of FastAPI, a Python web framework, with Go's standard library. The tests measure latency, throughput, CPU and memory usage, error rates, and CPU throttling. Deployed on Kubernetes in AWS, the tests evaluate the frameworks in a basic scenario and a more complex one involving database interactions and caching. FastAPI lags significantly behind Go in performance, reaching a limit quickly, while Go maintains higher throughput and lower latencies for extended periods.

  21. 21
    Article
    Avatar of communityCommunity Picks·2y

    How to Integrate Passkeys in Python (FastAPI)

    Learn to integrate passkey authentication in a Python web application using FastAPI with Corbado's passkey-first web-js package. This guide covers setting up project structure, configuring environment variables, and creating HTML templates for seamless session management and user authentication.