Client Interface ======================================= The main :ref:`aioipfs_api.client` class extends an autogenerated :ref:`aioipfs_api.autoapi` class that is built by introspecting the GO IPFS library's API. All of the methods in the :ref:`aioipfs_api.autoapi` are available in the Client. .. _aioipfs_api.client: Client ====== The Client can be either used within an asynchronous context:: async with Client() as client: # print the readme async with client.cat("QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme") as f: print(await f.text()) Or explicitly opened/closed:: client = Client() await client.connect() async with client.cat("QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme") as f: print(await f.text()) await client.close() .. module:: aioipfs_api.client .. autoclass:: Client :members: :undoc-members: .. _aioipfs_api.autoapi: IPFS Interface ============== This class is autogenerated by the code in the `go `_ folder. It uses the IPFS go library and introspection to autogenerate the Python code. .. module:: aioipfs_api.autoapi .. autoclass:: IPFSInterface :members: :undoc-members: