captapi 0.1.0__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.
- captapi-0.1.0/.gitignore +40 -0
- captapi-0.1.0/PKG-INFO +0 -0
- captapi-0.1.0/README.md +0 -0
- captapi-0.1.0/captapi/__init__.py +21 -0
- captapi-0.1.0/captapi/_generated.py +3164 -0
- captapi-0.1.0/captapi/_transport.py +99 -0
- captapi-0.1.0/pyproject.toml +46 -0
captapi-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# =====================================================
|
|
2
|
+
# Secrets / environment
|
|
3
|
+
# =====================================================
|
|
4
|
+
.env
|
|
5
|
+
.env.*
|
|
6
|
+
!.env.example
|
|
7
|
+
*.pem
|
|
8
|
+
|
|
9
|
+
# =====================================================
|
|
10
|
+
# Python (backend)
|
|
11
|
+
# =====================================================
|
|
12
|
+
__pycache__/
|
|
13
|
+
*.py[cod]
|
|
14
|
+
*.egg-info/
|
|
15
|
+
.venv/
|
|
16
|
+
venv/
|
|
17
|
+
env/
|
|
18
|
+
.pytest_cache/
|
|
19
|
+
.mypy_cache/
|
|
20
|
+
.ruff_cache/
|
|
21
|
+
build/
|
|
22
|
+
dist/
|
|
23
|
+
|
|
24
|
+
# =====================================================
|
|
25
|
+
# Node / Next.js (frontend)
|
|
26
|
+
# =====================================================
|
|
27
|
+
node_modules/
|
|
28
|
+
.next/
|
|
29
|
+
out/
|
|
30
|
+
.vercel/
|
|
31
|
+
*.tsbuildinfo
|
|
32
|
+
next-env.d.ts.bak
|
|
33
|
+
|
|
34
|
+
# =====================================================
|
|
35
|
+
# OS / editor
|
|
36
|
+
# =====================================================
|
|
37
|
+
.DS_Store
|
|
38
|
+
Thumbs.db
|
|
39
|
+
*.log
|
|
40
|
+
.commitmsg.tmp
|
captapi-0.1.0/PKG-INFO
ADDED
|
Binary file
|
captapi-0.1.0/README.md
ADDED
|
Binary file
|
|
@@ -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__"]
|