Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload data to IPFS #145

Closed
sepandhaghighi opened this issue Aug 13, 2022 · 0 comments · Fixed by #169
Closed

Upload data to IPFS #145

sepandhaghighi opened this issue Aug 13, 2022 · 0 comments · Fixed by #169
Assignees
Labels
enhancement New feature or request new feature
Milestone

Comments

@sepandhaghighi
Copy link
Owner

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'}
@sepandhaghighi sepandhaghighi added enhancement New feature or request new feature labels Aug 13, 2022
@sepandhaghighi sepandhaghighi added this to the samila v1.0 milestone Oct 10, 2022
sadrasabouri added a commit that referenced this issue Nov 13, 2022
sepandhaghighi pushed a commit that referenced this issue Nov 22, 2022
* add : `get_config` and `get_data`.

* add : `upload_data` and `upload_config` parameters added to `nft_storage` method.

* log : chages logged. (#144, #145)

* edit : config and data are now json dumped.

* doc : document updated.

* test : tests added.

* fix : minor issues fixed in tests.

* change : minor changes applied.

* test : test splited for inreasing coverage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants