aiochris-0.1.0
توضیحات
ChRIS client built on aiohttp
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aiochris-0.1.0 |
| نام | aiochris |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | FNNDSC |
| ایمیل نویسنده | dev@babyMRI.org |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/aiochris/ |
| مجوز | MIT |
# aiochris
[](https://github.com/FNNDSC/aiochris/actions/workflows/test.yml)
[](https://codecov.io/gh/FNNDSC/aiochris)
[](https://pypi.org/project/aiochris/)
[](https://github.com/FNNDSC/aiochris/blob/master/LICENSE)
[](https://github.com/psf/black)
[_ChRIS_](https://chrisproject.org) Python client library built on
[aiohttp](https://github.com/aio-libs/aiohttp) (async HTTP client) and
[pyserde](https://github.com/yukinarit/pyserde)
([dataclasses](https://docs.python.org/3/library/dataclasses.html) deserializer).
## Installation
Requires Python 3.10 or 3.11.
```shell
pip install aiochris
# or
poetry add aiochris
```
## Quick Example
```python
import asyncio
from chris import ChrisClient
async def readme_example():
chris = await ChrisClient.from_login(
username='chris',
password='chris1234',
url='https://cube.chrisproject.org/api/v1/'
)
dircopy = await chris.search_plugins(name_exact='pl-brainmgz', version='2.0.3').get_only()
plinst = await dircopy.create_instance(compute_resource_name='host')
feed = await plinst.get_feed()
await feed.set(name="hello, aiochris!")
await chris.close() # do not forget to clean up!
asyncio.run(readme_example())
```
## Documentation Links
- Client documentation: https://fnndsc.github.io/aiochris
- Developer documentation: https://github.com/FNNDSC/aiochris/wiki
نیازمندی
| مقدار | نام |
|---|---|
| >=3.8.3,<4.0.0 | aiohttp |
| ==0.8.3 | pyserde |
| >=0.2.1,<0.3.0 | async-property |
| >=1.8.2,<2.0.0 | yarl |
| >=22.1.0,<23.0.0 | aiofiles |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10,<4.0 | Python |
نحوه نصب
نصب پکیج whl aiochris-0.1.0:
pip install aiochris-0.1.0.whl
نصب پکیج tar.gz aiochris-0.1.0:
pip install aiochris-0.1.0.tar.gz