本仓库是Xsensing统一AI接口客户端(Unified Artificial Intelligence Interface Client, UAIC)代码和使用说明。
本仓库提供客户端、API。
1 About UAIC
Xsensing的统一AI接口(Unified Artificial Intelligence Interface, UAII)分为服务端UAIS和客户端UAIC。
- 服务端UAIS运行在GPU服务器上,统一调度不同算法模块、管理模型库,执行AI计算任务;
- 客户端UAIC运行在应用服务器上,通过Socket与UAIS通讯,可远程查看UAIS运行情况;自定义处理流程、管道和模块;管理UAIS;获取UAIS的输出。
2 Getting Started
2.1 安装
源码安装
git clone https://github.com/zhangzhengde0225/xsensing_client.git
cd xsensing_client
python setup.py install
pip安装
pip install xsensing_client
2.2 样例
Client Examples,下面是一个简单的客户端代码。
import xsensing_client
uaic = xsensing_client.UAIC(url='http://127.0.0.1:5000') # 连接到UAIS服务器
uaic.ps() # 查看服务器流、管道和模块的状态
uaic.stop(stream=None, pipeline=None, module=None) # 停止流,无参数时,停止全部;指定流时停止指定的流;指定管道或模块时,停止与之相关的所有流
uaic.get_cfg() # 从服务器读取各流、管道、模块的默认配置文件,保存到本地。
uaic.configure(config_file='config.py') # 上传服务端的流、管道和模块配置文件,更新服务端配置。
uaic.start(stream=None) # 启动流,无参数是启动所有流;指定流时启动指定的流;启动流的同时调起所有相关管道和模块。
uaic.scan(pipeline=None) # 窥视指定管道的输出。
3 详细文档
Metadata
Release files for xsensing-client 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xsensing_client-0.1.0.tar.gz | 6.5 kB | Without provenance | Details for xsensing_client-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xsensing_client-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for xsensing_client-0.1.0-py2.py3-none-any.whl |
Total release size: 12.0 kB
Release files / xsensing_client-0.1.0.tar.gz
| Download URL | xsensing_client-0.1.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
925120da91c26d6ba84493c9fd5dcd6bc1071f64d0f9057afeb6338917c441dc
|
|
BLAKE2b-256 checksum How to use checksums |
fc0c46e10bffd95ff029f2ec3fe1fbc0c49d36f3c0a9438ddca1837a3ae2dc28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Release files / xsensing_client-0.1.0-py2.py3-none-any.whl
| Download URL | xsensing_client-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a74980310c400c1640c09c6ef4e9b1c5b5a2733bf26e03b8918e619b2d54140f
|
|
BLAKE2b-256 checksum How to use checksums |
5585d7eb488f2bebf2c1363c17c3f112c44815ed6138b12497956cbddd0bba8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Security for xsensing-client 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.