How yaesen-hany/charge_spot works
ChargeSpot Egypt is a Streamlit EV-station management platform. Drivers authenticate, find stations and available slots, and book or manage charging sessions; operators manage station slots and congestion, while administrators oversee operators and network performance. Supporting capabilities include validation, fast booking lookup, greedy scheduling, sorting with undo history, telemetry cleaning, analytics, and optional AI assistance. The graph combines sampled source relationships with documented capabilities; some UI workflows and persistence wiring are only described in the README, so those links cite it rather than implying unsampled code was inspected.
Main entry points: app.py Streamlit App · auth.py Authentication · analytics.py Analytics Engine · models.py Domain Entities
Components 18
Application
- Streamlit App
models/app.py - Driver AI Copilot
models/app.py
Identity and Domain
- Authentication
models/auth.py - Domain Entities
models/models.py - Domain Errors
models/exceptions.py - User Accounts
data/users.json
Booking Operations
- Greedy Scheduler
models/scheduler.py - Booking Lookup
models/lookup_engine.py - Sorting and Undo
models/sorting_engine.py - Booking Records
data/bookings.json - System Snapshot
data/chargespot_state.json - Stations and Slots
data/stations_slots.csv
Analytics
- Analytics Engine
models/analytics.py - Charging Telemetry
data/charging_data.csv
Other components
- EV Driver
- Station Operator
- System Admin
- Gemini API
Connections 21
- EV Driver → Streamlit App: uses
README.md - Station Operator → Streamlit App: uses
README.md - System Admin → Streamlit App: uses
README.md - Streamlit App → Authentication: invokes
models/app.py - Streamlit App → Domain Entities: uses
models/app.py - Streamlit App → Greedy Scheduler: uses
models/app.py - Streamlit App → Booking Lookup: uses
models/app.py - Streamlit App → Sorting and Undo: uses
models/app.py - Streamlit App → Analytics Engine: uses
models/app.py - Streamlit App → Driver AI Copilot: offers
README.md - Driver AI Copilot → Gemini API: queries
README.md - Authentication → Domain Entities: creates
models/auth.py - Authentication → User Accounts: reads and writes
models/auth.py - Authentication → Domain Errors: raises
models/auth.py - Domain Entities → Domain Errors: raises
models/models.py - Streamlit App → Booking Records: manages
README.md - Streamlit App → Stations and Slots: manages
README.md - Streamlit App → System Snapshot: persists state
README.md - Booking Lookup → Domain Errors: raises
models/lookup_engine.py - Analytics Engine → Sorting and Undo: uses
models/analytics.py - Analytics Engine → Charging Telemetry: cleans and analyzes
README.md