Skip to content

ElderEvil/lantec-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI Asynchronous Image Processing

This project is a backend application built with FastAPI and Redis to handle asynchronous image processing tasks.

Features

  • 📂 Upload Images: Supports uploading one or multiple images in a single API request.
  • 🔄 Asynchronous Processing: Uses Redis to manage background task queues for long-running image processing tasks.
  • 🔍 Task Status Tracking: Clients can poll the status of tasks (e.g., pending, success, or failure) using a task ID.
  • 🛡️ Error Handling: Robust error handling for invalid image formats and processing failures.

Tech Stack

  • FastAPI: Web framework for building the API.
  • Redis: In-memory data store used for task management and status tracking.
  • asyncio: Asynchronous programming for non-blocking task execution.

Setup and Installation

  1. Clone the repository:
    git clone git@github.com:ElderEvil/lantec.git
  2. Install the dependencies:
     uv sync
  3. Run the FastAPI application:
    uv run fastapi dev

API Endpoints

  • POST /upload-images/: Upload one or multiple images.
  • GET /task/{task_id}: Get the status of a task by its ID.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages