lingxingapi 1.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.

Potentially problematic release.


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

Files changed (65) hide show
  1. lingxingapi/__init__.py +7 -0
  2. lingxingapi/ads/__init__.py +0 -0
  3. lingxingapi/ads/api.py +5946 -0
  4. lingxingapi/ads/param.py +192 -0
  5. lingxingapi/ads/route.py +134 -0
  6. lingxingapi/ads/schema.py +2615 -0
  7. lingxingapi/api.py +443 -0
  8. lingxingapi/base/__init__.py +0 -0
  9. lingxingapi/base/api.py +409 -0
  10. lingxingapi/base/param.py +59 -0
  11. lingxingapi/base/route.py +11 -0
  12. lingxingapi/base/schema.py +198 -0
  13. lingxingapi/basic/__init__.py +0 -0
  14. lingxingapi/basic/api.py +466 -0
  15. lingxingapi/basic/param.py +72 -0
  16. lingxingapi/basic/route.py +20 -0
  17. lingxingapi/basic/schema.py +212 -0
  18. lingxingapi/errors.py +143 -0
  19. lingxingapi/fba/__init__.py +0 -0
  20. lingxingapi/fba/api.py +1691 -0
  21. lingxingapi/fba/param.py +250 -0
  22. lingxingapi/fba/route.py +30 -0
  23. lingxingapi/fba/schema.py +987 -0
  24. lingxingapi/fields.py +50 -0
  25. lingxingapi/finance/__init__.py +0 -0
  26. lingxingapi/finance/api.py +3091 -0
  27. lingxingapi/finance/param.py +616 -0
  28. lingxingapi/finance/route.py +44 -0
  29. lingxingapi/finance/schema.py +1243 -0
  30. lingxingapi/product/__init__.py +0 -0
  31. lingxingapi/product/api.py +2643 -0
  32. lingxingapi/product/param.py +934 -0
  33. lingxingapi/product/route.py +49 -0
  34. lingxingapi/product/schema.py +1004 -0
  35. lingxingapi/purchase/__init__.py +0 -0
  36. lingxingapi/purchase/api.py +496 -0
  37. lingxingapi/purchase/param.py +126 -0
  38. lingxingapi/purchase/route.py +11 -0
  39. lingxingapi/purchase/schema.py +215 -0
  40. lingxingapi/sales/__init__.py +0 -0
  41. lingxingapi/sales/api.py +3200 -0
  42. lingxingapi/sales/param.py +723 -0
  43. lingxingapi/sales/route.py +70 -0
  44. lingxingapi/sales/schema.py +1718 -0
  45. lingxingapi/source/__init__.py +0 -0
  46. lingxingapi/source/api.py +1799 -0
  47. lingxingapi/source/param.py +176 -0
  48. lingxingapi/source/route.py +38 -0
  49. lingxingapi/source/schema.py +1011 -0
  50. lingxingapi/tools/__init__.py +0 -0
  51. lingxingapi/tools/api.py +291 -0
  52. lingxingapi/tools/param.py +73 -0
  53. lingxingapi/tools/route.py +8 -0
  54. lingxingapi/tools/schema.py +169 -0
  55. lingxingapi/utils.py +411 -0
  56. lingxingapi/warehourse/__init__.py +0 -0
  57. lingxingapi/warehourse/api.py +1778 -0
  58. lingxingapi/warehourse/param.py +506 -0
  59. lingxingapi/warehourse/route.py +28 -0
  60. lingxingapi/warehourse/schema.py +926 -0
  61. lingxingapi-1.0.0.dist-info/METADATA +67 -0
  62. lingxingapi-1.0.0.dist-info/RECORD +65 -0
  63. lingxingapi-1.0.0.dist-info/WHEEL +5 -0
  64. lingxingapi-1.0.0.dist-info/licenses/LICENSE +22 -0
  65. lingxingapi-1.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,67 @@
