How sylphyyyy/final works
This Flask procurement and inventory application supports user access, procurement tracking, stock management, bid-document scanning, and live PhilGEPS notice search. The main workflow is a user uploading a bid document, the scan route invoking OCR extraction, and procurement data being managed through the inventory routes; the excerpts show the upload and extraction steps, but do not establish the complete handoff into inventory. The app factory registers route modules and initializes persistence. Settings, account recovery, and live notice search are distinct capabilities. Some route behavior is only partially excerpted, so uncertain links are omitted.
Main entry points: __init__.py App factory · models.py Domain models · auth.py Authentication · index.py Flask entry
Components 18
Web runtime
- Flask entry
api/index.py - App factory
app/__init__.py - App configuration
config.py - Application database
- Domain models
app/models.py
Procurement workflow
- Bid document upload
app/routes/bid_upload.py - Bid OCR extraction
app/utils/ocr_parser.py - Bid listing
app/routes/bid_routes.py - Notice search
app/routes/philgeps.py
Inventory management
- Inventory overview
app/routes/inventory.py - Stock operations
app/routes/inventory.py - Procurement detail
app/routes/inventory.py
Accounts and settings
- Authentication
app/routes/auth.py - User settings
app/routes/settings.py
External integrations
- Gemini API
- SMTP mail server
- PhilGEPS notices
Other components
- User
Connections 20
- User → Flask entry: makes requests
api/index.py - Flask entry → App factory: creates app
api/index.py - App factory → App configuration: loads settings
app/__init__.py - App factory → Application database: initializes
app/__init__.py - App factory → Domain models: initializes tables
app/__init__.py - App factory → Authentication: registers routes
app/__init__.py - App factory → User settings: registers routes
app/__init__.py - App factory → Notice search: registers routes
app/__init__.py - App factory → Inventory overview: registers routes
app/__init__.py - App factory → Bid document upload: registers routes
app/__init__.py - Bid document upload → Bid OCR extraction: parses document
app/routes/bid_upload.py - Bid OCR extraction → Gemini API: requests extraction
app/utils/ocr_parser.py - Bid listing → Domain models: queries procurements
app/routes/bid_routes.py - Inventory overview → Domain models: queries inventory
app/routes/inventory.py - Stock operations → Domain models: updates stock
app/routes/inventory.py - Procurement detail → Domain models: loads procurement
app/routes/inventory.py - Authentication → Domain models: checks users
app/routes/auth.py - Authentication → SMTP mail server: sends reset mail
app/routes/auth.py - User settings → Domain models: updates user data
app/routes/settings.py - Notice search → PhilGEPS notices: searches notices
app/routes/philgeps.py