How chandanc5525/streamlit_demo works
This is a small Streamlit railway-reservation app. A passenger selects a train, passenger and journey details, and an available seat; the app stores the booking and displays a confirmation. The other main workflows retrieve a booking by PNR and list all bookings. The excerpts show SQLite-backed booking operations and the booking table, but omit some definitions and wiring details; the graph therefore includes only the visible calls and documented UI capabilities.
Main entry points: app.py Streamlit app · railway.db Railway database
Components 12
Reservation workflows
- Streamlit app
app.py - Train catalog
app.py - Booking details
app.py - Seat availability
app.py - Save booking
app.py - Ticket confirmation
app.py - PNR retrieval
app.py - Booking list
app.py
Booking data
- SQLite operations
app.py - Bookings table
app.py - Railway database
railway.db
Other components
- Passenger
Connections 14
- Passenger → Streamlit app: uses
- Streamlit app → Train catalog: reads
- Streamlit app → Booking details: collects
- Streamlit app → Seat availability: checks seats
- Seat availability → SQLite operations: queries
- SQLite operations → Bookings table: reads
- Bookings table → Railway database: stored in
- Streamlit app → Save booking: submits
- Save booking → SQLite operations: inserts
- Streamlit app → Ticket confirmation: displays
- Streamlit app → PNR retrieval: searches
- PNR retrieval → SQLite operations: queries by PNR
- Streamlit app → Booking list: loads
- Booking list → SQLite operations: queries all