universal-mcp-applications 0.1.17__py3-none-any.whl → 0.1.18__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of universal-mcp-applications might be problematic. Click here for more details.

@@ -18,7 +18,7 @@ class OutlookApp(APIApplication):
18
18
  message: dict[str, Any] | None = None,
19
19
  ) -> Any:
20
20
  """
21
- Replies to a specific email message identified by its ID. The reply can contain a simple comment or a full message object with attachments. If no user ID is provided, it defaults to the current user, distinguishing it from `user_send_mail` which sends a new email.
21
+ Replies to an email using its message ID, with either a simple comment or a full message object including attachments. Unlike `send_mail`, which creates a new email, this function targets an existing message. It defaults to the current user if no user ID is specified.
22
22
 
23
23
  Args:
24
24
  user_id (string, optional): user-id. If not provided, will automatically get the current user's ID.
@@ -70,7 +70,7 @@ class OutlookApp(APIApplication):
70
70
  saveToSentItems: bool | None = None,
71
71
  ) -> Any:
72
72
  """
73
- Sends a new email on behalf of a user, using a provided dictionary for content like recipients and subject. Unlike `users_message_reply`, which replies to an existing message, this function is used to compose and send an entirely new email from scratch.
73
+ Sends a new email on behalf of a specified or current user, using a dictionary for content like recipients and subject. Unlike `reply_to_message`, which replies to an existing message, this function composes and sends an entirely new email from scratch.
74
74
 
75
75
  Args:
76
76
  user_id (string, optional): user-id. If not provided, will automatically get the current user's ID.
@@ -121,7 +121,7 @@ class OutlookApp(APIApplication):
121
121
  expand: list[str] | None = None,
122
122
  ) -> Any:
123
123
  """
124
- Retrieves a specific mail folder by its ID for a given user. Allows customization of the response by optionally including hidden folders, selecting specific properties to return, or expanding related entities. It specifically targets folder metadata, not the messages within.
124
+ Retrieves a specific mail folder's metadata by its ID for a given user. The response can be customized to include hidden folders or select specific properties. Unlike `list_user_messages`, this function fetches folder details, not the emails contained within it.
125
125
 
126
126
  Args:
127
127
  user_id (string, optional): user-id. If not provided, will automatically get the current user's ID.
@@ -176,7 +176,7 @@ class OutlookApp(APIApplication):
176
176
  expand: list[str] | None = None,
177
177
  ) -> dict[str, Any]:
178
178
  """
179
- Retrieves a list of messages from a user's mailbox. This function supports powerful querying using optional parameters for filtering, searching, sorting, and pagination, unlike `user_get_message`, which fetches a single email by its ID.
179
+ Retrieves a list of messages from a user's mailbox. This function supports powerful querying using optional parameters for filtering, searching, sorting, and pagination, unlike `get_user_message`, which fetches a single email by its ID.
180
180
 
181
181
  Args:
182
182
  user_id (string, optional): user-id. If not provided, will automatically get the current user's ID.
@@ -250,7 +250,7 @@ class OutlookApp(APIApplication):
250
250
  expand: list[str] | None = None,
251
251
  ) -> Any:
252
252
  """
253
- Retrieves a specific message by its ID for a user, with options to select fields or expand related data. This function fetches a single item, in contrast to `user_list_message` which retrieves a collection of messages.
253
+ Retrieves a specific email message by its ID for a given user, with options to select specific fields or expand related data. Unlike `list_user_messages`, which fetches a collection of emails with advanced filtering, this function is designed to retrieve a single, known message.
254
254
 
255
255
  Args:
256
256
  user_id (string, optional): user-id. If not provided, will automatically get the current user's ID.
@@ -293,7 +293,7 @@ class OutlookApp(APIApplication):
293
293
 
294
294
  def user_delete_message(self, message_id: str, user_id: str | None = None) -> Any:
295
295
  """
296
- Deletes a specific Outlook message for a user, identified by its unique `message_id`. If `user_id` is not provided, it automatically targets the currently authenticated user's mailbox. It makes a DELETE request to the corresponding Microsoft Graph API endpoint to permanently remove the message.
296
+ Permanently deletes a specific email, identified by `message_id`, from a user's mailbox. If `user_id` is not provided, it defaults to the current authenticated user. Unlike retrieval functions such as `get_user_message`, this performs a destructive action to remove the specified email from Outlook.
297
297
 
