How blackary/st_pages works
Main Components
a) Core Package Components:
• Main Package Module (st_pages)
• Configuration Handler (TOML Parser)
• Page Management System
• Navigation Interface
b) Integration Components:
• Streamlit Framework Integration
• File System Interface
• Configuration Files (.streamlit directory)
┌─ Application Layer ─────────────────────┐
• User's Streamlit Application │
• ┤
• st-pages Package Layer │
• ┌──────────────┐ ┌──────────────┐│
• Page Manager │←───│ TOML Config ││
• ┘ │ Parser ││
• ┌──────────────┐ └──────────────┘│
• Navigation │ │
• Controller │ ┌──────────────┐│
• ┘ │ Page Title ││
• Handler ││
• ┘│
• ┤
• Streamlit Framework │
• ┘
Key Elements to Highlight
a) Data Flow:
• How page information is passed to Streamlit's navigation
• How hide_pages functionality affects the navigation
b) Configuration Components:
• .streamlit directory and its TOML files
• Relationship between configuration and page rendering
Important Details
a) Integration Points:
• How st-pages interfaces with Streamlit's native navigation
• Where custom page configurations are injected
b) Configuration Flow:
• Demonstrate how TOML files are processed