sepandhaghighi / samila

A Generative Art Generator
https://www.samila.site
MIT License
1.09k stars 79 forks source link

Upload data to IPFS #145

Closed sepandhaghighi closed 1 year ago

sepandhaghighi commented 2 years ago

Description

Upload data file to IPFS

>>> from samila import *
>>> g = GenerativeImage()
>>> g.generate()
>>> g.plot()
>>> g.nft_storage(api_key="API_KEY", data_upload=True)
{'status': {'image':True, 'data':True}, 'message': {'image':'IMAGE_FILE_LINK', 'data':'DATA_FILE_LINK'}