getanyapi 0.7.0__tar.gz → 0.7.1__tar.gz

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.
Files changed (83) hide show
  1. {getanyapi-0.7.0 → getanyapi-0.7.1}/PKG-INFO +1 -1
  2. {getanyapi-0.7.0 → getanyapi-0.7.1}/pyproject.toml +1 -1
  3. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/__init__.py +1 -1
  4. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/twitter.py +19 -19
  5. {getanyapi-0.7.0 → getanyapi-0.7.1}/.gitignore +0 -0
  6. {getanyapi-0.7.0 → getanyapi-0.7.1}/README.md +0 -0
  7. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/_account.py +0 -0
  8. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/_async_client.py +0 -0
  9. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/_client.py +0 -0
  10. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/_errors.py +0 -0
  11. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/_pagination.py +0 -0
  12. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/_transport.py +0 -0
  13. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/__init__.py +0 -0
  14. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/ahrefs.py +0 -0
  15. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/airbnb.py +0 -0
  16. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/alibaba.py +0 -0
  17. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/amazon.py +0 -0
  18. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/apollo.py +0 -0
  19. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/appstore.py +0 -0
  20. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/bluesky.py +0 -0
  21. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/booking.py +0 -0
  22. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/coinmarketcap.py +0 -0
  23. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/congress.py +0 -0
  24. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/dexscreener.py +0 -0
  25. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/douyin.py +0 -0
  26. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/ebay.py +0 -0
  27. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/email.py +0 -0
  28. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/facebook.py +0 -0
  29. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/fiverr.py +0 -0
  30. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/github.py +0 -0
  31. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/glassdoor.py +0 -0
  32. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/google.py +0 -0
  33. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/google_ads.py +0 -0
  34. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/google_finance.py +0 -0
  35. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/google_shopping.py +0 -0
  36. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/hackernews.py +0 -0
  37. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/indeed.py +0 -0
  38. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/instagram.py +0 -0
  39. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/linkedin.py +0 -0
  40. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/maps.py +0 -0
  41. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/pandaexpress.py +0 -0
  42. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/person.py +0 -0
  43. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/pinterest.py +0 -0
  44. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/playstore.py +0 -0
  45. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/polymarket.py +0 -0
  46. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/realtor.py +0 -0
  47. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/reddit.py +0 -0
  48. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/redfin.py +0 -0
  49. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/rednote.py +0 -0
  50. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/sec.py +0 -0
  51. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/semrush.py +0 -0
  52. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/seo.py +0 -0
  53. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/snapchat.py +0 -0
  54. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/social.py +0 -0
  55. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/spotify.py +0 -0
  56. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/substack.py +0 -0
  57. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/threads.py +0 -0
  58. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/tiktok.py +0 -0
  59. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/tiktok_shop.py +0 -0
  60. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/tripadvisor.py +0 -0
  61. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/trustpilot.py +0 -0
  62. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/truthsocial.py +0 -0
  63. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/upwork.py +0 -0
  64. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/walmart.py +0 -0
  65. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/web.py +0 -0
  66. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/weibo.py +0 -0
  67. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/whatsapp.py +0 -0
  68. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/yahoo_finance.py +0 -0
  69. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/yelp.py +0 -0
  70. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/youtube.py +0 -0
  71. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/zhihu.py +0 -0
  72. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/platforms/zillow.py +0 -0
  73. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/py.typed +0 -0
  74. {getanyapi-0.7.0 → getanyapi-0.7.1}/src/getanyapi/types.py +0 -0
  75. {getanyapi-0.7.0 → getanyapi-0.7.1}/tests/conftest.py +0 -0
  76. {getanyapi-0.7.0 → getanyapi-0.7.1}/tests/test_account.py +0 -0
  77. {getanyapi-0.7.0 → getanyapi-0.7.1}/tests/test_client.py +0 -0
  78. {getanyapi-0.7.0 → getanyapi-0.7.1}/tests/test_envelope.py +0 -0
  79. {getanyapi-0.7.0 → getanyapi-0.7.1}/tests/test_errors.py +0 -0
  80. {getanyapi-0.7.0 → getanyapi-0.7.1}/tests/test_fixture_roundtrip.py +0 -0
  81. {getanyapi-0.7.0 → getanyapi-0.7.1}/tests/test_fixture_sweep.py +0 -0
  82. {getanyapi-0.7.0 → getanyapi-0.7.1}/tests/test_pagination.py +0 -0
  83. {getanyapi-0.7.0 → getanyapi-0.7.1}/tests/test_transport.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: getanyapi
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Summary: Official typed Python SDK for AnyAPI: any API, one wallet, USD, no subscriptions.
5
5
  Project-URL: Homepage, https://getanyapi.com
6
6
  Project-URL: Documentation, https://getanyapi.com/docs
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "getanyapi"
7
- version = "0.7.0"
7
+ version = "0.7.1"
8
8
  description = "Official typed Python SDK for AnyAPI: any API, one wallet, USD, no subscriptions."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -49,7 +49,7 @@ from .types import (
49
49
  unwrap,
50
50
  )
51
51
 
52
- __version__ = "0.7.0"
52
+ __version__ = "0.7.1"
53
53
 
