repsapi 0.1.1__tar.gz → 0.2.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.
@@ -5,6 +5,36 @@ before 1.0, a new field or method bumps the patch (`0.1.x`) and a breaking chang
5
5
 
6
6
  API changes on the server side are listed at https://repsapi.pl/changelog.
7
7
 
8
+ ## 0.2.0 - 2026-12-01
9
+
10
+ ### Changed (breaking for TypeScript / type checkers)
11
+
12
+ - `Agent` and `AGENTS` follow the API's agent list: 12 agents added (GTBuy, WheeBuy, HipoBuy, ZentBuy, UIDBuy,
13
+ OrientDig, JoyaGoo, LoveGoBuy, iTaoBuy, Fishgoo, LoloBuy, Hubbuycn - 25 in total), CNFans and HooBuy removed:
14
+ both agents closed and the API no longer builds links for them. Asking for them in `agents` is not an error on
15
+ the server, they are just left out of the answer.
16
+
17
+ ### Added
18
+
19
+ - `HaulItem["title_en"]`: the product's English title (`null` when there is no translation), so English apps
20
+ don't have to show the original Chinese `title` (prepared as 0.1.3, never released).
21
+
22
+ ### Notes
23
+
24
+ - No runtime changes besides the agent list. Older versions keep working against the API; their types just list the old agents.
25
+
26
+ ## 0.1.2 - 2026-10-25
27
+
28
+ ### Added
29
+
30
+ - `QcBatch["sku_en"]` and `QcBatch["sku_pl"]`: English and Polish versions of the batch's variant name when the
31
+ warehouse wrote it in Chinese (`sku: "黑色 / M"` → `sku_en: "Black / M"`, `sku_pl: "Czarny / M"`). Both are
32
+ optional, like `sku`.
33
+
34
+ ### Notes
35
+
36
+ - No runtime changes. Older versions keep working: they return the same JSON, their types just don't know the new fields.
37
+
8
38
  ## 0.1.1 - 2026-10-14
9
39
 
10
40
  ### Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: repsapi
3
- Version: 0.1.1
3
+ Version: 0.2.0
4
4
  Summary: Official RepsApi.pl client: parcel tracking, QC photos, product lookup, agent links and shipping estimates.
5
5
  Project-URL: Homepage, https://repsapi.pl
6
6
  Project-URL: Documentation, https://repsapi.pl/docs
@@ -91,7 +91,7 @@ Every method also takes `timeout=` (seconds) and `max_retries=`.
91
91
 
92
92
  ```python
93
93
  # the same product on two agents
94
- links = api.convert("https://detail.1688.com/offer/678091425228.html", agents=["kakobuy", "cnfans"])
94
+ links = api.convert("https://detail.1688.com/offer/678091425228.html", agents=["kakobuy", "usfans"])
95
95
  print(links["agents"]["kakobuy"])
96
96
 
97
97
  # shipping lines for a 1.2 kg parcel to Poland, priced in PLN
@@ -153,6 +153,10 @@ api = RepsApi(api_key="rk_live_...", timeout=30, max_retries=3)
153
153
 
154
154
  ## Changelog
155
155
 
156
+ **0.2.0** (2026-12-01): the agent list follows the API - 25 agents, with GTBuy, WheeBuy, HipoBuy, ZentBuy, UIDBuy, OrientDig, JoyaGoo, LoveGoBuy, iTaoBuy, Fishgoo, LoloBuy and Hubbuycn added and the closed CNFans and HooBuy removed (a type change). Haul items have `title_en` - the English product title.
157
+
158
+ **0.1.2** (2026-10-25): QC batches have `sku_en` / `sku_pl` - the variant name in English and Polish when the warehouse wrote it in Chinese. No runtime changes.
159
+
156
160
  **0.1.1** (2026-10-14): `ServiceName` includes `"shipping"` - `health()` now reports the shipping calculator. No runtime changes.
157
161
 
158
162
  **0.1.0** (2026-10-14): first release. The full list is in `CHANGELOG.md` in the source distribution.
@@ -68,7 +68,7 @@ Every method also takes `timeout=` (seconds) and `max_retries=`.
68
68
 
69
69
  ```python
70
70
  # the same product on two agents
71
- links = api.convert("https://detail.1688.com/offer/678091425228.html", agents=["kakobuy", "cnfans"])
71
+ links = api.convert("https://detail.1688.com/offer/678091425228.html", agents=["kakobuy", "usfans"])
72
72
  print(links["agents"]["kakobuy"])
73
73
 
74
74
  # shipping lines for a 1.2 kg parcel to Poland, priced in PLN
@@ -130,6 +130,10 @@ api = RepsApi(api_key="rk_live_...", timeout=30, max_retries=3)
130
130
 
131
131
  ## Changelog
132
132
 
133
+ **0.2.0** (2026-12-01): the agent list follows the API - 25 agents, with GTBuy, WheeBuy, HipoBuy, ZentBuy, UIDBuy, OrientDig, JoyaGoo, LoveGoBuy, iTaoBuy, Fishgoo, LoloBuy and Hubbuycn added and the closed CNFans and HooBuy removed (a type change). Haul items have `title_en` - the English product title.
134
+
135
+ **0.1.2** (2026-10-25): QC batches have `sku_en` / `sku_pl` - the variant name in English and Polish when the warehouse wrote it in Chinese. No runtime changes.
136
+
133
137
  **0.1.1** (2026-10-14): `ServiceName` includes `"shipping"` - `health()` now reports the shipping calculator. No runtime changes.
134
138
 
135
139
  **0.1.0** (2026-10-14): first release. The full list is in `CHANGELOG.md` in the source distribution.
@@ -0,0 +1 @@
1
+ __version__ = "0.2.0"
@@ -11,8 +11,10 @@ from typing import Dict, List, Literal, Optional, TypedDict
11
11
  Platform = Literal["weidian", "taobao", "1688", "tmall"]
12
12
 
13
13
  Agent = Literal[
14
- "kakobuy", "cnfans", "acbuy", "mulebuy", "hoobuy", "oopbuy", "cnshopper", "ootdbuy",
15
- "ponybuy", "superbuy", "sugargoo", "loongbuy", "cssbuy", "usfans", "litbuy",
14
+ "kakobuy", "acbuy", "mulebuy", "oopbuy", "usfans", "litbuy", "cnshopper", "ootdbuy",
15
+ "ponybuy", "superbuy", "sugargoo", "loongbuy", "cssbuy", "gtbuy", "wheebuy", "hipobuy",
16
+ "zentbuy", "uidbuy", "orientdig", "joyagoo", "lovegobuy", "itaobuy", "fishgoo", "lolobuy",
17
+ "hubbuycn",
16
18
  ]
17
19
 
18
20
  TrackingStage = Literal[
@@ -94,6 +96,9 @@ class _QcBatchBase(TypedDict):
94
96
 
95
97
  class QcBatch(_QcBatchBase, total=False):
96
98
  sku: str
99
+ # English / Polish variant name, only when ``sku`` was Chinese
100
+ sku_en: str
101
+ sku_pl: str
97
102
 
98
103
 
99
104
  class _QcResponseBase(TypedDict):
@@ -294,6 +299,7 @@ class _HaulItemBase(TypedDict):
294
299
  platform: Optional[str]
295
300
  product_id: Optional[str]
296
301
  title: Optional[str]
302
+ title_en: Optional[str]
297
303
  title_pl: Optional[str]
298
304
  image: Optional[str]
299
305
  seller: Optional[str]
@@ -1 +0,0 @@
1
- __version__ = "0.1.1"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes