Fastapi Sync Async Starter Template logo

Fastapi Sync Async Starter Template

Launch production-ready FastAPI apps—effortlessly!

Fastapi Sync Async Starter Template screenshot 1Fastapi Sync Async Starter Template screenshot 2Fastapi Sync Async Starter Template screenshot 3
Overview

What is Fastapi Sync Async Starter Template?

FastAPI Sync/Async Starter is a modern Python web application template built with FastAPI, showcasing synchronous and asynchronous operations using SQLAlchemy, psycopg2, and asyncpg. It features comprehensive testing with pytest, Docker support with multistage builds, and production-ready rate limiting with Redis support.

How to use Fastapi Sync Async Starter Template

Clone the repository, set up a virtual environment using Poetry, install dependencies, and run the application using Docker or directly with Python.

Core features

  1. 01FastAPI Framework Integration
  2. 02Dual database access patterns with psycopg2 and asyncpg
  3. 03Comprehensive test suite using pytest
  4. 04Docker support with multistage builds
  5. 05Rate limiting with Redis support

Use cases

  • Building modern web applications with FastAPI
  • Implementing synchronous and asynchronous database operations
  • Creating scalable APIs with integrated testing and rate limiting

Who makes Fastapi Sync Async Starter Template

The project is maintained by ysskrishna, who focuses on creating efficient and modern web application templates using Python and FastAPI.

Frequently asked questions

What is FastAPI Sync/Async Starter?

It is a modern Python web application template built with FastAPI, demonstrating sync vs async operations.

What databases are supported?

The template supports PostgreSQL with both synchronous and asynchronous access.

How do I run tests?

You can run tests using the command 'poetry run pytest'.

Is there Docker support?

Yes, the project includes Docker support with multistage builds.

What is the rate limiting feature?

The template includes production-ready rate limiting using Redis.

Can I contribute to the project?

Yes, contributions are welcome, and you can submit a Pull Request.

What license is the project under?

The project is licensed under the MIT License.

Alternatives

Fastapi Sync Async Starter Template alternatives worth a look.

Developer Tools →

Related guides

All guides →