1
+ Metadata-Version: 2.4
2
+ Name: lingxingapi
3
+ Version: 1.0.0
4
+ Summary: An async API client for LingXing (领星) ERP
5
+ Home-page: https://github.com/AresJef/LingXingApi
6
+ Author: Jiefu Chen
7
+ Author-email: keppa1991@163.com
8
+ License: MIT license
9
+ Keywords: async,api,lingxing,erp
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Operating System :: Unix
12
+ Classifier: Operating System :: MacOS :: MacOS X
13
+ Classifier: Operating System :: Microsoft :: Windows
14
+ Requires-Python: >=3.10
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: aiohttp>=3.8.4
18
+ Requires-Dist: cytimes>=2.0.7
19
+ Requires-Dist: numpy>=1.25.2
20
+ Requires-Dist: orjson>=3.10.2
21
+ Requires-Dist: pycryptodome>=3.23.0
22
+ Requires-Dist: pydantic>=2.7.4
23
+ Requires-Dist: typing-extensions>=4.9.0
24
+ Dynamic: license-file
25
+
26
+ ## An async API client for LingXing (领星) ERP
27
+
28
+ Created to be used in a project, this package is published to github for ease of management and installation across different modules.
29
+
30
+ ## Installation
31
+
32
+ Install from `PyPi`
33
+
34
+ ```bash
35
+ pip install lingxingapi
36
+ ```
37
+
38
+ Install from `github`
39
+
40
+ ```bash
41
+ pip install git+https://github.com/AresJef/LingXingApi.git
42
+ ```
43
+
44
+ ## Requirements
45
+
46
+ - Python 3.10 or higher.
47
+
48
+ ## Example
49
+
50
+ ```python
51
+ from lingxingapi import API
52
+
53
+ async def test(self, app_id: str, app_secret: str) -> None:
54
+ async with API(app_id, app_secret) as api:
55
+ sellers = await api.basic.Sellers()
56
+ print(sellers)
57
+ ```
58
+
59
+ ### Acknowledgements
60
+
61
+ MysqlEngine is based on several open-source repositories.
62
+
63
+ - [aiohttp](https://github.com/aio-libs/aiohttp)
64
+ - [cytimes](https://github.com/AresJef/cyTimes)
65
+ - [numpy](https://github.com/numpy/numpy)
66
+ - [orjson](https://github.com/ijl/orjson)
67
+ - [pydantic](https://github.com/pydantic/pydantic)
@@ -0,0 +1,65 @@
1
+ lingxingapi/__init__.py,sha256=V54JuT-evVdtAtIEHKJG047nwiL55m5OZn2FrOncWsQ,103
2
+ lingxingapi/api.py,sha256=UagkCJdobyFu3JWzrILg6DjydX2wXFybnjujsux7bXY,30821
3
+ lingxingapi/errors.py,sha256=SMKG1vxgKOvBzXe7XIBq3FWzfC3wg1kTrA-BNqzbKjA,4061
4
+ lingxingapi/fields.py,sha256=4ZikdfmrmYK7Vd4suDxhGeIaj-zFT8yHjj7t6brOnKE,1794
5
+ lingxingapi/utils.py,sha256=FEEdGVAc9fZL8Srubq06MlNgSDIC60IT3ystSsWhOGI,15207
6
+ lingxingapi/ads/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ lingxingapi/ads/api.py,sha256=2xTEPEjU6f1QMpVqX9d6XYFtmoCvPo0tCMDODoGWgvY,236124
8
+ lingxingapi/ads/param.py,sha256=keCK-FMDVtAZf3QNdJ0r_CrIF5tNIJ2DutKCXTArFFo,6910
9
+ lingxingapi/ads/route.py,sha256=ETyZgBLuC9bdqZt2NOElJ9J_Gx9rTGXXZbseWfbHpzg,8034
10
+ lingxingapi/ads/schema.py,sha256=1YNQfvbC4u2PtX0QiuvHGNf-F3teSE2rKPcrOmlGeaY,82398
11
+ lingxingapi/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
+ lingxingapi/base/api.py,sha256=QUcHsWPa1fFYQq7zNCMS884rhDg1vBEnOMDazEVb1Bw,17141
13
+ lingxingapi/base/param.py,sha256=X5-fpqF1g_7SfSeMiEABchhTjOnRw5ik5-1zB_ZAM_8,1974
14
+ lingxingapi/base/route.py,sha256=b-hRndWGVmKfFo2wbGBh6h2xLlhGkmL4k8D27EYI_YU,593
15
+ lingxingapi/base/schema.py,sha256=xRyRuvr-0w9Mg-A5wG5acn3oJknIg9CceVGQyWkUbPQ,6012
16
+ lingxingapi/basic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
+ lingxingapi/basic/api.py,sha256=_0exgQE4TgPBjlbHEXJLRIHCcQSSv63fRo5_97JFzwM,17557
18
+ lingxingapi/basic/param.py,sha256=Mq-ZIKHy1DA7aspu1K4MrZe2-FYCJ8Vz43EN5JpHjnA,2480
19
+ lingxingapi/basic/route.py,sha256=0CXP8rIoBZHrj6gxy1jHycsO9UIunFXwmuU9ryEU0eg,1119
20
+ lingxingapi/basic/schema.py,sha256=4xaf6fYgvzLqroq3f3b-qFI0R_9aJGce3ed_I_i1kaI,6497
21
+ lingxingapi/fba/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
+ lingxingapi/fba/api.py,sha256=jA1F2JELEcaWsrAXNu4JaDutuoDOFwjITb0VUDFM3uc,75653
23
+ lingxingapi/fba/param.py,sha256=hvrwpwTeT6wu5y6jCaM5qVD-LrRlZ7BBruvLQvt5VV8,8989
24
+ lingxingapi/fba/route.py,sha256=voM9UXqT1g-KQy2X9YJC-_Llox_VdRJi4RVxmGpfODI,1969
25
+ lingxingapi/fba/schema.py,sha256=Xt7zWoHvWUJQbrR63aMPmfcQ6DGRS1VUoxUenrdeZUU,37731
26
+ lingxingapi/finance/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
+ lingxingapi/finance/api.py,sha256=g7VnyX2sMjgLqtFQjPgRzY64kb7ab9SINekFXks03iM,166825
28
+ lingxingapi/finance/param.py,sha256=a6Crnv5gnHAKIzy3Ou0PZ36a4RGkreyih2kLwkrc3vQ,23636
29
+ lingxingapi/finance/route.py,sha256=sa8oTBWQ9kaRTMMX_wzomSd0eo66gKxONROVoL53kLQ,2805
30
+ lingxingapi/finance/schema.py,sha256=VbuWCC3KmXBf524PQK90-pV3FxTbx3ZiI4MTLvQBWaQ,67433
31
+ lingxingapi/product/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
+ lingxingapi/product/api.py,sha256=HZ9Kbom8wN5mik8SFSfFYXp_Xms2mw1thot_8-kXlkA,129396
33
+ lingxingapi/product/param.py,sha256=dnYolKhWx_kQLPa-QjdmmffSoDH192kgLribgM9jkXY,36746
34
+ lingxingapi/product/route.py,sha256=KDpVFzsht24IU_lyiM13EL4_Nmg6fT7z-_oysyHoTyE,3083
35
+ lingxingapi/product/schema.py,sha256=bx-_8xnrI1e-7o15nonPs2DuG3atwBV3iWdi3ngW0lg,44284
36
+ lingxingapi/purchase/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
+ lingxingapi/purchase/api.py,sha256=6n2z1Pn42iG1T0RpsneLe0Q-D-jD0CFMK4Qe7lYCAes,20954
38
+ lingxingapi/purchase/param.py,sha256=YgJME7oN5amvL374aGHwRU6TjyhdAiWHPb_Ef4ZsZBk,5046
39
+ lingxingapi/purchase/route.py,sha256=fG5u3Vm-j8TqaiqQnUpX8kpBngiB-JNhePnaOHRWhss,648
40
+ lingxingapi/purchase/schema.py,sha256=9aBxFux1evNYmKaELsjC-dmQ8znIhGo0Vmab0YICEj4,8198
41
+ lingxingapi/sales/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
+ lingxingapi/sales/api.py,sha256=ldCw_zSWIIsLX1ucOhAm6gyysgmPRp3LvOPAjlFBuWQ,149821
43
+ lingxingapi/sales/param.py,sha256=9KdO5esl_79ulVh03368WTGscumD-hxMfSbCm0EemZE,27935
44
+ lingxingapi/sales/route.py,sha256=0UVcOFw4kvfY5ksXN2BIz499X_T0l4sYYM1GJcaDld4,4489
45
+ lingxingapi/sales/schema.py,sha256=BNmeWcD9RoGK0Y6GSjTSImyFgAISFIXKMPV3OsD2LVg,78576
46
+ lingxingapi/source/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
47
+ lingxingapi/source/api.py,sha256=tlDtsARND4YkAT3p9EYBvAWxTtkAIF53_c34zyx9XqQ,81259
48
+ lingxingapi/source/param.py,sha256=G1RCPbFqGBY-T21oajNe8Ibzi7MHpfUj8Xr6-cdKfV4,6278
49
+ lingxingapi/source/route.py,sha256=GjO37j3-oxaWWI6m4ASQ_KCzM7TgPb93fcQRxW0qxss,2511
50
+ lingxingapi/source/schema.py,sha256=jCF6qq0vbwNvtx8JbxmYYOYrZ90hiNeYkOr8bdHxc0k,46346
51
+ lingxingapi/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
+ lingxingapi/tools/api.py,sha256=90Pet5dustZ22W54ENdnl7MDbLi95Tt5h7lqpvfqFr8,12949
53
+ lingxingapi/tools/param.py,sha256=T79zWpOyGocRS_5kkDaDKRKjNL60W9OWPuSrXf8oykE,2730
54
+ lingxingapi/tools/route.py,sha256=QU8fQAdscWwB2woKUDFdvy1lW0yj-D-aqA-xmPfZkSU,435
55
+ lingxingapi/tools/schema.py,sha256=HxELsG8WTZl1s1HuPKjj1z1Y9kgQLY_B1_32MsXIVhE,7549
56
+ lingxingapi/warehourse/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
57
+ lingxingapi/warehourse/api.py,sha256=5EgYo5IrmxLN7Km0CiPT7xQwgNPK6jgFyDhcnIZQ9Xg,83762
58
+ lingxingapi/warehourse/param.py,sha256=DLnLwti1SK6NjKITtH8og_3gA-2Ymt5FLaUZPtwC1H0,22901
59
+ lingxingapi/warehourse/route.py,sha256=A4FK2EUUuUDc6zE11Wl63A7YJPpzJnKDvkA-3xyLyPs,1914
60
+ lingxingapi/warehourse/schema.py,sha256=Kltkpznt7Ksf1EEAKyfUBR9Z_2oYU1mhhn8bYjZWnYA,47749
61
+ lingxingapi-1.0.0.dist-info/licenses/LICENSE,sha256=oQj0ddF8bHhbdDscjUiJeB3ps0sMasLHbc6tyDHqM_s,1082
62
+ lingxingapi-1.0.0.dist-info/METADATA,sha256=0cFBInaShnZwdD1Dc5NonQOTQM_8tfXS_oAKdrX9df4,1729
63
+ lingxingapi-1.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
64
+ lingxingapi-1.0.0.dist-info/top_level.txt,sha256=oJVokkthGq3IRqL37Njwi5mNTBfXIbRQ1dQif3HIO1U,12
65
+ lingxingapi-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ lingxingapi - Copyright (c) 2025 Jifu Chen.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
22
+
@@ -0,0 +1 @@
1
+ lingxingapi