utils

util functions for the ipfspy library
# #export
# GATEWAYS_API_READ = [
#     "https://ipfs.io/api/v0",
#     "https://gateway.pinata.cloud/api/v0",
#     "https://cloudflare-ipfs.com/api/v0",
#     "https://dweb.link/api/v0",
#     "https://ipfs.eth.aragon.network/api/v0",
#     "https://permaweb.eu.org/api/v0",
#     "https://nftstorage.link/api/v0",
#     "https://ipfs.lain.la/api/v0",
#     "https://ipfs.mihir.ch/api/v0",
#     "https://ipfs.telos.miami/api/v0",
#     "https://jorropo.net/api/v0",
#     "https://cf-ipfs.com/api/v0",
#     "https://cloudflare-ipfs.com/api/v0",
#     "https://gateway.ipfs.io/api/v0",
#     "https://infura-ipfs.io/api/v0",
#     "https://via0.com/api/v0",
#     "https://ipfs.azurewebsites.net/api/v0"
# ]

# GATEWAYS_API_WRITE = [
#     "https://ipfs.io/api/v0",
#     "https://gateway.pinata.cloud/api/v0",
#     "https://cloudflare-ipfs.com/api/v0",
#     "https://dweb.link/api/v0",
# ]

source

parse_error_message

 parse_error_message (response)

Parse error message for raising exceptions

Details
response Response object from requests

source

parse_response

 parse_response (response)

Parse response object into JSON

Details
response Response object

source

IPFSGateway

 IPFSGateway (url, auth=None)

Initialize self. See help(type(self)) for accurate signature.


source

dict_equal

 dict_equal (*args)

source

dict_hash

 dict_hash (dictionary:Dict[str,Any])

MD5 hash of a dictionary.


source

dict_put

 dict_put (input_dict, keys, value)

insert keys that are dot seperated (key1.key2.key3) recursively into a dictionary


source

dict_get

 dict_get (input_dict, keys, default_value=False)

get keys that are dot seperated (key1.key2.key3) recursively into a dictionary


source

make_infura_auth

 make_infura_auth (username, password)