Skip to content

Releases: ysskrishna/fastapi-sync-async-starter

Release 1.2.0

23 Mar 17:26

Choose a tag to compare

Added

  • Implemented rate limiting functionality using slowapi and redis packages
  • Added REDIS_HOST, REDIS_PORT, REDIS_DB environment configuration for redis
  • Added redis container in docker compose
  • Added rate_limited_sync and rate_limited_async to showcase sample usage of ratelimiting
  • Environment-based Rate limiting configuration with Redis support for production and memory storage for testing
  • Added rate limiting examples with different patterns:
    • Basic rate limiting (5 requests/minute)
    • Shared rate limiting across endpoints
    • Burst rate limiting (5/minute; 10/hour)
    • Rate limiting for slow endpoints
  • Added comprehensive test suite for rate limiting functionality

Changed

  • Updated media/example_coverage_report and media/example_pytest_report with latest reports

Release 1.1.0

20 Mar 17:14

Choose a tag to compare

Added

  • Docker support with multi-stage builds for optimized production and test environments
  • Docker Compose setup with PostgreSQL database service
  • Created init.sql script for initializing databases if not present
  • Poetry dependency management with pyproject.toml and poetry.lock
  • Docker-specific configurations with .dockerignore
  • Containerized test environment with separate test stage

Changed

  • Updated project structure to support containerized development
  • Enhanced development workflow with Docker-based testing
  • Separated main and dev packages in pyproject.toml for decoupling test dependencies

Fixed

  • Bugfix with event_loop fixture for async tests

Removed

  • Removed requirements.txt file in favor of Poetry dependency management

Release 1.0.0

12 Mar 16:50

Choose a tag to compare

Added

  • Initial project setup with FastAPI framework
  • Dual database access patterns with psycopg2 (sync) and `asyncpg (async)
  • SQLAlchemy 2.0+ ORM with both sync and async session management
  • Comprehensive test suite using pytest with async support
  • Code coverage reporting with pytest-cov
  • HTML test reports via pytest-html
  • CORS middleware configuration
  • Type validation with Pydantic v2
  • Project documentation and README
  • Structured project layout with src/, tests/, and report/ directories
  • Included sample pytest and coverage reports in media/ directory for reference