Metadata-Version: 2.4
Name: lingxingapi
Version: 1.3.8
Summary: An async API client for LingXing (领星) ERP
Home-page: https://github.com/AresJef/LingXingApi
Author: Jiefu Chen
Author-email: keppa1991@163.com
License: MIT license
Keywords: async,api,lingxing,erp
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp>=3.8.4
Requires-Dist: cytimes>=3.0.1
Requires-Dist: numpy>=1.25.2
Requires-Dist: orjson>=3.10.2
Requires-Dist: pycryptodome>=3.23.0
Requires-Dist: pydantic>=2.7.4
Requires-Dist: typing-extensions>=4.9.0
Dynamic: license-file

## An async API client for LingXing (领星) ERP

Created to be used in a project, this package is published to github for ease of management and installation across different modules.

## Installation

Install from `PyPi`

```bash
pip install lingxingapi
```

Install from `github`

```bash
pip install git+https://github.com/AresJef/LingXingApi.git
```

## Requirements

- Python 3.10 or higher.

## Example

```python
from lingxingapi import API

# Context Manager
async def test(self, app_id: str, app_secret: str) -> None:
    async with API(app_id, app_secret) as api:
        sellers = await api.basic.Sellers()

# Close Manually
async def test(self, app_id: str, app_secret: str) -> None:
    api = API(app_id, app_secret)
    sellers = await api.basic.Sellers()
    await api.close()
```

### Acknowledgements

MysqlEngine is based on several open-source repositories.

- [aiohttp](https://github.com/aio-libs/aiohttp)
- [cytimes](https://github.com/AresJef/cyTimes)
- [numpy](https://github.com/numpy/numpy)
- [orjson](https://github.com/ijl/orjson)
- [pydantic](https://github.com/pydantic/pydantic)
