caw-0.8.0
توضیحات
ChRIS client library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | caw-0.8.0 |
| نام | caw |
| نسخه کتابخانه | 0.8.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | FNNDSC |
| ایمیل نویسنده | dev@babyMRI.org |
| آدرس صفحه اصلی | https://chrisproject.org |
| آدرس اینترنتی | https://pypi.org/project/caw/ |
| مجوز | MIT |
# Python _ChRIS_ Client
[](https://pypi.org/project/caw/)
[](https://github.com/FNNDSC/caw/blob/master/LICENSE)
[](https://github.com/FNNDSC/caw/actions)
[](https://github.com/psf/black)
A Python _ChRIS_ client library.
## Installation
```shell
pip install -U caw
```
## Example
```python
from pathlib import Path
from chris.client import ChrisClient
client = ChrisClient.from_login(
address="https://cube.chrisproject.org/api/v1/",
username="chris",
password="chris1234"
)
client.upload(Path("example.txt"), "my_examples")
dircopy = client.get_plugin_by_name("pl-dircopy")
plinst = dircopy.create_instance({"dir": "chris/uploads/my_examples/example.txt"})
```
## Async
Looking for an `async` _ChRIS_ client? Let us know!
We have one implemented
[here](https://github.com/FNNDSC/chrisomatic/tree/master/chris),
though it's not published to PyPI.
## Command-Line Client
[chrs](https://github.com/FNNDSC/chrs/tree/master/chrs#readme)
is the next-generation _ChRIS_ command-line client, please check it out.
`caw` previously included a command-line client for _ChRIS_, however
since v0.7.0 it was deprecated and removed.
To use the `caw` command:
```shell
pip install caw==0.6.1
```
Usage: https://github.com/FNNDSC/caw/blob/d5b05b28af312b97ac80bd96376d70626db737a5/README.md
نیازمندی
| مقدار | نام |
|---|---|
| >=2.27.1,<3.0.0 | requests |
| >=0.7.1,<0.8.0 | pyserde |
| >=0.4.1,<0.5.0 | typer |
| >=8.1.2,<9.0.0 | click |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8.2,<4.0.0 | Python |
نحوه نصب
نصب پکیج whl caw-0.8.0:
pip install caw-0.8.0.whl
نصب پکیج tar.gz caw-0.8.0:
pip install caw-0.8.0.tar.gz