298
298
  Args:
299
299
  user_id (string, optional): user-id. If not provided, will automatically get the current user's ID.
@@ -337,7 +337,7 @@ class OutlookApp(APIApplication):
337
337
  expand: list[str] | None = None,
338
338
  ) -> dict[str, Any]:
339
339
  """
340
- Retrieves attachments for a specific email message, identified by its ID. Supports advanced querying for filtering, sorting, and pagination, allowing users to select specific fields to return in the result set.
340
+ Retrieves attachments for a specific email message, identified by its ID. Supports advanced querying for filtering, sorting, and pagination, allowing users to select specific fields to return in the result set, focusing only on attachments rather than the full message content.
341
341
 
342
342
  Args:
343
343
  user_id (string, optional): user-id. If not provided, will automatically get the current user's ID.
@@ -392,7 +392,7 @@ class OutlookApp(APIApplication):
392
392
  self,
393
393
  ) -> dict[str, Any]:
394
394
  """
395
- Fetches the `userPrincipalName` for the currently authenticated user from the `/me` endpoint. It is a helper function used internally by other methods to automatically obtain the user's ID for API calls when one is not explicitly provided.
395
+ Fetches the `userPrincipalName` for the currently authenticated user from the `/me` endpoint. This internal helper is used by other methods to automatically obtain the user's ID for API calls when a `user_id` is not explicitly provided.
396
396
 
397
397
 
398
398
  Returns:
@@ -413,7 +413,7 @@ class OutlookApp(APIApplication):
413
413
 
414
414
  def get_next_page(self, url: str) -> dict[str, Any]:
415
415
  """
416
- Executes a GET request using a full URL, typically a pagination link (`@odata.nextLink`) from a previous API response. It validates the URL, extracts the relative path and query parameters, and fetches the corresponding data, simplifying navigation through paginated API results.
416
+ Executes a GET request for a full URL, typically the `@odata.nextLink` from a previous paginated API response. It simplifies retrieving subsequent pages of data from list functions by handling URL validation and parsing before fetching the results for the next page.
417
417
  """
418
418
  if not url:
419
419
  raise ValueError("Missing required parameter 'url'.")
@@ -49,20 +49,20 @@ class RedditApp(APIApplication):
49
49
  self, subreddit: str, limit: int = 5, timeframe: str = "day"
50
50
  ) -> dict[str, Any]:
51
51
  """
52
- Fetches top posts from a given subreddit, filterable by time.
53
-
52
+ Fetches a specified number of top-rated posts from a particular subreddit, allowing results to be filtered by a specific timeframe (e.g., 'day', 'week'). This is a simplified version compared to `get_subreddit_top_posts`, which uses more complex pagination parameters instead of a direct time filter.
53
+
54
54
  Args:
55
55
  subreddit: The name of the subreddit (e.g., 'python', 'worldnews') without the 'r/' prefix
56
56
  limit: The maximum number of posts to return (default: 5, max: 100)
57
57
  timeframe: The time period for top posts. Valid options: 'hour', 'day', 'week', 'month', 'year', 'all' (default: 'day')
58
-
58
+
59
59
  Returns:
60
60
  A formatted string containing a numbered list of top posts, including titles, authors, scores, and URLs, or an error message if the request fails
61
-
61
+
62
62
  Raises:
63
63
  RequestException: When the HTTP request to the Reddit API fails
64
64
  JSONDecodeError: When the API response contains invalid JSON
65
-
65
+
66
66
  Tags:
67
67
  fetch, reddit, api, list, social-media, important, read-only
68
68
  """
@@ -85,20 +85,20 @@ class RedditApp(APIApplication):
85
85
  self, query: str, limit: int = 5, sort: str = "relevance"
86
86
  ) -> str:
