Getting started with IPFS, Python, and Jupyter Notebooks
And because we’re working in Python, we can take advantage of some of the nice features these bindings afford us, such as helpers functions for adding strings and dicts directly to IPFS:
metadata = {"data": "about data"}cid = api.add_json(metadata)# You can also check the public gateway:print("https://ipfs.io/ipfs/{}".format(cid))
and then check that our data is actually available via our local peer:
import jsonjson.loads(api.cat(cid))
And that’s it for now! At Textile, we use a whole range of IPFS tools to interact with our own data, as well as the growing infrastructure we’re developing to enable secure photo backup and sharing on the distributed web. Come check us out, and jump on the Textile Photos waitlist to request early access to a whole new way to control your photos.