captapi 0.1.0__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.
captapi/__init__.py ADDED
@@ -0,0 +1,21 @@
1
+ """Official Python SDK for the Captapi social media API.
2
+
3
+ Usage:
4
+ from captapi import Captapi
5
+
6
+ client = Captapi(api_key="YOUR_KEY") # or set CAPTAPI_API_KEY
7
+ result = client.youtube.transcript(url="https://youtube.com/watch?v=...")
8
+ print(result["data"])
9
+
10
+ Async:
11
+ from captapi import AsyncCaptapi
12
+
13
+ async with AsyncCaptapi() as client:
14
+ result = await client.tiktok.profile(url="https://tiktok.com/@user")
15
+ """
16
+
17
+ from ._generated import AsyncCaptapi, Captapi
18
+ from ._transport import DEFAULT_BASE_URL, CaptapiError
19
+
20
+ __version__ = "0.1.0"
21
+ __all__ = ["Captapi", "AsyncCaptapi", "CaptapiError", "DEFAULT_BASE_URL", "__version__"]