Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This repository is dedicated to storing the code developed during the "FastAPI - The Complete Course 2025 (Beginner + Advanced)" course on Udemy.

License

NotificationsYou must be signed in to change notification settings

ashok14k/FastAPI-The-Complete-Course-2025-Beginner-Advanced-Udemy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#FastAPI - The Complete Course 2025 (Beginner + Advanced) 🚀Welcome to the**FastAPI - The Complete Course 2025 (Beginner + Advanced)** repository! This space is dedicated to the code developed throughout the course offered on Udemy. Whether you're just starting or looking to refine your skills, this repository has you covered.![FastAPI](https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png)##Table of Contents-[Course Overview](#course-overview)-[Getting Started](#getting-started)-[Installation](#installation)-[Usage](#usage)-[Folder Structure](#folder-structure)-[Code Examples](#code-examples)-[Contributing](#contributing)-[License](#license)-[Links and Resources](#links-and-resources)-[Contact](#contact)##Course OverviewFastAPI is a modern, fast (high-performance) web framework for building APIs with Python 3.6+. It is based on standard Python type hints. The course aims to teach you how to create APIs efficiently and effectively. By the end of this course, you'll have the knowledge to build and deploy your applications.###What You Will Learn- How to set up FastAPI and create your first API.- Work with path parameters and query parameters.- Understand request and response models using Pydantic.- Implement authentication and authorization.- Handle database operations with SQLAlchemy.- Create and manage Docker containers for your applications.##Getting StartedTo get started, clone this repository to your local machine:```bashgit clone https://github.com/ashok14k/FastAPI-The-Complete-Course-2025-Beginner-Advanced-Udemy.git

Navigate to the directory:

cd FastAPI-The-Complete-Course-2025-Beginner-Advanced-Udemy

Ensure you have Python 3.6+ installed. You can check your Python version with:

python --version

Next, install the required packages. It is best to use a virtual environment:

python -m venv venvsource venv/bin/activate# On Windows use `venv\Scripts\activate`pip install -r requirements.txt

Usage

Run the FastAPI application with the following command:

uvicorn main:app --reload

Visithttp://127.0.0.1:8000/docs to explore the interactive API documentation generated by FastAPI.

Folder Structure

The repository follows a structured approach to make navigation easier. Below is an overview of the main folders and files:

.├── app/│   ├── main.py│   ├── models/│   ├── routers/│   ├── schemas/│   └── utils/├── requirements.txt└── README.md
  • app/main.py: The main application file where the FastAPI app instance is created.
  • app/models/: Contains database models.
  • app/routers/: Houses the API route definitions.
  • app/schemas/: Holds Pydantic models for request and response validation.
  • app/utils/: Any utility functions.

Code Examples

Here are some snippets to illustrate common tasks:

Basic GET Request

fromfastapiimportFastAPIapp=FastAPI()@app.get("/")defread_root():return {"Hello":"World"}

Creating a User Model

frompydanticimportBaseModelclassUser(BaseModel):id:intname:stremail:str

Authentication Example

fromfastapi.securityimportOAuth2PasswordBearer,OAuth2PasswordRequestFormoauth2_scheme=OAuth2PasswordBearer(tokenUrl="token")@app.post("/token")asyncdeflogin(form:OAuth2PasswordRequestForm=Depends()):# Perform authenticationpass

Contributing

We welcome contributions! To get started:

  1. Fork the repository.
  2. Create a new branch.
  3. Make your changes.
  4. Submit a pull request.

Please ensure your code follows the existing style and includes tests.

License

This project is licensed under the MIT License. See theLICENSE file for details.

Links and Resources

For more information, visit the following:

Releases

You can download the latest releases and updates from ourReleases page.

Download Releases

Contact

For questions or feedback, feel free to reach out through GitHub.

Happy coding! 💻

About

This repository is dedicated to storing the code developed during the "FastAPI - The Complete Course 2025 (Beginner + Advanced)" course on Udemy.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp