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

Potentially problematic release.


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

Files changed (72) hide show
  1. lingxingapi-1.0.0/LICENSE +22 -0
  2. lingxingapi-1.0.0/MANIFEST.in +7 -0
  3. lingxingapi-1.0.0/PKG-INFO +67 -0
  4. lingxingapi-1.0.0/README.md +42 -0
  5. lingxingapi-1.0.0/pyproject.toml +6 -0
  6. lingxingapi-1.0.0/setup.cfg +40 -0
  7. lingxingapi-1.0.0/src/lingxingapi/__init__.py +7 -0
  8. lingxingapi-1.0.0/src/lingxingapi/ads/__init__.py +0 -0
  9. lingxingapi-1.0.0/src/lingxingapi/ads/api.py +5946 -0
  10. lingxingapi-1.0.0/src/lingxingapi/ads/param.py +192 -0
  11. lingxingapi-1.0.0/src/lingxingapi/ads/route.py +134 -0
  12. lingxingapi-1.0.0/src/lingxingapi/ads/schema.py +2615 -0
  13. lingxingapi-1.0.0/src/lingxingapi/api.py +443 -0
  14. lingxingapi-1.0.0/src/lingxingapi/base/__init__.py +0 -0
  15. lingxingapi-1.0.0/src/lingxingapi/base/api.py +409 -0
  16. lingxingapi-1.0.0/src/lingxingapi/base/param.py +59 -0
  17. lingxingapi-1.0.0/src/lingxingapi/base/route.py +11 -0
  18. lingxingapi-1.0.0/src/lingxingapi/base/schema.py +198 -0
  19. lingxingapi-1.0.0/src/lingxingapi/basic/__init__.py +0 -0
  20. lingxingapi-1.0.0/src/lingxingapi/basic/api.py +466 -0
  21. lingxingapi-1.0.0/src/lingxingapi/basic/param.py +72 -0
  22. lingxingapi-1.0.0/src/lingxingapi/basic/route.py +20 -0
  23. lingxingapi-1.0.0/src/lingxingapi/basic/schema.py +212 -0
  24. lingxingapi-1.0.0/src/lingxingapi/errors.py +143 -0
  25. lingxingapi-1.0.0/src/lingxingapi/fba/__init__.py +0 -0
  26. lingxingapi-1.0.0/src/lingxingapi/fba/api.py +1691 -0
  27. lingxingapi-1.0.0/src/lingxingapi/fba/param.py +250 -0
  28. lingxingapi-1.0.0/src/lingxingapi/fba/route.py +30 -0
  29. lingxingapi-1.0.0/src/lingxingapi/fba/schema.py +987 -0
  30. lingxingapi-1.0.0/src/lingxingapi/fields.py +50 -0
  31. lingxingapi-1.0.0/src/lingxingapi/finance/__init__.py +0 -0
  32. lingxingapi-1.0.0/src/lingxingapi/finance/api.py +3091 -0
  33. lingxingapi-1.0.0/src/lingxingapi/finance/param.py +616 -0
  34. lingxingapi-1.0.0/src/lingxingapi/finance/route.py +44 -0
  35. lingxingapi-1.0.0/src/lingxingapi/finance/schema.py +1243 -0
  36. lingxingapi-1.0.0/src/lingxingapi/product/__init__.py +0 -0
  37. lingxingapi-1.0.0/src/lingxingapi/product/api.py +2643 -0
  38. lingxingapi-1.0.0/src/lingxingapi/product/param.py +934 -0
  39. lingxingapi-1.0.0/src/lingxingapi/product/route.py +49 -0
  40. lingxingapi-1.0.0/src/lingxingapi/product/schema.py +1004 -0
  41. lingxingapi-1.0.0/src/lingxingapi/purchase/__init__.py +0 -0
  42. lingxingapi-1.0.0/src/lingxingapi/purchase/api.py +496 -0
  43. lingxingapi-1.0.0/src/lingxingapi/purchase/param.py +126 -0
  44. lingxingapi-1.0.0/src/lingxingapi/purchase/route.py +11 -0
  45. lingxingapi-1.0.0/src/lingxingapi/purchase/schema.py +215 -0
  46. lingxingapi-1.0.0/src/lingxingapi/sales/__init__.py +0 -0
  47. lingxingapi-1.0.0/src/lingxingapi/sales/api.py +3200 -0
  48. lingxingapi-1.0.0/src/lingxingapi/sales/param.py +723 -0
  49. lingxingapi-1.0.0/src/lingxingapi/sales/route.py +70 -0
  50. lingxingapi-1.0.0/src/lingxingapi/sales/schema.py +1718 -0
  51. lingxingapi-1.0.0/src/lingxingapi/source/__init__.py +0 -0
  52. lingxingapi-1.0.0/src/lingxingapi/source/api.py +1799 -0
  53. lingxingapi-1.0.0/src/lingxingapi/source/param.py +176 -0
  54. lingxingapi-1.0.0/src/lingxingapi/source/route.py +38 -0
  55. lingxingapi-1.0.0/src/lingxingapi/source/schema.py +1011 -0
  56. lingxingapi-1.0.0/src/lingxingapi/tools/__init__.py +0 -0
  57. lingxingapi-1.0.0/src/lingxingapi/tools/api.py +291 -0
  58. lingxingapi-1.0.0/src/lingxingapi/tools/param.py +73 -0
  59. lingxingapi-1.0.0/src/lingxingapi/tools/route.py +8 -0
  60. lingxingapi-1.0.0/src/lingxingapi/tools/schema.py +169 -0
  61. lingxingapi-1.0.0/src/lingxingapi/utils.py +411 -0
  62. lingxingapi-1.0.0/src/lingxingapi/warehourse/__init__.py +0 -0
  63. lingxingapi-1.0.0/src/lingxingapi/warehourse/api.py +1778 -0
  64. lingxingapi-1.0.0/src/lingxingapi/warehourse/param.py +506 -0
  65. lingxingapi-1.0.0/src/lingxingapi/warehourse/route.py +28 -0
  66. lingxingapi-1.0.0/src/lingxingapi/warehourse/schema.py +926 -0
  67. lingxingapi-1.0.0/src/lingxingapi.egg-info/PKG-INFO +67 -0
  68. lingxingapi-1.0.0/src/lingxingapi.egg-info/SOURCES.txt +71 -0
  69. lingxingapi-1.0.0/src/lingxingapi.egg-info/dependency_links.txt +1 -0
  70. lingxingapi-1.0.0/src/lingxingapi.egg-info/not-zip-safe +1 -0
  71. lingxingapi-1.0.0/src/lingxingapi.egg-info/requires.txt +7 -0
  72. lingxingapi-1.0.0/src/lingxingapi.egg-info/top_level.txt +1 -0
@@ -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,7 @@
1
+ include LICENSE
2
+ include README.md
3
+
4
+ include src/cytimes/*.pxd
5
+ include src/cytimes/*.py
6
+ include src/cytimes/*.pyi
7
+ include src/cytimes/*.pyx
@@ -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,42 @@
1
+ ## An async API client for LingXing (领星) ERP
2
+
3
+ Created to be used in a project, this package is published to github for ease of management and installation across different modules.
4
+
5
+ ## Installation
6
+
7
+ Install from `PyPi`
8
+
9
+ ```bash
10
+ pip install lingxingapi
11
+ ```
12
+
13
+ Install from `github`
14
+
15
+ ```bash
16
+ pip install git+https://github.com/AresJef/LingXingApi.git
17
+ ```
18
+
19
+ ## Requirements
20
+
21
+ - Python 3.10 or higher.
22
+
23
+ ## Example
24
+
25
+ ```python
26
+ from lingxingapi import API
27
+
28
+ async def test(self, app_id: str, app_secret: str) -> None:
29
+ async with API(app_id, app_secret) as api:
30
+ sellers = await api.basic.Sellers()
31
+ print(sellers)
32
+ ```
33
+
34
+ ### Acknowledgements
35
+
36
+ MysqlEngine is based on several open-source repositories.
37
+
38
+ - [aiohttp](https://github.com/aio-libs/aiohttp)
39
+ - [cytimes](https://github.com/AresJef/cyTimes)
40
+ - [numpy](https://github.com/numpy/numpy)
41
+ - [orjson](https://github.com/ijl/orjson)
42
+ - [pydantic](https://github.com/pydantic/pydantic)
@@ -0,0 +1,6 @@
1
+ [build-system]
2
+ requires = [
3
+ "setuptools>=68.0.0",
4
+ "wheel>=0.41.0",
5
+ ]
6
+ build-backend = "setuptools.build_meta"
@@ -0,0 +1,40 @@
1
+ [metadata]
2
+ name = lingxingapi
3
+ version = 1.0.0
4
+ author = Jiefu Chen
5
+ author_email = keppa1991@163.com
6
+ description = An async API client for LingXing (领星) ERP
7
+ url = https://github.com/AresJef/LingXingApi
8
+ long_description = file: README.md
9
+ long_description_content_type = text/markdown
10
+ keywords = async, api, lingxing, erp
11
+ license = MIT license
12
+ classifiers =
13
+ Programming Language :: Python :: 3
14
+ Operating System :: Unix
15
+ Operating System :: MacOS :: MacOS X
16
+ Operating System :: Microsoft :: Windows
17
+
18
+ [options]
19
+ zip_safe = False
20
+ include_package_data = True
21
+ package_dir =
22
+ = src
23
+ packages = find:
24
+ python_requires = >=3.10
25
+ install_requires =
26
+ aiohttp>=3.8.4
27
+ cytimes>=2.0.7
28
+ numpy>=1.25.2
29
+ orjson>=3.10.2
30
+ pycryptodome>=3.23.0
31
+ pydantic>=2.7.4
32
+ typing-extensions>=4.9.0
33
+
34
+ [options.packages.find]
35
+ where = src
36
+
37
+ [egg_info]
38
+ tag_build =
39
+ tag_date = 0
40
+
@@ -0,0 +1,7 @@
1
+ from lingxingapi.api import API
2
+ from lingxingapi import errors
3
+
4
+ __all__ = [
5
+ "API",
6
+ "errors",
7
+ ]
File without changes