Spaces:
Running
Running
Create Poject_Structure.txt
Browse files- Poject_Structure.txt +68 -0
Poject_Structure.txt
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Project Structure Tree
|
2 |
+
|
3 |
+
project/
|
4 |
+
β
|
5 |
+
βββ external_services/
|
6 |
+
β βββ linkedin_api/ # External LinkedIn API
|
7 |
+
β βββ bubble_db/ # Bubble.io database
|
8 |
+
β βββ groq_api/ # GROQ API for NLP
|
9 |
+
β
|
10 |
+
βββ core_application_ui/
|
11 |
+
β βββ app.py # Gradio UI, Main Control
|
12 |
+
β βββ ui_generators.py # HTML & plot generation
|
13 |
+
β βββ gradio_utils.py # URL param helper
|
14 |
+
β
|
15 |
+
βββ state_sync/
|
16 |
+
β βββ state_manager.py # Manages TOKEN_STATE, Bubble read, sync decision
|
17 |
+
β βββ sync_logic.py # Orchestrates data sync
|
18 |
+
β βββ token_state/ # Gradio in-memory data store (conceptual)
|
19 |
+
β
|
20 |
+
βββ linkedin_api_layer/
|
21 |
+
β βββ linkedin_data_api_calls.py # Fetches LinkedIn posts, mentions, comments
|
22 |
+
β βββ linkedin_follower_stats.py # Follower demographics
|
23 |
+
β βββ data_fetching_and_rendering.py # Posts/Stats for analytics
|
24 |
+
β βββ mentions_dashboard.py # Mentions data for analytics
|
25 |
+
β βββ analytics_fetch_and_rendering.py # Fetch + render data for Analytics tab
|
26 |
+
β
|
27 |
+
βββ nlp_services/
|
28 |
+
β βββ posts_categorization.py # Summarization and classification (via GROQ)
|
29 |
+
β βββ transformers/ # HuggingFace local models for sentiment
|
30 |
+
β
|
31 |
+
βββ db_interface/
|
32 |
+
β βββ bubble_api_calls.py # Bubble CRUD API interface
|
33 |
+
β
|
34 |
+
βββ utilities/
|
35 |
+
β βββ config.py # Constants and environment variables
|
36 |
+
β βββ sessions.py # LinkedIn API session management
|
37 |
+
β βββ error_handling.py # Error catching and display
|
38 |
+
β
|
39 |
+
βββ README.md # (Optional) Docs about architecture and flow
|
40 |
+
|
41 |
+
|
42 |
+
|
43 |
+
|
44 |
+
app.py
|
45 |
+
βββ uses: gradio_utils.py
|
46 |
+
βββ controls: state_manager.py
|
47 |
+
βββ triggers: sync_logic.py
|
48 |
+
βββ updates: token_state
|
49 |
+
βββ renders: ui_generators.py, analytics_fetch_and_rendering.py
|
50 |
+
|
51 |
+
state_manager.py
|
52 |
+
βββ reads/writes: token_state
|
53 |
+
βββ reads: bubble_api_calls.py
|
54 |
+
βββ uses: config.py
|
55 |
+
|
56 |
+
sync_logic.py
|
57 |
+
βββ reads/writes: token_state
|
58 |
+
βββ fetches from:
|
59 |
+
β βββ linkedin_data_api_calls.py
|
60 |
+
β βββ linkedin_follower_stats.py
|
61 |
+
βββ updates: bubble_api_calls.py
|
62 |
+
βββ uses: config.py
|
63 |
+
|
64 |
+
linkedin_data_api_calls.py
|
65 |
+
βββ uses: sessions.py
|
66 |
+
βββ calls NLP: posts_categorization.py
|
67 |
+
βββ uses: transformers/
|
68 |
+
βββ fetches from: LinkedIn API
|