87
87
  """
88
- Searches Reddit for subreddits matching a given query string and returns a formatted list of results including subreddit names, subscriber counts, and descriptions.
89
-
88
+ Searches for subreddits by name and description using a query string, with results sortable by relevance or activity. Unlike the broader `search_reddit` function, this method exclusively discovers subreddits, not posts, comments, or users.
89
+
90
90
  Args:
91
91
  query: The text to search for in subreddit names and descriptions
92
92
  limit: The maximum number of subreddits to return, between 1 and 100 (default: 5)
93
93
  sort: The order of results, either 'relevance' or 'activity' (default: 'relevance')
94
-
94
+
95
95
  Returns:
96
96
  A formatted string containing a list of matching subreddits with their names, subscriber counts, and descriptions, or an error message if the search fails or parameters are invalid
97
-
97
+
98
98
  Raises:
99
99
  RequestException: When the HTTP request to Reddit's API fails
100
100
  JSONDecodeError: When the API response contains invalid JSON
101
-
101
+
102
102
  Tags:
103
103
  search, important, reddit, api, query, format, list, validation
104
104
  """
@@ -123,18 +123,18 @@ class RedditApp(APIApplication):
123
123
 
124
124
  def get_post_flairs(self, subreddit: str):
125
125
  """
126
- Retrieves a list of available post flairs for a specified subreddit using the Reddit API.
127
-
126
+ Fetches a list of available post flairs (tags) for a specified subreddit. This is primarily used to discover the correct `flair_id` needed to categorize a new submission when using the `create_post` function. It returns flair details or a message if none are available.
127
+
128
128
  Args:
129
129
  subreddit: The name of the subreddit (e.g., 'python', 'worldnews') without the 'r/' prefix
130
-
130
+
131
131
  Returns:
132
132
  A list of dictionaries containing flair details if flairs exist, or a string message indicating no flairs are available
133
-
133
+
134
134
  Raises:
135
135
  RequestException: When the API request fails or network connectivity issues occur
136
136
  JSONDecodeError: When the API response contains invalid JSON data
137
-
137
+
138
138
  Tags:
139
139
  fetch, get, reddit, flair, api, read-only
140
140
  """
@@ -156,8 +156,8 @@ class RedditApp(APIApplication):
156
156
  flair_id: str = None,
157
157
  ):
158
158
  """
159
- Creates a new Reddit post in a specified subreddit with support for text posts, link posts, and image posts
160
-
159
+ Creates a new Reddit post in a specified subreddit. It supports text ('self') or link posts, requiring a title and corresponding content (text or URL). An optional flair can be assigned. Returns the API response or a formatted error message on failure.
160
+
161
161
  Args:
162
162
  subreddit: The name of the subreddit (e.g., 'python', 'worldnews') without the 'r/'
163
163
  title: The title of the post
@@ -165,13 +165,13 @@ class RedditApp(APIApplication):
165
165
  text: The text content of the post; required if kind is 'self'
166
166
  url: The URL of the link or image; required if kind is 'link'. Must end with valid image extension for image posts
167
167
  flair_id: The ID of the flair to assign to the post
168
-
168
+
169
169
  Returns:
170
170
  The JSON response from the Reddit API, or an error message as a string if the API returns an error
171
-
171
+
172
172
  Raises:
173
173
  ValueError: Raised when kind is invalid or when required parameters (text for self posts, url for link posts) are missing
174
-
174
+
175
175
  Tags:
176
176
  create, post, social-media, reddit, api, important
177
177
  """
@@ -209,18 +209,18 @@ class RedditApp(APIApplication):
209
209
 
210
210
  def get_comment_by_id(self, comment_id: str) -> dict:
211
211
  """
212
- Retrieves a specific Reddit comment using its unique identifier.
213
-
212
+ Retrieves a single Reddit comment's data, such as author and score, using its unique 't1_' prefixed ID. Unlike `get_post_comments_details` which fetches all comments for a post, this function targets one specific comment directly, returning an error dictionary if it is not found.
213
+
214
214
  Args:
215
215
  comment_id: The full unique identifier of the comment (prefixed with 't1_', e.g., 't1_abcdef')
216
-
216
+
217
217
  Returns:
218
218
  A dictionary containing the comment data including attributes like author, body, score, etc. If the comment is not found, returns a dictionary with an error message.
219
-
219
+
220
220
  Raises:
221
221
  HTTPError: When the Reddit API request fails due to network issues or invalid authentication
222
222
  JSONDecodeError: When the API response cannot be parsed as valid JSON
223
-
223
+
224
224
  Tags:
225
225
  retrieve, get, reddit, comment, api, fetch, single-item, important
226
226
  """
