Skip to content

The Pharma Tracking backend uses FastAPI and PostgreSQL to predict pharmaceutical demand and optimize inventory. It provides APIs for real-time data, analytics, and efficient inventory management in the pharmaceutical supply chain.

Notifications You must be signed in to change notification settings

Im-Alam/pharmaML

Repository files navigation

pharmaML

PharmaML API

This FastAPI application provides endpoints to fetch product demand for the current or a specified week and to calculate the reorder point for products.

Available Routes

PharmaML API

This FastAPI application provides various endpoints to manage and analyze product demand, supplier scores, reorder points, and other inventory-related data.

Available Routes

1. Home Page

2. Get Product Demand for the Current or Specified Week

  • Endpoint: GET /product-demand
  • Description: Fetches the product demand for the current week if no query parameter is specified. You can also specify a week number (from 1 to 18) to retrieve demand for that week.
  • Query Parameter:
    • week (optional, integer): The week number for which you want to fetch demand. Must be between 1 and 18.
  • Example Request: https://pharma-ml.vercel.app/product-demand?week=3
  • Example Response:
    {
      "Paracetamol": {"demand": 500},
      "Aspirin": {"demand": 300}
    }

About

The Pharma Tracking backend uses FastAPI and PostgreSQL to predict pharmaceutical demand and optimize inventory. It provides APIs for real-time data, analytics, and efficient inventory management in the pharmaceutical supply chain.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages