LinkedinMonitor / Z_Project_Structure.txt
GuglielmoTor's picture
Rename Poject_Structure.txt to Z_Project_Structure.txt
6adec24 verified
raw
history blame
2.55 kB
# Project Structure Tree
project/
β”‚
β”œβ”€β”€ external_services/
β”‚ β”œβ”€β”€ linkedin_api/ # External LinkedIn API
β”‚ β”œβ”€β”€ bubble_db/ # Bubble.io database
β”‚ └── groq_api/ # GROQ API for NLP
β”‚
β”œβ”€β”€ core_application_ui/
β”‚ β”œβ”€β”€ app.py # Gradio UI, Main Control
β”‚ β”œβ”€β”€ ui_generators.py # HTML & plot generation
β”‚ └── gradio_utils.py # URL param helper
β”‚
β”œβ”€β”€ state_sync/
β”‚ β”œβ”€β”€ state_manager.py # Manages TOKEN_STATE, Bubble read, sync decision
β”‚ β”œβ”€β”€ sync_logic.py # Orchestrates data sync
β”‚ └── token_state/ # Gradio in-memory data store (conceptual)
β”‚
β”œβ”€β”€ linkedin_api_layer/
β”‚ β”œβ”€β”€ linkedin_data_api_calls.py # Fetches LinkedIn posts, mentions, comments
β”‚ β”œβ”€β”€ linkedin_follower_stats.py # Follower demographics
β”‚ β”œβ”€β”€ data_fetching_and_rendering.py # Posts/Stats for analytics
β”‚ β”œβ”€β”€ mentions_dashboard.py # Mentions data for analytics
β”‚ └── analytics_fetch_and_rendering.py # Fetch + render data for Analytics tab
β”‚
β”œβ”€β”€ nlp_services/
β”‚ β”œβ”€β”€ posts_categorization.py # Summarization and classification (via GROQ)
β”‚ └── transformers/ # HuggingFace local models for sentiment
β”‚
β”œβ”€β”€ db_interface/
β”‚ └── bubble_api_calls.py # Bubble CRUD API interface
β”‚
β”œβ”€β”€ utilities/
β”‚ β”œβ”€β”€ config.py # Constants and environment variables
β”‚ β”œβ”€β”€ sessions.py # LinkedIn API session management
β”‚ └── error_handling.py # Error catching and display
β”‚
└── README.md # (Optional) Docs about architecture and flow
app.py
β”œβ”€β”€ uses: gradio_utils.py
β”œβ”€β”€ controls: state_manager.py
β”œβ”€β”€ triggers: sync_logic.py
β”œβ”€β”€ updates: token_state
└── renders: ui_generators.py, analytics_fetch_and_rendering.py
state_manager.py
β”œβ”€β”€ reads/writes: token_state
β”œβ”€β”€ reads: bubble_api_calls.py
└── uses: config.py
sync_logic.py
β”œβ”€β”€ reads/writes: token_state
β”œβ”€β”€ fetches from:
β”‚ β”œβ”€β”€ linkedin_data_api_calls.py
β”‚ β”œβ”€β”€ linkedin_follower_stats.py
β”œβ”€β”€ updates: bubble_api_calls.py
└── uses: config.py
linkedin_data_api_calls.py
β”œβ”€β”€ uses: sessions.py
β”œβ”€β”€ calls NLP: posts_categorization.py
β”œβ”€β”€ uses: transformers/
└── fetches from: LinkedIn API