@@ -235,19 +235,19 @@ class RedditApp(APIApplication):
235
235
 
236
236
  def post_comment(self, parent_id: str, text: str) -> dict:
237
237
  """
238
- Posts a comment to a Reddit post or comment using the Reddit API
239
-
238
+ Posts a new comment as a reply to a specified Reddit post or another comment. Using the parent's full ID and the desired text, it submits the comment via the API and returns the response containing the new comment's details.
239
+
240
240
  Args:
241
241
  parent_id: The full ID of the parent comment or post (e.g., 't3_abc123' for a post, 't1_def456' for a comment)
242
242
  text: The text content of the comment to be posted
243
-
243
+
244
244
  Returns:
245
245
  A dictionary containing the Reddit API response with details about the posted comment
246
-
246
+
247
247
  Raises:
248
248
  RequestException: If the API request fails or returns an error status code
249
249
  JSONDecodeError: If the API response cannot be parsed as JSON
250
-
250
+
251
251
  Tags:
252
252
  post, comment, social, reddit, api, important
253
253
  """
@@ -262,19 +262,19 @@ class RedditApp(APIApplication):
262
262
 
263
263
  def edit_content(self, content_id: str, text: str) -> dict:
264
264
  """
265
- Edits the text content of an existing Reddit post or comment using the Reddit API
266
-
265
+ Modifies the text of a specific Reddit post or comment via its unique ID. Unlike creation or deletion functions, this method specifically handles updates to existing user-generated content, submitting the new text to the API and returning a JSON response detailing the edited item.
266
+
267
267
  Args:
268
268
  content_id: The full ID of the content to edit (e.g., 't3_abc123' for a post, 't1_def456' for a comment)
269
269
  text: The new text content to replace the existing content
270
-
270
+
271
271
  Returns:
272
272
  A dictionary containing the API response with details about the edited content
273
-
273
+
274
274
  Raises:
275
275
  RequestException: When the API request fails or network connectivity issues occur
276
276
  ValueError: When invalid content_id format or empty text is provided
277
-
277
+
278
278
  Tags:
279
279
  edit, update, content, reddit, api, important
280
280
  """
@@ -289,18 +289,18 @@ class RedditApp(APIApplication):
289
289
 
290
290
  def delete_content(self, content_id: str) -> dict:
291
291
  """
292
- Deletes a specified Reddit post or comment using the Reddit API.
293
-
292
+ Deletes a specified Reddit post or comment using its full identifier (`content_id`). It sends a POST request to the `/api/del` endpoint for permanent removal, unlike `edit_content` which only modifies. On success, it returns a confirmation message.
293
+
294
294
  Args:
295
295
  content_id: The full ID of the content to delete (e.g., 't3_abc123' for a post, 't1_def456' for a comment)
296
-
296
+
297
297
  Returns:
298
298
  A dictionary containing a success message with the deleted content ID
299
-
299
+
300
300
  Raises:
301
301
  HTTPError: When the API request fails or returns an error status code
302
302
  RequestException: When there are network connectivity issues or API communication problems
303
-
303
+
304
304
  Tags:
305
305
  delete, content-management, api, reddit, important
306
306
  """
@@ -315,10 +315,11 @@ class RedditApp(APIApplication):
315
315
 
316
316
  def get_current_user_info(self) -> Any:
317
317
  """
318
- Get the current user's information.
318
+ Retrieves the full profile information for the currently authenticated user by making a GET request to the `/api/v1/me` Reddit API endpoint. This differs from `get_user_profile`, which requires a username, and `get_current_user_karma`, which specifically fetches karma data.
319
+
319
320
  Returns:
320
321
  Any: API response data.
321
-
322
+
322
323
  Tags:
323
324
  users
324
325
  """
@@ -330,11 +331,11 @@ class RedditApp(APIApplication):
330
331
 
331
332
  def get_current_user_karma(self) -> Any:
332
333
  """
333
- Get the current user's karma.
334
-
334
+ Fetches the karma breakdown for the authenticated user from the Reddit API. This function specifically targets the `/api/v1/me/karma` endpoint, returning karma statistics per subreddit, which is more specific than `get_current_user_info` that retrieves general profile information.
335
+
335
336
  Returns:
336
337
  Any: API response data.
337
-
338
+
338
339
  Tags:
339
340
  account
340
341
  """
