Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Build a Simple API from Scratch 💻 FastAPI Tutorial for Beginner

Автор: Python Simplified

Загружено: 2025-09-07

Просмотров: 71952

Описание:

What if APIs are not confusing at all - they were just never explained simply enough? 🤯
In this beginner-friendly FastAPI tutorial, we’ll build a simple API from scratch with Python — using a fun real-world example of delivering goods from New Jersey to New York! 🚚🍅

By the end of this tutorial, you’ll not only understand what APIs are, but you’ll also design, develop, and run one yourself - complete with custom endpoints, async requests, error handling, and even a beautiful client app that brings your API to life! No boring backends, no overwhelming syntax! Just the simplest introduction you’ve ever seen. 😎

⭐ This video is brought to you by HubSpot! Check out their FREE Introduction to Python PDF guide: https://clickhubspot.com/f057c8

Big thanks to HubSpot for sponsoring this video and providing the Python guide for free! 🙌

📚 What you'll learn:
What APIs are and how they work (explained with trucks, bridges & tomatoes!)
How to build an API server with FastAPI
Creating endpoints and path parameters
Handling multiple requests (async functions)
Using query parameters (`?order_qty=30`)
Updating inventory dynamically
Error handling & best practices with FastAPI
Running and testing your API with Uvicorn
Connecting to a custom-built client app

🛠️ Tools used:
Conda / WSL
FastAPI
Uvicorn
Custom FastAPI client app

🔎 Resources & Helpful Tutorials:
--------------------------------------------
⭐ Full code on GitHub: https://github.com/MariyaSha/Simple_A...
⭐ Free Python Introduction PDF (HubSpot): https://clickhubspot.com/f057c8
⭐ Install WSL and Conda:    • My Go-To Python Setup! 🐍 WSL + Conda Minif...  

💻 Environment Setup:
-----------------------------------------------------------------------------------------------
conda create -n api_env python=3.12
conda activate api_env
pip install fastapi uvicorn

Run API server :
uvicorn nj_server:app --reload

Run my custom client:
pip install requests jinja2 python-multipart
uvicorn ny_client:app --reload --port 8001

⚙️ Example Endpoint:
-----------------------------------------------------------------------------------------------
@app.get("/warehouse/{my_item}")
async def load_truck(my_item, order_qty):
return {
"item": my_item,
"order_qty": order_qty,
"unit": catalog[my_item]["unit"]
}
-----------------------------------------------------------------------------------------------

⏰ Timestamps ⏰
01:22 - What is an API? (Explained with trucks & bridges)
03:35 - Coding an API Server with FastAPI
06:02 - Creating Endpoints
08:10 - Async Functions
08:42 - Path Parameters
09:45 - Running the API Server with Uvicorn
13:17 - Custom Client App
16:15 - Updating Inventory Dynamically
19:03 - Error Handling in FastAPI
20:15 - Best Practices & Next Steps
21:26 - Thanks for Watching! :)

#python #api #programming #coding #pythonprogramming #pythontutorial #backend #webdevelopment #beginnerfriendly #server #client

Build a Simple API from Scratch 💻 FastAPI Tutorial for Beginner

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Самое простое объяснение обучения с подкреплением, которое вы когда-либо видели! 🤖

Самое простое объяснение обучения с подкреплением, которое вы когда-либо видели! 🤖

Почему ваш код не соответствует Python (и как это исправить)

Почему ваш код не соответствует Python (и как это исправить)

Simple Machine Learning Code Tutorial for Beginners with Sklearn Scikit-Learn

Simple Machine Learning Code Tutorial for Beginners with Sklearn Scikit-Learn

You're Probably Building FASTAPI Apps WRONG (Clean Architecture)

You're Probably Building FASTAPI Apps WRONG (Clean Architecture)

Как устроен PHP 🐘: фундаментальное знание для инженеров

Как устроен PHP 🐘: фундаментальное знание для инженеров

Build AI App with FULL WEB ACCESS 🌐 (Local + Python GUI + MCP + LangChain Tutorial )

Build AI App with FULL WEB ACCESS 🌐 (Local + Python GUI + MCP + LangChain Tutorial )

Декораторы Python — наглядное объяснение

Декораторы Python — наглядное объяснение

Please Learn How To Write Tests in Python… • Pytest Tutorial

Please Learn How To Write Tests in Python… • Pytest Tutorial

Мой честный совет начинающим инженерам-программистам

Мой честный совет начинающим инженерам-программистам

Как бы я изучал ИИ, если бы мог начать всё сначала 🧠 Полная дорожная карта для начинающих ⚡

Как бы я изучал ИИ, если бы мог начать всё сначала 🧠 Полная дорожная карта для начинающих ⚡

Точка зрения: что вы увидите во время захвата искусственным интеллектом

Точка зрения: что вы увидите во время захвата искусственным интеллектом

Build a REST API in Python | API Crash Course

Build a REST API in Python | API Crash Course

Build Full Stack LLM Chat App with Docker Model Runner, LangChain and Streamlit

Build Full Stack LLM Chat App with Docker Model Runner, LangChain and Streamlit

Kubernetes — Простым Языком на Понятном Примере

Kubernetes — Простым Языком на Понятном Примере

FastAPI Crash Course 2025: Python Tutorial for Absolute Beginners

FastAPI Crash Course 2025: Python Tutorial for Absolute Beginners

FastAPI Full Crash Course - Python’s Fastest Web Framework

FastAPI Full Crash Course - Python’s Fastest Web Framework

Учебник Pydantic • Решение самой большой проблемы Python

Учебник Pydantic • Решение самой большой проблемы Python

How to Use FastAPI: A Detailed Python Tutorial

How to Use FastAPI: A Detailed Python Tutorial

Python Tutorial: UV - A Faster, All-in-One Package Manager to Replace Pip and Venv

Python Tutorial: UV - A Faster, All-in-One Package Manager to Replace Pip and Venv

FastAPI for AI: Build an AI Endpoint in 30 Minutes

FastAPI for AI: Build an AI Endpoint in 30 Minutes

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]