GuglielmoTor commited on
Commit
a5e9680
·
verified ·
1 Parent(s): 046a823

Create __init__.py

Browse files
Files changed (1) hide show
  1. apis/__init__.py +64 -0
apis/__init__.py ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # __init__.py
2
+
3
+ # This file makes the directory a Python package.
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
+ # and your second file (with Bubble API calls) is named 'bubble_api_handler.py'.
9
+ # Please change these names if your files are named differently.
10
+
11
+ # --- Imports from linkedin_data_handler.py ---
12
+ try:
13
+ from .linkedin_data_handler import (
14
+ extract_text_from_mention_commentary,
15
+ get_post_media_category,
16
+ fetch_linkedin_posts_core,
17
+ fetch_comments,
18
+ analyze_sentiment,
19
+ compile_detailed_posts,
20
+ prepare_data_for_bubble,
21
+ fetch_linkedin_mentions_core,
22
+ analyze_mentions_sentiment,
23
+ compile_detailed_mentions,
24
+ prepare_mentions_for_bubble,
25
+ )
26
+ except ImportError as e:
27
+ print(f"Warning: Could not import from linkedin_data_handler.py: {e}")
28
+ # You might want to define placeholder functions or raise an error
29
+ # if these are critical and the file is missing.
30
+
31
+ # --- Imports from bubble_api_handler.py ---
32
+ try:
33
+ from .bubble_api_handler import (
34
+ fetch_linkedin_token_from_bubble,
35
+ fetch_linkedin_posts_data_from_bubble,
36
+ bulk_upload_to_bubble,
37
+ update_record_in_bubble,
38
+ )
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.
45
+ __all__ = [
46
+ # Functions from linkedin_data_handler
47
+ "extract_text_from_mention_commentary",
48
+ "get_post_media_category",
49
+ "fetch_linkedin_posts_core",
50
+ "fetch_comments",
51
+ "analyze_sentiment",
52
+ "compile_detailed_posts",
53
+ "prepare_data_for_bubble",
54
+ "fetch_linkedin_mentions_core",
55
+ "analyze_mentions_sentiment",
56
+ "compile_detailed_mentions",
57
+ "prepare_mentions_for_bubble",
58
+
59
+ # Functions from bubble_api_handler
60
+ "fetch_linkedin_token_from_bubble",
61
+ "fetch_linkedin_posts_data_from_bubble",
62
+ "bulk_upload_to_bubble",
63
+ "update_record_in_bubble",
64
+ ]