Spaces:
Running
Running
Update apis/__init__.py
Browse files- apis/__init__.py +27 -3
apis/__init__.py
CHANGED
@@ -4,8 +4,9 @@
|
|
4 |
# You can import functions from your modules here to make them
|
5 |
# available at the package level.
|
6 |
|
7 |
-
# Assuming your first file (with LinkedIn data processing) is named 'linkedin_data_handler.py'
|
8 |
-
#
|
|
|
9 |
# Please change these names if your files are named differently.
|
10 |
|
11 |
# --- Imports from linkedin_data_handler.py ---
|
@@ -30,7 +31,7 @@ except ImportError as e:
|
|
30 |
|
31 |
# --- Imports from bubble_api_handler.py ---
|
32 |
try:
|
33 |
-
from .Bubble_API_Calls
|
34 |
fetch_linkedin_token_from_bubble,
|
35 |
fetch_linkedin_posts_data_from_bubble,
|
36 |
bulk_upload_to_bubble,
|
@@ -39,6 +40,20 @@ try:
|
|
39 |
except ImportError as e:
|
40 |
print(f"Warning: Could not import from bubble_api_handler.py: {e}")
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
# --- __all__ definition (optional but good practice) ---
|
43 |
# This defines which symbols are imported when a user does `from your_package_name import *`
|
44 |
# It's generally recommended to be explicit with imports, but __all__ can be useful.
|
@@ -61,4 +76,13 @@ __all__ = [
|
|
61 |
"fetch_linkedin_posts_data_from_bubble",
|
62 |
"bulk_upload_to_bubble",
|
63 |
"update_record_in_bubble",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
]
|
|
|
4 |
# You can import functions from your modules here to make them
|
5 |
# available at the package level.
|
6 |
|
7 |
+
# Assuming your first file (with LinkedIn data processing) is named 'linkedin_data_handler.py',
|
8 |
+
# your second file (with Bubble API calls) is named 'bubble_api_handler.py',
|
9 |
+
# and your third file (with LinkedIn follower stats) is named 'linkedin_follower_stats_handler.py'.
|
10 |
# Please change these names if your files are named differently.
|
11 |
|
12 |
# --- Imports from linkedin_data_handler.py ---
|
|
|
31 |
|
32 |
# --- Imports from bubble_api_handler.py ---
|
33 |
try:
|
34 |
+
from .Bubble_API_Calls import (
|
35 |
fetch_linkedin_token_from_bubble,
|
36 |
fetch_linkedin_posts_data_from_bubble,
|
37 |
bulk_upload_to_bubble,
|
|
|
40 |
except ImportError as e:
|
41 |
print(f"Warning: Could not import from bubble_api_handler.py: {e}")
|
42 |
|
43 |
+
# --- Imports from linkedin_follower_stats_handler.py ---
|
44 |
+
try:
|
45 |
+
from .linkedin_follower_stats import (
|
46 |
+
get_functions_map,
|
47 |
+
get_seniorities_map,
|
48 |
+
get_industries_map,
|
49 |
+
get_geo_map,
|
50 |
+
fetch_monthly_follower_gains,
|
51 |
+
fetch_follower_demographics,
|
52 |
+
get_linkedin_follower_stats,
|
53 |
+
)
|
54 |
+
except ImportError as e:
|
55 |
+
print(f"Warning: Could not import from linkedin_follower_stats_handler.py: {e}")
|
56 |
+
|
57 |
# --- __all__ definition (optional but good practice) ---
|
58 |
# This defines which symbols are imported when a user does `from your_package_name import *`
|
59 |
# It's generally recommended to be explicit with imports, but __all__ can be useful.
|
|
|
76 |
"fetch_linkedin_posts_data_from_bubble",
|
77 |
"bulk_upload_to_bubble",
|
78 |
"update_record_in_bubble",
|
79 |
+
|
80 |
+
# Functions from linkedin_follower_stats_handler
|
81 |
+
"get_functions_map",
|
82 |
+
"get_seniorities_map",
|
83 |
+
"get_industries_map",
|
84 |
+
"get_geo_map",
|
85 |
+
"fetch_monthly_follower_gains",
|
86 |
+
"fetch_follower_demographics",
|
87 |
+
"get_linkedin_follower_stats",
|
88 |
]
|