lingxingapi 1.0.1__py3-none-any.whl → 1.0.3__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.

Potentially problematic release.


This version of lingxingapi might be problematic. Click here for more details.

lingxingapi/basic/api.py CHANGED
@@ -48,7 +48,7 @@ class BasicAPI(BaseAPI):
48
48
  # 站点区域
49
49
  "region": "NA",
50
50
  # 站点亚马逊仓库所属区域 [原字段 'aws_region']
51
- "amazon_region": "NA",
51
+ "region_aws": "NA",
52
52
  # 站点国家 (中文)
53
53
  "country": "美国",
54
54
  # 站点国家代码 [原字段 'code']
@@ -309,7 +309,7 @@ class BasicAPI(BaseAPI):
309
309
  "data": [
310
310
  {
311
311
  # 领星账号所从属的ID (如主帐号ID) [原字段 'zid']
312
- "mid": 1,
312
+ "parent_id": 1,
313
313
  # 领星帐号ID [唯一标识] [原字段 'uid']
314
314
  "user_id": 1,
315
315
  # 是否为主账号 (0: 否, 1: 是)
@@ -14,7 +14,7 @@ class Marketplace(BaseModel):
14
14
  # 站点区域
15
15
  region: str
16
16
  # 站点亚马逊仓库所属区域 [原字段 'aws_region']
17
- amazon_region: str = Field(validation_alias="aws_region")
17
+ region_aws: str = Field(validation_alias="aws_region")
18
18
  # 站点国家 (中文)
19
19
  country: str
20
20
  # 站点国家代码 [原字段 'code']
@@ -151,7 +151,7 @@ class Account(BaseModel):
151
151
  """领星账号."""
152
152
 
153
153
  # 领星账号所从属的ID (如主帐号ID) [原字段 'zid']
154
- mid: int = Field(validation_alias="zid")
154
+ parent_id: int = Field(validation_alias="zid")
155
155
  # 领星帐号ID [唯一标识] [原字段 'uid']
156
156
  user_id: int = Field(validation_alias="uid")
157
157
  # 是否为主账号 (0: 否, 1: 是)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lingxingapi
3
- Version: 1.0.1
3
+ Version: 1.0.3
4
4
  Summary: An async API client for LingXing (领星) ERP
5
5
  Home-page: https://github.com/AresJef/LingXingApi
6
6
  Author: Jiefu Chen
@@ -15,7 +15,7 @@ Requires-Python: >=3.10
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
17
  Requires-Dist: aiohttp>=3.8.4
18
- Requires-Dist: cytimes>=2.0.7
18
+ Requires-Dist: cytimes>=2.1.1
19
19
  Requires-Dist: numpy>=1.25.2
20
20
  Requires-Dist: orjson>=3.10.2
21
21
  Requires-Dist: pycryptodome>=3.23.0
@@ -50,9 +50,16 @@ pip install git+https://github.com/AresJef/LingXingApi.git
50
50
  ```python
51
51
  from lingxingapi import API
52
52
 
53
+ # Context Manager
53
54
  async def test(self, app_id: str, app_secret: str) -> None:
54
55
  async with API(app_id, app_secret) as api:
55
56
  sellers = await api.basic.Sellers()
57
+
58
+ # Close Manually
59
+ async def test(self, app_id: str, app_secret: str) -> None:
60
+ api = API(app_id, app_secret)
61
+ sellers = await api.basic.Sellers()
62
+ await api.close()
56
63
  ```
57
64
 
58
65
  ### Acknowledgements
@@ -14,10 +14,10 @@ lingxingapi/base/param.py,sha256=X5-fpqF1g_7SfSeMiEABchhTjOnRw5ik5-1zB_ZAM_8,197
14
14
  lingxingapi/base/route.py,sha256=b-hRndWGVmKfFo2wbGBh6h2xLlhGkmL4k8D27EYI_YU,593
15
15
  lingxingapi/base/schema.py,sha256=xRyRuvr-0w9Mg-A5wG5acn3oJknIg9CceVGQyWkUbPQ,6012
16
16
  lingxingapi/basic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
- lingxingapi/basic/api.py,sha256=_0exgQE4TgPBjlbHEXJLRIHCcQSSv63fRo5_97JFzwM,17557
17
+ lingxingapi/basic/api.py,sha256=UIybcV5mzGCYRY05Hr-65tS15VrB2jrOelM7fMOI9jg,17560
18
18
  lingxingapi/basic/param.py,sha256=Mq-ZIKHy1DA7aspu1K4MrZe2-FYCJ8Vz43EN5JpHjnA,2480
19
19
  lingxingapi/basic/route.py,sha256=0CXP8rIoBZHrj6gxy1jHycsO9UIunFXwmuU9ryEU0eg,1119
20
- lingxingapi/basic/schema.py,sha256=4xaf6fYgvzLqroq3f3b-qFI0R_9aJGce3ed_I_i1kaI,6497
20
+ lingxingapi/basic/schema.py,sha256=XnYX90uM2U4Vd-0IISrnxseX1JK4dxW87PWYNgTfOnk,6500
21
21
  lingxingapi/fba/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  lingxingapi/fba/api.py,sha256=jA1F2JELEcaWsrAXNu4JaDutuoDOFwjITb0VUDFM3uc,75653
23
23
  lingxingapi/fba/param.py,sha256=hvrwpwTeT6wu5y6jCaM5qVD-LrRlZ7BBruvLQvt5VV8,8989
@@ -58,8 +58,8 @@ lingxingapi/warehourse/api.py,sha256=5EgYo5IrmxLN7Km0CiPT7xQwgNPK6jgFyDhcnIZQ9Xg
58
58
  lingxingapi/warehourse/param.py,sha256=DLnLwti1SK6NjKITtH8og_3gA-2Ymt5FLaUZPtwC1H0,22901
59
59
  lingxingapi/warehourse/route.py,sha256=A4FK2EUUuUDc6zE11Wl63A7YJPpzJnKDvkA-3xyLyPs,1914
60
60
  lingxingapi/warehourse/schema.py,sha256=Kltkpznt7Ksf1EEAKyfUBR9Z_2oYU1mhhn8bYjZWnYA,47749
61
- lingxingapi-1.0.1.dist-info/licenses/LICENSE,sha256=oQj0ddF8bHhbdDscjUiJeB3ps0sMasLHbc6tyDHqM_s,1082
62
- lingxingapi-1.0.1.dist-info/METADATA,sha256=ugjGwx1oBEHQZVneee3cwSkYTOJVeNZCuGEv3ac7ztQ,1706
63
- lingxingapi-1.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
64
- lingxingapi-1.0.1.dist-info/top_level.txt,sha256=oJVokkthGq3IRqL37Njwi5mNTBfXIbRQ1dQif3HIO1U,12
65
- lingxingapi-1.0.1.dist-info/RECORD,,
61
+ lingxingapi-1.0.3.dist-info/licenses/LICENSE,sha256=oQj0ddF8bHhbdDscjUiJeB3ps0sMasLHbc6tyDHqM_s,1082
62
+ lingxingapi-1.0.3.dist-info/METADATA,sha256=C8q_8e43MRatIEwSmgjOQ6H2iQh00U8FYTedZdIXZD4,1898
63
+ lingxingapi-1.0.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
64
+ lingxingapi-1.0.3.dist-info/top_level.txt,sha256=oJVokkthGq3IRqL37Njwi5mNTBfXIbRQ1dQif3HIO1U,12
65
+ lingxingapi-1.0.3.dist-info/RECORD,,