How meji87/labtrack works
LabTrack is a desktop laboratory inventory and procurement application. Staff sign in, then use its views to manage products and suppliers, create and email purchase orders, record receptions with PDF paperwork, track stock movements, and review alerts or dashboard summaries. Administration manages users and categories. The views operate on SQLAlchemy models stored in SQLite; shared view infrastructure and helpers support the workflows. The README is empty, so capabilities and relationships here are based on the supplied source excerpts and source index; unsampled implementation details are not assumed.
Main entry points: main.py App shell · database.py Models and sessions · receptions_view.py Order receptions · helpers.py Inventory and document helpers
Components 18
Desktop application
- App shell
main.py - Sign in
views/login_view.py - Dashboard
views/dashboard_view.py - Users and categories
views/admin_view.py
Inventory operations
- Product catalog
views/products_view.py - Stock movements
views/movements_view.py - Stock and expiry alerts
views/alerts_view.py
Procurement
- Supplier management
views/suppliers_view.py - Purchase orders
views/orders_view.py - Order receptions
views/receptions_view.py
Data and shared services
- Email service
utils/email_utils.py - Inventory and document helpers
utils/helpers.py - Shared view framework
views/base_view.py - Application configuration
config.py - Models and sessions
database.py - SQLite database
labstock.db
Other components
- Lab staff
- SMTP server
Connections 29
- Lab staff → App shell: launches
main.py - App shell → Sign in: shows
main.py - App shell → Dashboard: routes to
main.py - App shell → Product catalog: routes to
main.py - App shell → Supplier management: routes to
main.py - App shell → Purchase orders: routes to
main.py - App shell → Order receptions: routes to
main.py - App shell → Stock movements: routes to
main.py - App shell → Stock and expiry alerts: routes to
main.py - App shell → Users and categories: routes to
main.py - App shell → Models and sessions: initializes
main.py - App shell → Shared view framework: uses
- Sign in → Models and sessions: authenticates with
views/login_view.py - Dashboard → Models and sessions: queries
views/dashboard_view.py - Dashboard → Inventory and document helpers: summarizes alerts
views/dashboard_view.py - Product catalog → Models and sessions: reads and updates
views/products_view.py - Stock movements → Models and sessions: records and queries
views/movements_view.py - Stock and expiry alerts → Inventory and document helpers: uses alert summary
views/alerts_view.py - Stock and expiry alerts → Models and sessions: queries
- Supplier management → Models and sessions: reads and updates
views/suppliers_view.py - Purchase orders → Models and sessions: creates and queries
views/orders_view.py - Purchase orders → Email service: sends order
views/orders_view.py - Order receptions → Models and sessions: records reception
views/receptions_view.py - Order receptions → Inventory and document helpers: stores and opens PDFs
views/receptions_view.py - Order receptions → Email service: sends confirmation
views/receptions_view.py - Email service → SMTP server: sends mail
utils/email_utils.py - Inventory and document helpers → Application configuration: uses document path
utils/helpers.py - Models and sessions → Application configuration: uses database path
database.py - Models and sessions → SQLite database: persists data