A web application for querying military supply chain data from the OpenFLIS (Federal Logistics Information System) API. Users can search by NSN (National Stock Number), NIIN (National Item Identification Number), or Part Number to retrieve comprehensive logistics data.
streamlit_app.py- Main Streamlit web application with UI componentsopenflis_client.py- API client module with all OpenFLIS API functionsmain.py- Legacy CLI application (kept for reference)
- NSN/NIIN search as primary action
- Part Number lookup with automatic NIIN resolution
- Parallel API queries for performance
- Cached results (5-minute TTL)
- Tabbed interface for different data categories
- Item Overview - NSN, NIIN, FSC, Item Name, Managing Service
- Management - Pricing, Unit of Issue, Management codes
- MOE Rules - Service ownership (PICA, SICA, IMCA codes)
- Standardization - ISC codes and status
- Army Management - Army-specific data
- History - Historical records
- Management Future - Future management data
- Base URL:
https://app.openflis.com/api/v1/query - Authentication: API key via
OPENFLIS_API_KEYenvironment variable - Tables: NSN, MANAGEMENT, MANAGEMENT_FUTURE, MANAGEMENT_HISTORY, HISTORY_PICK, MGMT_ARMY, STANDARDIZATION, MOE_RULE
The Streamlit app runs on port 5000:
streamlit run streamlit_app.py --server.port 5000 --server.address 0.0.0.0 --server.headless true
- Migrated from CLI to Streamlit web interface
- Added parallel API queries with ThreadPoolExecutor
- Implemented 5-minute result caching
- Added comprehensive data display with tabs
- Service code translation (PICA, SICA to readable names)