@@ -346,14 +347,14 @@ class RedditApp(APIApplication):
346
347
 
347
348
  def get_post_comments_details(self, post_id: str) -> Any:
348
349
  """
349
- Get post details and comments like title, author, score, etc.
350
-
350
+ Fetches a specific Reddit post's details and its complete comment tree using the post's unique ID. This function returns the entire discussion, including the original post and all associated comments, providing broader context than `get_comment_by_id` which only retrieves a single comment.
351
+
351
352
  Args:
352
353
  post_id (string): The Reddit post ID ( e.g. '1m734tx' for https://www.reddit.com/r/mcp/comments/1m734tx/comment/n4occ77/)
353
-
354
+
354
355
  Returns:
355
356
  Any: API response data containing post details and comments.
356
-
357
+
357
358
  Tags:
358
359
  listings, comments, posts, important
359
360
  """
@@ -373,8 +374,8 @@ class RedditApp(APIApplication):
373
374
  sr_detail: str = None,
374
375
  ) -> Any:
375
376
  """
376
- Retrieves a list of the most controversial posts across Reddit.
377
-
377
+ Fetches a global list of the most controversial posts from across all of Reddit, distinct from subreddit-specific queries. Optional parameters allow for pagination and customization of the results, returning the direct API response data with the post listings.
378
+
378
379
  Args:
379
380
  after: Optional. The fullname of a thing (e.g., 't3_xxxxxx') to return results after.
380
381
  before: Optional. The fullname of a thing (e.g., 't3_xxxxxx') to return results before.
@@ -382,10 +383,10 @@ class RedditApp(APIApplication):
382
383
  limit: Optional. The maximum number of items desired (default: 25, maximum: 100).
383
384
  show: Optional. The string "all" to show all posts.
384
385
  sr_detail: Optional. Expand subreddit details.
385
-
386
+
386
387
  Returns:
387
388
  Any: API response data containing a list of controversial posts.
388
-
389
+
389
390
  Tags:
390
391
  listings, posts, controversial, read-only
391
392
  """
@@ -417,8 +418,8 @@ class RedditApp(APIApplication):
417
418
  sr_detail: str = None,
418
419
  ) -> Any:
419
420
  """
420
- Retrieves a list of the hottest posts across Reddit.
421
-
421
+ Retrieves trending 'hot' posts from the global Reddit feed. Unlike `get_subreddit_hot_posts`, this operates across all of Reddit, not a specific subreddit. It supports pagination and optional filtering by geographical region to customize the listing of returned posts.
422
+
422
423
  Args:
423
424
  g: Optional. A geographical region to filter posts by (e.g., 'GLOBAL', 'US', 'GB').
424
425
  after: Optional. The fullname of a thing (e.g., 't3_xxxxxx') to return results after.
@@ -427,10 +428,10 @@ class RedditApp(APIApplication):
427
428
  limit: Optional. The maximum number of items desired (default: 25, maximum: 100).
428
429
  show: Optional. The string "all" to show all posts.
429
430
  sr_detail: Optional. Expand subreddit details.
430
-
431
+
431
432
  Returns:
432
433
  Any: API response data containing a list of hot posts.
433
-
434
+
434
435
  Tags:
435
436
  listings, posts, hot, read-only
436
437
  """
@@ -462,8 +463,8 @@ class RedditApp(APIApplication):
462
463
  sr_detail: str = None,
463
464
  ) -> Any:
464
465
  """
465
- Retrieves a list of the newest posts across Reddit.
466
-
466
+ Fetches a list of the newest posts from across all of Reddit, not limited to a specific subreddit. This function supports optional pagination and filtering parameters to customize the API response, differentiating it from `get_subreddit_new_posts` which targets a single subreddit.
467
+
467
468
  Args:
468
469
  after: Optional. The fullname of a thing (e.g., 't3_xxxxxx') to return results after.
469
470
  before: Optional. The fullname of a thing (e.g., 't3_xxxxxx') to return results before.
@@ -471,10 +472,10 @@ class RedditApp(APIApplication):
471
472
  limit: Optional. The maximum number of items desired (default: 25, maximum: 100).
472
473
  show: Optional. The string "all" to show all posts.
473
474
  sr_detail: Optional. Expand subreddit details.
474
-
475
+
475
476
  Returns:
476
477
  Any: API response data containing a list of new posts.
477
-
478
+
478
479
  Tags:
479
480
  listings, posts, new, read-only
480
481
  """
