Async IPFS API Client
Documentation can be found at aioipfs-api.readthedocs.org.
Installation
pip install aioipfs-api
Usage
This assumes you have a working familiarity with asyncio.
import asyncio
from aioipfs_api.client import Client
async def main():
async with Client() as client:
# print the readme
async with client.cat("QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme") as f:
print(await f.text())
# add a directory
print(await client.add('/some/dir/path'))
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Logging
This library uses the standard Python logging library. To see debut output printed to STDOUT, for instance, use:
import logging
log = logging.getLogger('aioipfs_api')
log.setLevel(logging.DEBUG)
log.addHandler(logging.StreamHandler())
Running Tests
To run tests:
pip install -r dev-requirements.txt
python -m unittest
Release files for aioipfs-api 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aioipfs-api-0.1.3.tar.gz | 13.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aioipfs_api-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.2 kB
Release files / aioipfs-api-0.1.3.tar.gz
| Download URL | aioipfs-api-0.1.3.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0524fd9ed3ec0b66bc185f20bea167639376c5f89b5323b50458a43da5104cc3
|
|
BLAKE2b-256 checksum How to use checksums |
fba718a6831e3f525995e8dd975477c734ab812d614538a7f5e965ab79488e93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
|
Release files / aioipfs_api-0.1.3-py3-none-any.whl
| Download URL | aioipfs_api-0.1.3-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0750e2e2d039519438108683c4ed41e188b8a3d3a3bcb435d1458a0bcf548ffa
|
|
BLAKE2b-256 checksum How to use checksums |
d0f741dcb7860a97310efa091cdce4886fb1d0b29e907865bc357d6c816bba32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
|