ChRIS client built on aiohttp
Project description
aiochris
ChRIS Python client library built on aiohttp (async HTTP client) and pyserde (dataclasses deserializer).
Installation
Requires Python 3.11 or 3.12.
pip install aiochris
# or
rye add aiochris
For convenience, container images are also provided.
docker pull ghcr.io/fnndsc/aiochris:0.3.0
Quick Example
import asyncio
from aiochris 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
aiochris-0.10.0-py3-none-any.whl
(33.6 kB
view details)
File details
Details for the file aiochris-0.10.0-py3-none-any.whl
.
File metadata
- Download URL: aiochris-0.10.0-py3-none-any.whl
- Upload date:
- Size: 33.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1737306a43bb26779c04444db4a12097168ae250cb4a10f1bf728a0b3d5f23c |
|
MD5 | 303b805d3f960db29cefc33a005d58a4 |
|
BLAKE2b-256 | 629786d6e6a076004f9986065debedc74ca71f8361896873b3f85d4893a8e6cf |