54
54
  __all__ = [
55
55
  # clients + top-level functions
@@ -109,16 +109,16 @@ class TwitterTweetTranscriptInput(TypedDict, total=False):
109
109
 
110
110
 
111
111
  class TwitterUserTweetsInput(TypedDict, total=False):
112
- """Input for Twitter User Tweets."""
112
+ """Input for X / Twitter User Tweets and Replies."""
113
113
 
114
114
  cursor: NotRequired[str]
115
- """Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it to fetch the next page of tweets."""
115
+ """Reserved for cursor-capable lanes. The current bulk lane returns nextCursor as null, so omit this field."""
116
116
  handle: Required[str]
117
117
  """Twitter/X handle without the leading @."""
118
118
  limit: NotRequired[int]
119
- """Per-page maximum number of tweets to return (1-1000), newest first. A provider may return a smaller native page of approximately 20; follow nextCursor for more. With requireSinglePage true, up to this many are returned in one (pricier) call. Range: 1 to 1000. Default: 20."""
119
+ """Maximum number of authored tweets and replies to return in the current bulk call (1-1000). The provider may return fewer results. Range: 1 to 1000. Default: 20."""
120
120
  requireSinglePage: NotRequired[bool]
121
- """Set true to get up to limit tweets in a single response instead of cheap pages, served by a bulk provider at a higher price."""
121
+ """Compatibility flag for requiring one response. The current lane already returns up to limit results in one bulk call, whether this is omitted or true."""
122
122
 
123
123
 
124
124
  class TwitterCommunityData(BaseModel):
@@ -414,7 +414,7 @@ class TwitterUserTweetsData(BaseModel):
414
414
  next_cursor: str | None = Field(
415
415
  default=None,
416
416
  alias="nextCursor",
417
- description="Opaque cursor for the next page of tweets, or null when this lane has no more. Pass it back as cursor to continue.",
417
+ description="Reserved pagination cursor. The current bulk lane returns null; cursor-capable lanes may return an opaque continuation value in the future.",
418
418
  )
419
419
  tweets: list[TwitterUserTweetsTweet] = Field(
420
420
  description="Populated whenever the provider has data for the entity."
@@ -726,14 +726,14 @@ class TwitterNamespace:
726
726
  options: RequestOptions | None = None,
727
727
  **input: Unpack[TwitterUserTweetsInput],
728
728
  ) -> RunResult[TwitterUserTweetsData]:
729
- """Twitter User Tweets
729
+ """X / Twitter User Tweets and Replies
730
730
 
731
- Get an X (Twitter) account's latest tweets by handle, newest first
732
- (reverse-chronological, replies included), with engagement, views, language,
733
- and cursor pagination. Limit is a per-page maximum; native pages contain
734
- approximately 20 tweets unless requireSinglePage selects a bulk lane.
731
+ Get up to the requested limit of tweets and replies authored by an X
732
+ (Twitter) account in one bulk call, with engagement, views, and language.
733
+ The current lane returns nextCursor as null; cursor is reserved for future
734
+ cursor-capable lanes.
735
735
 
736
- Price: $0.00075 per request.
736
+ Price: $0 per request plus $0.0002 per result (maximum $0.2).
737
737
 
738
738
  Example:
739
739
  res = client.twitter.user_tweets(handle="levelsio", limit=20)
@@ -749,7 +749,7 @@ class TwitterNamespace:
749
749
  options: RequestOptions | None = None,
750
750
  **input: Unpack[TwitterUserTweetsInput],
751
751
  ) -> Paginator[TwitterUserTweetsTweet, TwitterUserTweetsData]:
752
- """Iterate Twitter User Tweets results, following pagination cursors.
752
+ """Iterate X / Twitter User Tweets and Replies results, following pagination cursors.
753
753
 
754
754
  Yields validated `TwitterUserTweetsTweet` items from the `tweets` field of
755
755
  each page. Use `.pages()` on the returned paginator to walk whole
@@ -1045,14 +1045,14 @@ class AsyncTwitterNamespace:
1045
1045
  options: RequestOptions | None = None,
1046
1046
  **input: Unpack[TwitterUserTweetsInput],
1047
1047
  ) -> RunResult[TwitterUserTweetsData]:
1048
- """Twitter User Tweets
1048
+ """X / Twitter User Tweets and Replies
1049
1049
 
1050
- Get an X (Twitter) account's latest tweets by handle, newest first
1051
- (reverse-chronological, replies included), with engagement, views, language,
1052
- and cursor pagination. Limit is a per-page maximum; native pages contain
1053
- approximately 20 tweets unless requireSinglePage selects a bulk lane.
1050
+ Get up to the requested limit of tweets and replies authored by an X
1051
+ (Twitter) account in one bulk call, with engagement, views, and language.
1052
+ The current lane returns nextCursor as null; cursor is reserved for future
1053
+ cursor-capable lanes.
1054
1054
 
1055
- Price: $0.00075 per request.
1055
+ Price: $0 per request plus $0.0002 per result (maximum $0.2).
1056
1056
 
1057
1057
  Example:
1058
1058
  res = client.twitter.user_tweets(handle="levelsio", limit=20)
@@ -1068,7 +1068,7 @@ class AsyncTwitterNamespace:
1068
1068
  options: RequestOptions | None = None,
1069
1069
  **input: Unpack[TwitterUserTweetsInput],
1070
1070
  ) -> AsyncPaginator[TwitterUserTweetsTweet, TwitterUserTweetsData]:
1071
- """Iterate Twitter User Tweets results, following pagination cursors.
1071
+ """Iterate X / Twitter User Tweets and Replies results, following pagination cursors.
1072
1072
 
1073
1073
  Yields validated `TwitterUserTweetsTweet` items from the `tweets` field of
1074
1074
  each page. Use `.pages()` on the returned paginator to walk whole
File without changes
File without changes
File without changes