alterlab 2.0.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.
alterlab/__init__.py ADDED
@@ -0,0 +1,73 @@
1
+ """
2
+ AlterLab Python SDK - Official client for the AlterLab Web Scraping API.
3
+
4
+ Simple Example:
5
+ from alterlab import AlterLab
6
+
7
+ client = AlterLab(api_key="sk_live_...")
8
+ result = client.scrape("https://example.com")
9
+ print(result.text)
10
+
11
+ Async Example:
12
+ from alterlab import AsyncAlterLab
13
+
14
+ async with AsyncAlterLab(api_key="sk_live_...") as client:
15
+ result = await client.scrape("https://example.com")
16
+ print(result.text)
17
+
18
+ Documentation: https://alterlab.io/docs
19
+ """
20
+
21
+ from alterlab.client import (
22
+ # Main clients
23
+ AlterLab,
24
+ AsyncAlterLab,
25
+ # Options
26
+ AdvancedOptions,
27
+ CostControls,
28
+ # Results
29
+ ScrapeResult,
30
+ CostEstimate,
31
+ UsageStats,
32
+ JobStatus,
33
+ BillingDetails,
34
+ TierEscalation,
35
+ # Exceptions
36
+ AlterLabError,
37
+ AlterLabAPIError,
38
+ AuthenticationError,
39
+ InsufficientCreditsError,
40
+ RateLimitError,
41
+ ValidationError,
42
+ ScrapeError,
43
+ TimeoutError,
44
+ # Version
45
+ __version__,
46
+ )
47
+
48
+ __all__ = [
49
+ # Clients
50
+ "AlterLab",
51
+ "AsyncAlterLab",
52
+ # Options
53
+ "AdvancedOptions",
54
+ "CostControls",
55
+ # Results
56
+ "ScrapeResult",
57
+ "CostEstimate",
58
+ "UsageStats",
59
+ "JobStatus",
60
+ "BillingDetails",
61
+ "TierEscalation",
62
+ # Exceptions
63
+ "AlterLabError",
64
+ "AlterLabAPIError",
65
+ "AuthenticationError",
66
+ "InsufficientCreditsError",
67
+ "RateLimitError",
68
+ "ValidationError",
69
+ "ScrapeError",
70
+ "TimeoutError",
71
+ # Version
72
+ "__version__",
73
+ ]