Ana Sayfa / Kod ve Scriptler / StockPilot - Inventory and Stock Management Python

StockPilot - Inventory and Stock Management Python

Bu kendi sunucunuzda çalışan Python uygulamasıyla envanteri, stok hareketlerini, düşük stok uyarılarını ve CSV dışa aktarımlarını yönetin.

  • Yayın tarihi26 Ekim 2026
  • Nerede çalışırPython 3.10, Python 3.11, Python 3.12, Python 3.13
  • VeritabanıSQLite 3.x
  • Paket içeriği.py, .html, .md
  • Son güncelleme26 Ekim 2026
  • Canlı demoVar
StockPilot - Inventory and Stock Management Python

Overview

StockPilot is a self-hosted inventory and stock management app for small shops, workshops and warehouses. It runs as one Python process with one SQLite file - no database server, no external service.

Every stock movement - goods received, goods sold, stocktake - is written in one database transaction together with the stock after it, so you can always see why a number changed. A sale larger than the stock is refused (HTTP 409), and a delivery note or invoice number is booked only once, so retries and double clicks never corrupt your numbers.

The web interface lists all items, highlights everything at or below its minimum stock with a "reorder" badge, shows the full movement history per item and exports the stock list as CSV for Excel or LibreOffice. The REST API with interactive OpenAPI documentation at /docs connects StockPilot to your shop, POS or automation tool. An optional token protects all write requests.

The download contains the complete, readable source code (FastAPI backend, HTML/JavaScript front end without build step), 8 automated tests, a README with installation, configuration and API overview, a changelog and a license file.

Features

  • Items with SKU, name and minimum stock
  • Goods in, goods out and stocktake (counted quantity) with a full movement log
  • Overselling refused (HTTP 409), checked inside one database transaction
  • Duplicate references (delivery note / invoice number) booked only once - safe to retry
  • Low-stock list with the missing quantity and "reorder" badges in the UI
  • Movement history per item
  • CSV export of the stock list (Excel / LibreOffice)
  • REST API with interactive OpenAPI docs at /docs
  • Optional write protection with a token (X-Token header)
  • One SQLite file in WAL mode - easy to back up
  • 8 automated tests (pytest) included
  • Runs on Windows, macOS and Linux

Requirements

  • Python 3.10 or newer
  • Python packages (installed with pip from requirements.txt): fastapi, uvicorn, pydantic
  • Windows, macOS or Linux - no database server needed (SQLite is built into Python)
  • Any current web browser for the web interface
  • For production: a server or VPS that can run Python, ideally behind a reverse proxy with HTTPS (nginx or Caddy)