@@ -507,8 +508,8 @@ class RedditApp(APIApplication):
507
508
  sr_detail: str = None,
508
509
  ) -> Any:
509
510
  """
510
- Retrieves a list of the hottest posts in a specified subreddit.
511
-
511
+ Retrieves a list of 'hot' posts from a specified subreddit, supporting pagination and geographical filtering. Unlike `get_hot_posts`, which queries all of Reddit, this function targets a single subreddit to fetch its currently trending content, distinct from top or new posts.
512
+
512
513
  Args:
513
514
  subreddit: The name of the subreddit (e.g., 'python', 'worldnews') without the 'r/' prefix.
514
515
  g: Optional. A geographical region to filter posts by (e.g., 'GLOBAL', 'US', 'GB').
@@ -518,10 +519,10 @@ class RedditApp(APIApplication):
518
519
  limit: Optional. The maximum number of items desired (default: 25, maximum: 100).
519
520
  show: Optional. The string "all" to show all posts.
520
521
  sr_detail: Optional. Expand subreddit details.
521
-
522
+
522
523
  Returns:
523
524
  Any: API response data containing a list of hot posts from the subreddit.
524
-
525
+
525
526
  Tags:
526
527
  listings, posts, subreddit, hot, read-only
527
528
  """
@@ -556,8 +557,8 @@ class RedditApp(APIApplication):
556
557
  sr_detail: str = None,
557
558
  ) -> Any:
558
559
  """
559
- Retrieves a list of the newest posts in a specified subreddit.
560
-
560
+ Retrieves a list of the newest posts from a specified subreddit, sorted chronologically. Unlike `get_new_posts` which targets all of Reddit, this function is subreddit-specific and supports standard pagination parameters like `limit` and `after` to navigate through the listing of recent submissions.
561
+
561
562
  Args:
562
563
  subreddit: The name of the subreddit (e.g., 'python', 'worldnews') without the 'r/' prefix.
563
564
  after: Optional. The fullname of a thing (e.g., 't3_xxxxxx') to return results after.
@@ -566,10 +567,10 @@ class RedditApp(APIApplication):
566
567
  limit: Optional. The maximum number of items desired (default: 25, maximum: 100).
567
568
  show: Optional. The string "all" to show all posts.
568
569
  sr_detail: Optional. Expand subreddit details.
569
-
570
+
570
571
  Returns:
571
572
  Any: API response data containing a list of new posts from the subreddit.
572
-
573
+
573
574
  Tags:
574
575
  listings, posts, subreddit, new, read-only
575
576
  """
@@ -603,8 +604,8 @@ class RedditApp(APIApplication):
603
604
  sr_detail: str = None,
604
605
  ) -> Any:
605
606
  """
606
- Retrieves a list of the top posts in a specified subreddit.
607
-
607
+ Fetches top-rated posts from a specific subreddit using standard API pagination parameters. Unlike the simpler `get_subreddit_posts` which filters by timeframe, this function offers more direct control over retrieving listings, distinguishing it from the site-wide `get_top_posts` which queries all of Reddit.
608
+
608
609
  Args:
609
610
  subreddit: The name of the subreddit (e.g., 'python', 'worldnews') without the 'r/' prefix.
610
611
  after: Optional. The fullname of a thing (e.g., 't3_xxxxxx') to return results after.
@@ -613,10 +614,10 @@ class RedditApp(APIApplication):
613
614
  limit: Optional. The maximum number of items desired (default: 25, maximum: 100).
614
615
  show: Optional. The string "all" to show all posts.
615
616
  sr_detail: Optional. Expand subreddit details.
616
-
617
+
617
618
  Returns:
618
619
  Any: API response data containing a list of top posts from the subreddit.
619
-
620
+
620
621
  Tags:
621
622
  listings, posts, subreddit, top, read-only
622
623
  """
@@ -649,8 +650,8 @@ class RedditApp(APIApplication):
649
650
  sr_detail: str = None,
