Andorra United Arab Emirates Afghanistan Antigua and Barbuda Albania Armenia Angola Argentina Austria Australia Azerbaijan Bosnia and Herzegovina Barbados Bangladesh Belgium Burkina Faso Bulgaria Bahrain Burundi Benin Brunei Darussalam Bolivia (Plurinational State of) Brazil Bahamas Bhutan Botswana Belarus Belize Canada Congo, Democratic Republic of the Central African Republic Congo Switzerland C??te d'Ivoire Chile Cameroon China Colombia Costa Rica Cuba Cabo Verde Cyprus Czechia Germany Djibouti Denmark Dominica Dominican Republic Algeria Ecuador Estonia Egypt Eritrea Spain Ethiopia Finland Fiji Micronesia (Federated States of) France Gabon United Kingdom Grenada Georgia Ghana Gambia Guinea Equatorial Guinea Greece Guatemala Guinea-Bissau Guyana Honduras Croatia Haiti Hungary Indonesia Ireland Israel India Iraq Iran (Islamic Republic of) Iceland Italy Jamaica Jordan Japan Kenya Kyrgyzstan Cambodia Kiribati Comoros Saint Kitts and Nevis Korea (Democratic People's Republic of) Korea, Republic of Kuwait Kazakhstan Lao People's Democratic Republic Lebanon Saint Lucia Liechtenstein Sri Lanka Liberia Lesotho Lithuania Luxembourg Latvia Libya Morocco Monaco Moldova, Republic of Montenegro Madagascar Marshall Islands North Macedonia Mali Myanmar Mongolia Mauritania Malta Mauritius Maldives Malawi Mexico Malaysia Mozambique Namibia Niger Nigeria Nicaragua Netherlands Norway Nepal Nauru New Zealand Oman Panama Peru Papua New Guinea Philippines Pakistan Poland Portugal Palau Paraguay Qatar Romania Serbia Russian Federation Rwanda Saudi Arabia Solomon Islands Seychelles Sudan Sweden Singapore Slovenia Slovakia Sierra Leone San Marino Senegal Somalia Suriname South Sudan Sao Tome and Principe El Salvador Syrian Arab Republic Eswatini Chad Togo Thailand Tajikistan Timor-Leste Turkmenistan Tunisia Tonga T�����rkiye Trinidad and Tobago Tuvalu Taiwan (Province of China) Tanzania, United Republic of Ukraine Uganda United States of America Uruguay Uzbekistan Holy See Saint Vincent and the Grenadines Venezuela (Bolivarian Republic of) Viet Nam Vanuatu Yemen South Africa Zambia Zimbabwe
  • training@skillsforafrica.org
    info@skillsforafrica.org

Building Apis With Fastapi And Python Training Course in Trkiye

Introduction

The Building APIs with FastAPI and Python Training Course is designed for developers and tech professionals seeking to master the modern, high-performance framework for building APIs efficiently using Python. As digital transformation accelerates and microservices architecture becomes mainstream, the need for scalable, fast, and reliable APIs is critical. FastAPI stands out for its asynchronous support, data validation through Pydantic, automatic interactive documentation, and speed comparable to Node.js and Go — all powered by Python.

This hands-on course takes learners through the entire API development lifecycle, from basic route creation to advanced topics like authentication, database integration, and deployment with Docker. Whether you're modernizing monolithic systems, enabling mobile and web applications, or building API-first architectures, this training equips you with the tools, best practices, and confidence to deliver secure and scalable APIs.

Target Audience

  • Software and backend developers building API-based applications
  • Full-stack developers working on web and mobile integration
  • DevOps engineers managing deployment and API infrastructure
  • Python programmers transitioning to web frameworks
  • Technical leads implementing microservices
  • API architects standardizing enterprise APIs
  • Cloud professionals integrating backend services

Course Objectives

  • Understand REST architecture and asynchronous API development using FastAPI
  • Create high-performance, type-safe endpoints with FastAPI and Python
  • Utilize Pydantic for request validation and data serialization
  • Manage routing, query parameters, and path handling
  • Develop asynchronous APIs with async/await for scalable performance
  • Integrate SQL and NoSQL databases into FastAPI applications
  • Secure APIs with JWT, OAuth2, and API key-based strategies
  • Implement error handling, middleware, and logging best practices
  • Containerize and deploy FastAPI applications using Docker and CI/CD pipelines
  • Build, document, and test complete API-driven applications for production

Duration

10 Days

Course content

Module 1: Foundations of FastAPI and REST APIs

  • Introduction to RESTful principles and API-first design
  • Overview of FastAPI advantages over other frameworks
  • Installing FastAPI and creating a starter project
  • Running with Uvicorn and ASGI fundamentals
  • Building your first route and response

Module 2: Routing, Parameters, and Response Models

  • Creating endpoints with HTTP methods
  • Handling path and query parameters
  • Response status codes and schemas
  • Working with headers and cookies
  • Organizing routes with APIRouter

