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

Feature: download on ipfs client #36

Merged
merged 17 commits into from
Jul 12, 2023

Conversation

1yam
Copy link
Collaborator

@1yam 1yam commented Jul 10, 2023

Solutions:

  • Add a function called download_file_ipfs that downloads from ipfs.io/ipfs/.
  • Refactor the current download process to include:
    • Chunk size and storage into a buffer (BytesIO). (memory friendly)
  • Add a test for the download functionality.

src/aleph/sdk/client.py Outdated Show resolved Hide resolved
src/aleph/sdk/client.py Outdated Show resolved Hide resolved
src/aleph/sdk/client.py Outdated Show resolved Hide resolved
src/aleph/sdk/client.py Show resolved Hide resolved
src/aleph/sdk/client.py Outdated Show resolved Hide resolved
src/aleph/sdk/client.py Outdated Show resolved Hide resolved
src/aleph/sdk/client.py Outdated Show resolved Hide resolved
src/aleph/sdk/client.py Outdated Show resolved Hide resolved
src/aleph/sdk/client.py Show resolved Hide resolved
tests/unit/test_download.py Outdated Show resolved Hide resolved
tests/unit/test_download.py Outdated Show resolved Hide resolved
tests/unit/test_download.py Outdated Show resolved Hide resolved
tests/unit/test_download.py Outdated Show resolved Hide resolved
tests/unit/test_download.py Outdated Show resolved Hide resolved
1yam and others added 2 commits July 10, 2023 17:58
Co-authored-by: Hugo Herter <git@hugoherter.com>
Co-authored-by: Hugo Herter <git@hugoherter.com>
@1yam 1yam requested a review from odesenfans July 11, 2023 12:22
src/aleph/sdk/client.py Outdated Show resolved Hide resolved
src/aleph/sdk/client.py Outdated Show resolved Hide resolved
src/aleph/sdk/client.py Outdated Show resolved Hide resolved
src/aleph/sdk/client.py Outdated Show resolved Hide resolved
src/aleph/sdk/client.py Outdated Show resolved Hide resolved
src/aleph/sdk/client.py Outdated Show resolved Hide resolved
src/aleph/sdk/client.py Outdated Show resolved Hide resolved
src/aleph/sdk/exceptions.py Show resolved Hide resolved
src/aleph/sdk/client.py Outdated Show resolved Hide resolved
src/aleph/sdk/client.py Outdated Show resolved Hide resolved
src/aleph/sdk/client.py Outdated Show resolved Hide resolved
src/aleph/sdk/client.py Outdated Show resolved Hide resolved
src/aleph/sdk/client.py Outdated Show resolved Hide resolved
odesenfans
odesenfans previously approved these changes Jul 12, 2023
@odesenfans odesenfans merged commit 66a53af into aleph-im:main Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants