backend.ai-aiotusclient-0.1.4
توضیحات
tus.io-compatible upload client library for Python asyncio
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | backend.ai-aiotusclient-0.1.4 |
| نام | backend.ai-aiotusclient |
| نسخه کتابخانه | 0.1.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Lablup Inc. |
| ایمیل نویسنده | sergey@lablup.com |
| آدرس صفحه اصلی | https://github.com/lablup/aiotusclient |
| آدرس اینترنتی | https://pypi.org/project/backend.ai-aiotusclient/ |
| مجوز | MIT |
# tus.io uploader for Python asyncio
aiotusclient is a fork of tus-py-client rewritten for Python asyncio and aiohttp.
It is used to communicate with storage proxies that handle large transfers for vfolder uploads and downloads.
## Package Structure
* `aiotusclient`
- `client`: The client instance class which communicates between Backend.AI Manager
- `baseuploader` and `uploader`
- Responsible for chunking the file and asynchronously uploading to tus server
- `request`
- Handles the uploading request
## Installation
### Prequisites
* Python 3.7 or higher with [pyenv](https://github.com/pyenv/pyenv)
and [pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv) (optional but recommneded)
### Installation Process
First, prepare the source clone of this agent:
```console
# git clone https://github.com/lablup/aiotusclient
```
From now on, let's assume all shell commands are executed inside the virtualenv. And we located in backend.ai root directory.
Now install dependencies:
```console
# pip install -U aiotusclient
```
When done, import into your code the aiotusclient
```python
from aiotusclient import client
tus_client = client.TusClient(session_create_url, session_upload_url, rqst.headers, params)
```
### Reference
This library was forked from [tus-py-client](https://github.com/tus/tus-py-client) and customized in order to facilitate asynchronous communication with our TUS server.
نیازمندی
| مقدار | نام |
|---|---|
| >=3.6.2 | aiohttp |
| >=4.42 | tqdm |
| >=0.35.1 | wheel |
| >=3.2.0 | twine |
| >=3.8.4 | flake8 |
| >=5.6.4 | isort |
| - | black |
| >=6.0.1 | pytest |
| >=0.14.0 | pytest-asyncio |
| >=2.10.0 | pytest-cov |
| >=3.2.0 | pytest-mock |
| >=2.1.8 | codecov |
| >=0.800 | mypy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl backend.ai-aiotusclient-0.1.4:
pip install backend.ai-aiotusclient-0.1.4.whl
نصب پکیج tar.gz backend.ai-aiotusclient-0.1.4:
pip install backend.ai-aiotusclient-0.1.4.tar.gz