Module 3: Data Validation Using Pydantic

  • Pydantic model creation and field typing
  • Request body validation and defaults
  • Nested models and data aliasing
  • Custom validators and error messages
  • Exporting and reusing schemas

Module 4: Asynchronous Processing and Background Tasks

  • Sync vs async: when and why to use each
  • Async database and API calls
  • Creating non-blocking endpoints
  • Background tasks and long-running jobs
  • Using async with third-party libraries

Module 5: Database Integration and Persistence Layer

  • Connecting FastAPI with SQL (PostgreSQL/MySQL/SQLite)
  • Using SQLAlchemy or Tortoise ORM
  • CRUD operations and query optimization
  • NoSQL integrations (MongoDB with Motor)
  • Managing database connections and pooling

Module 6: API Security and Authentication Mechanisms

  • Implementing OAuth2 with password flow
  • Secure endpoints with JWT tokens
  • API key-based access and scopes
  • User roles and permissions
  • Protecting sensitive routes

Module 7: Dependency Injection and Middleware

  • FastAPI’s dependency injection system
  • Shared logic through reusable dependencies
  • Writing custom middleware
  • Logging, rate limiting, and error tracking
  • CORS configuration and headers control

Module 8: Error Handling and Testing APIs

  • Custom error responses and exception handlers
  • Built-in HTTP exceptions
  • Unit and integration testing with Pytest
  • Automated validation tests
  • Mocking and simulating endpoints

Module 9: External Services and WebSocket Integration

  • Consuming third-party APIs in FastAPI
  • Building APIs that serve frontend frameworks
  • Streaming responses and file uploads
  • Real-time communication with WebSockets
  • Serving static content and frontend assets

Module 10: Performance Optimization and Scalability

  • Using caching layers with Redis
  • Load testing APIs with Locust
  • Optimizing for concurrency and I/O
  • Performance benchmarking tools
  • Profiling and debugging for efficiency

Module 11: Deployment with Docker and CI/CD

  • Writing Dockerfiles for FastAPI projects
  • Environment configuration with .env files
  • Deployment on cloud platforms (AWS, GCP, Azure)
  • Using Gunicorn and Uvicorn workers
  • Automating deployment pipelines with GitHub Actions

Module 12: Capstone Project and Best Practices

  • Designing a full-featured API with auth, DB, and docs
  • Structuring production-grade FastAPI applications
  • Documenting with Swagger and ReDoc
  • Version control and repository management
  • Final presentations and peer feedback

Training Approach

This course will be delivered by our skilled trainers who have vast knowledge and experience as expert professionals in the fields. The course is taught in English and through a mix of theory, practical activities, group discussion and case studies. Course manuals and additional training materials will be provided to the participants upon completion of the training.

Tailor-Made Course

This course can also be tailor-made to meet organization requirement. For further inquiries, please contact us on: Email: info@skillsforafrica.org, training@skillsforafrica.org Tel: +254 702 249 449

Training Venue

The training will be held at our Skills for Africa Training Institute Training Centre. We also offer training for a group at requested location all over the world. The course fee covers the course tuition, training materials, two break refreshments, and buffet lunch.

Visa application, travel expenses, airport transfers, dinners, accommodation, insurance, and other personal expenses are catered by the participant

Certification

Participants will be issued with Skills for Africa Training Institute certificate upon completion of this course.

Airport Pickup and Accommodation

Airport pickup and accommodation is arranged upon request. For booking contact our Training Coordinator through Email: info@skillsforafrica.org, training@skillsforafrica.org Tel: +254 702 249 449

Terms of Payment: Unless otherwise agreed between the two parties’ payment of the course fee should be done 10 working days before commencement of the training.

Course Schedule
Dates Fees Location Apply
07/07/2025 - 18/07/2025 $3000 Nairobi, Kenya
14/07/2025 - 25/07/2025 $5500 Johannesburg, South Africa
14/07/2025 - 25/07/2025 $3000 Nairobi, Kenya
04/08/2025 - 15/08/2025 $3000 Nairobi, Kenya
11/08/2025 - 22/08/2025 $3500 Mombasa, Kenya
18/08/2025 - 29/08/2025 $3000 Nairobi, Kenya
01/09/2025 - 12/09/2025 $3000 Nairobi, Kenya
08/09/2025 - 19/09/2025 $4500 Dar es Salaam, Tanzania
15/09/2025 - 26/09/2025 $3000 Nairobi, Kenya
06/10/2025 - 17/10/2025 $3000 Nairobi, Kenya
13/10/2025 - 24/10/2025 $4500 Kigali, Rwanda
20/10/2025 - 31/10/2025 $3000 Nairobi, Kenya
03/11/2025 - 14/11/2025 $3000 Nairobi, Kenya
10/11/2025 - 21/11/2025 $3500 Mombasa, Kenya
17/11/2025 - 28/11/2025 $3000 Nairobi, Kenya
01/12/2025 - 12/12/2025 $3000 Nairobi, Kenya
08/12/2025 - 19/12/2025 $3000 Nairobi, Kenya