Spaces:
Running
Running
Create __init__.py
Browse files- ui/__init__.py +80 -0
ui/__init__.py
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# __init__.py
|
| 2 |
+
"""
|
| 3 |
+
Initializes the package and makes key functions from its modules available.
|
| 4 |
+
"""
|
| 5 |
+
|
| 6 |
+
# Imports from ui_generators.py
|
| 7 |
+
from .ui_generators import (
|
| 8 |
+
display_main_dashboard,
|
| 9 |
+
run_mentions_tab_display,
|
| 10 |
+
run_follower_stats_tab_display,
|
| 11 |
+
create_analytics_plot_panel,
|
| 12 |
+
build_analytics_tab_plot_area,
|
| 13 |
+
)
|
| 14 |
+
|
| 15 |
+
# Imports from insights_ui_generator.py
|
| 16 |
+
from .insights_ui_generator import (
|
| 17 |
+
format_report_to_markdown,
|
| 18 |
+
extract_key_results_for_selection,
|
| 19 |
+
format_single_okr_for_display,
|
| 20 |
+
)
|
| 21 |
+
|
| 22 |
+
# Imports from analytics_plot_generation.py
|
| 23 |
+
# Assuming the third file containing plot generation functions is named analytics_plot_generation.py
|
| 24 |
+
from .analytics_plot_generator import (
|
| 25 |
+
create_placeholder_plot,
|
| 26 |
+
generate_posts_activity_plot,
|
| 27 |
+
generate_mentions_activity_plot,
|
| 28 |
+
generate_mention_sentiment_plot,
|
| 29 |
+
generate_followers_count_over_time_plot,
|
| 30 |
+
generate_followers_growth_rate_plot,
|
| 31 |
+
generate_followers_by_demographics_plot,
|
| 32 |
+
generate_engagement_rate_over_time_plot,
|
| 33 |
+
generate_reach_over_time_plot,
|
| 34 |
+
generate_impressions_over_time_plot,
|
| 35 |
+
generate_likes_over_time_plot,
|
| 36 |
+
generate_clicks_over_time_plot,
|
| 37 |
+
generate_shares_over_time_plot,
|
| 38 |
+
generate_comments_over_time_plot,
|
| 39 |
+
generate_comments_sentiment_breakdown_plot,
|
| 40 |
+
generate_post_frequency_plot,
|
| 41 |
+
generate_content_format_breakdown_plot,
|
| 42 |
+
generate_content_topic_breakdown_plot,
|
| 43 |
+
update_analytics_plots_figures,
|
| 44 |
+
)
|
| 45 |
+
|
| 46 |
+
# Define __all__ for explicit export control (what `from package import *` imports)
|
| 47 |
+
__all__ = [
|
| 48 |
+
# From ui_generators
|
| 49 |
+
"display_main_dashboard",
|
| 50 |
+
"run_mentions_tab_display",
|
| 51 |
+
"run_follower_stats_tab_display",
|
| 52 |
+
"create_analytics_plot_panel",
|
| 53 |
+
"build_analytics_tab_plot_area",
|
| 54 |
+
|
| 55 |
+
# From insights_ui_generator
|
| 56 |
+
"format_report_to_markdown",
|
| 57 |
+
"extract_key_results_for_selection",
|
| 58 |
+
"format_single_okr_for_display",
|
| 59 |
+
|
| 60 |
+
# From analytics_plot_generation
|
| 61 |
+
"create_placeholder_plot",
|
| 62 |
+
"generate_posts_activity_plot",
|
| 63 |
+
"generate_mentions_activity_plot",
|
| 64 |
+
"generate_mention_sentiment_plot",
|
| 65 |
+
"generate_followers_count_over_time_plot",
|
| 66 |
+
"generate_followers_growth_rate_plot",
|
| 67 |
+
"generate_followers_by_demographics_plot",
|
| 68 |
+
"generate_engagement_rate_over_time_plot",
|
| 69 |
+
"generate_reach_over_time_plot",
|
| 70 |
+
"generate_impressions_over_time_plot",
|
| 71 |
+
"generate_likes_over_time_plot",
|
| 72 |
+
"generate_clicks_over_time_plot",
|
| 73 |
+
"generate_shares_over_time_plot",
|
| 74 |
+
"generate_comments_over_time_plot",
|
| 75 |
+
"generate_comments_sentiment_breakdown_plot",
|
| 76 |
+
"generate_post_frequency_plot",
|
| 77 |
+
"generate_content_format_breakdown_plot",
|
| 78 |
+
"generate_content_topic_breakdown_plot",
|
| 79 |
+
"update_analytics_plots_figures",
|
| 80 |
+
]
|