lingxingapi 1.0.2__tar.gz → 1.0.3__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.
Potentially problematic release.
This version of lingxingapi might be problematic. Click here for more details.
- {lingxingapi-1.0.2/src/lingxingapi.egg-info → lingxingapi-1.0.3}/PKG-INFO +9 -2
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/README.md +7 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/setup.cfg +2 -2
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/basic/api.py +2 -2
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/basic/schema.py +2 -2
- {lingxingapi-1.0.2 → lingxingapi-1.0.3/src/lingxingapi.egg-info}/PKG-INFO +9 -2
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi.egg-info/requires.txt +1 -1
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/LICENSE +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/MANIFEST.in +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/pyproject.toml +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/__init__.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/ads/__init__.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/ads/api.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/ads/param.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/ads/route.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/ads/schema.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/api.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/base/__init__.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/base/api.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/base/param.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/base/route.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/base/schema.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/basic/__init__.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/basic/param.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/basic/route.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/errors.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/fba/__init__.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/fba/api.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/fba/param.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/fba/route.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/fba/schema.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/fields.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/finance/__init__.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/finance/api.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/finance/param.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/finance/route.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/finance/schema.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/product/__init__.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/product/api.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/product/param.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/product/route.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/product/schema.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/purchase/__init__.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/purchase/api.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/purchase/param.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/purchase/route.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/purchase/schema.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/sales/__init__.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/sales/api.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/sales/param.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/sales/route.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/sales/schema.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/source/__init__.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/source/api.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/source/param.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/source/route.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/source/schema.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/tools/__init__.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/tools/api.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/tools/param.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/tools/route.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/tools/schema.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/utils.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/warehourse/__init__.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/warehourse/api.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/warehourse/param.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/warehourse/route.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi/warehourse/schema.py +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi.egg-info/SOURCES.txt +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi.egg-info/dependency_links.txt +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi.egg-info/not-zip-safe +0 -0
- {lingxingapi-1.0.2 → lingxingapi-1.0.3}/src/lingxingapi.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lingxingapi
|
|
3
|
-
Version: 1.0.
|
|
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.
|
|
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
|
|
@@ -25,9 +25,16 @@ pip install git+https://github.com/AresJef/LingXingApi.git
|
|
|
25
25
|
```python
|
|
26
26
|
from lingxingapi import API
|
|
27
27
|
|
|
28
|
+
# Context Manager
|
|
28
29
|
async def test(self, app_id: str, app_secret: str) -> None:
|
|
29
30
|
async with API(app_id, app_secret) as api:
|
|
30
31
|
sellers = await api.basic.Sellers()
|
|
32
|
+
|
|
33
|
+
# Close Manually
|
|
34
|
+
async def test(self, app_id: str, app_secret: str) -> None:
|
|
35
|
+
api = API(app_id, app_secret)
|
|
36
|
+
sellers = await api.basic.Sellers()
|
|
37
|
+
await api.close()
|
|
31
38
|
```
|
|
32
39
|
|
|
33
40
|
### Acknowledgements
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = lingxingapi
|
|
3
|
-
version = 1.0.
|
|
3
|
+
version = 1.0.3
|
|
4
4
|
author = Jiefu Chen
|
|
5
5
|
author_email = keppa1991@163.com
|
|
6
6
|
description = An async API client for LingXing (领星) ERP
|
|
@@ -24,7 +24,7 @@ packages = find:
|
|
|
24
24
|
python_requires = >=3.10
|
|
25
25
|
install_requires =
|
|
26
26
|
aiohttp>=3.8.4
|
|
27
|
-
cytimes>=2.
|
|
27
|
+
cytimes>=2.1.1
|
|
28
28
|
numpy>=1.25.2
|
|
29
29
|
orjson>=3.10.2
|
|
30
30
|
pycryptodome>=3.23.0
|
|
@@ -48,7 +48,7 @@ class BasicAPI(BaseAPI):
|
|
|
48
48
|
# 站点区域
|
|
49
49
|
"region": "NA",
|
|
50
50
|
# 站点亚马逊仓库所属区域 [原字段 'aws_region']
|
|
51
|
-
"
|
|
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
|
-
"
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|