650
651
  ) -> Any:
651
652
  """
652
- Retrieves a list of the rising posts across Reddit.
653
-
653
+ Retrieves a list of rising posts from across all of Reddit. Unlike subreddit-specific listing functions (e.g., `get_subreddit_hot_posts`), this operates globally. It supports optional pagination and filtering parameters, such as `limit` and `after`, to customize the API response and navigate through results.
654
+
654
655
  Args:
655
656
  after: Optional. The fullname of a thing (e.g., 't3_xxxxxx') to return results after.
656
657
  before: Optional. The fullname of a thing (e.g., 't3_xxxxxx') to return results before.
@@ -658,10 +659,10 @@ class RedditApp(APIApplication):
658
659
  limit: Optional. The maximum number of items desired (default: 25, maximum: 100).
659
660
  show: Optional. The string "all" to show all posts.
660
661
  sr_detail: Optional. Expand subreddit details.
661
-
662
+
662
663
  Returns:
663
664
  Any: API response data containing a list of rising posts.
664
-
665
+
665
666
  Tags:
666
667
  listings, posts, rising, read-only
667
668
  """
@@ -692,8 +693,8 @@ class RedditApp(APIApplication):
692
693
  sr_detail: str = None,
693
694
  ) -> Any:
694
695
  """
695
- Retrieves a list of the top posts across Reddit.
696
-
696
+ Fetches top-rated posts from across all of Reddit, distinct from `get_subreddit_top_posts`, which operates on a specific subreddit. The function supports standard API pagination parameters like `limit`, `after`, and `before` to navigate results, providing a broad, site-wide view of top content.
697
+
697
698
  Args:
698
699
  after: Optional. The fullname of a thing (e.g., 't3_xxxxxx') to return results after.
699
700
  before: Optional. The fullname of a thing (e.g., 't3_xxxxxx') to return results before.
@@ -701,10 +702,10 @@ class RedditApp(APIApplication):
701
702
  limit: Optional. The maximum number of items desired (default: 25, maximum: 100).
702
703
  show: Optional. The string "all" to show all posts.
703
704
  sr_detail: Optional. Expand subreddit details.
704
-
705
+
705
706
  Returns:
706
707
  Any: API response data containing a list of top posts.
707
-
708
+
708
709
  Tags:
709
710
  listings, posts, top, read-only
710
711
  """
@@ -742,8 +743,8 @@ class RedditApp(APIApplication):
742
743
  type: str = None,
743
744
  ) -> Any:
744
745
  """
745
- Searches for posts, comments, and users across Reddit.
746
-
746
+ Executes a broad, keyword-based search across Reddit for various content types like posts, comments, or users. This general-purpose function offers extensive filtering options, distinguishing it from the more specialized `search_subreddits` which only finds communities.
747
+
747
748
  Args:
748
749
  after: Optional. The fullname of a thing (e.g., 't3_xxxxxx') to return results after.
749
750
  before: Optional. The fullname of a thing (e.g., 't3_xxxxxx') to return results before.
@@ -758,10 +759,10 @@ class RedditApp(APIApplication):
758
759
  sr_detail: Optional. Expand subreddit details.
759
760
  t: Optional. One of ('hour', 'day', 'week', 'month', 'year', 'all') to filter by time.
760
761
  type: Optional. A comma-separated list of result types ('sr', 'link', 'user').
761
-
762
+
762
763
  Returns:
763
764
  Any: API response data containing search results.
764
-
765
+
765
766
  Tags:
766
767
  search, reddit, posts, comments, users, read-only
767
768
  """
@@ -791,14 +792,14 @@ class RedditApp(APIApplication):
791
792
 
792
793
  def get_user_profile(self, username: str) -> Any:
793
794
  """
794
- Retrieves the profile information for a given Reddit user.
795
-
795
+ Retrieves public profile information for a specified Reddit user via the `/user/{username}/about` endpoint. Unlike `get_current_user_info`, which targets the authenticated user, this function fetches data like karma and account age for any user identified by their username.
796
+
796
797
  Args:
797
798
  username: The username of the user to look up.
798
-
799
+
799
800
  Returns:
800
801
  A dictionary containing the user's profile data.
801
-
802
+
802
803
  Tags:
803
804
  users, profile, fetch
804
805
  """