reader-py 0.2.0__tar.gz → 0.3.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reader-py
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Python SDK for the Reader API
5
5
  License: MIT
6
6
  Keywords: reader,scraper,web-scraping,markdown,llm,sdk
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "reader-py"
7
- version = "0.2.0"
7
+ version = "0.3.0"
8
8
  description = "Python SDK for the Reader API"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -7,8 +7,8 @@ from typing import Annotated, Any, Literal, Optional, Union
7
7
  from pydantic import BaseModel, Field
8
8
 
9
9
 
10
- ProxyMode = Literal["standard", "stealth", "auto"]
11
- ResolvedProxyMode = Literal["standard", "stealth"]
10
+ ProxyMode = Literal["standard", "premium"]
11
+ ResolvedProxyMode = Literal["standard", "premium"]
12
12
  JobStatus = Literal["queued", "processing", "completed", "failed", "cancelled"]
13
13
  JobMode = Literal["scrape", "batch", "crawl"]
14
14
 
@@ -45,7 +45,6 @@ class ScrapeMetadata(BaseModel):
45
45
  duration: int
46
46
  cached: bool
47
47
  proxy_mode: Optional[ResolvedProxyMode] = None
48
- proxy_escalated: Optional[bool] = None
49
48
  scraped_at: str
50
49
 
51
50
 
@@ -68,7 +67,6 @@ class Page(BaseModel):
68
67
  html: Optional[str] = None
69
68
  status_code: Optional[int] = None
70
69
  proxy_mode: Optional[ResolvedProxyMode] = None
71
- proxy_escalated: Optional[bool] = None
72
70
  credits: Optional[int] = None
73
71
  metadata: Optional[dict[str, Any]] = None
74
72
  error: Optional[str] = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reader-py
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Python SDK for the Reader API
5
5
  License: MIT
6
6
  Keywords: reader,scraper,web-scraping,markdown,llm,sdk
@@ -89,8 +89,8 @@ class TestReadParams:
89
89
  params = ReadParams(urls=["https://a.com", "https://b.com"])
90
90
  assert len(params.urls) == 2
91
91
 
92
- def test_proxy_mode_accepts_all_three(self):
93
- for mode in ("standard", "stealth", "auto"):
92
+ def test_proxy_mode_accepts_both_modes(self):
93
+ for mode in ("standard", "premium"):
94
94
  params = ReadParams(url="https://example.com", proxy_mode=mode)
95
95
  assert params.proxy_mode == mode
96
96
 
@@ -108,7 +108,6 @@ class TestScrapeResult:
108
108
  cached=False,
109
109
  scraped_at="2026-04-04T12:00:00Z",
110
110
  proxy_mode="standard",
111
- proxy_escalated=False,
112
111
  )
113
112
  result = ScrapeResult(
114
113
  url="https://example.com",
File without changes
File without changes