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

Implement nodes/{node_id}/download endpoint #74

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

agoscinski
Copy link
Collaborator

@agoscinski agoscinski commented Nov 19, 2024

We implement the download of nodes that implement the export
functionality as in aiida-core. We use StreamingResponse to send the
data in byte chunks of size 1024.

The tests require the client to be asynchronously to prevent I/O
operations on closed file handlers.

We require a numpy dependency because we need a node type that
implemented the export functionality. The only node type that is not
bounded to the domain of material science is ArrayData.

@agoscinski agoscinski force-pushed the nodes-download-endpoint branch 2 times, most recently from 0d4202a to 1c71a6c Compare November 21, 2024 08:47
@agoscinski agoscinski changed the title Implement nodes/{node_id}/download?{download_format} endpoint Implement nodes/{node_id}/download endpoint Nov 21, 2024
@agoscinski agoscinski force-pushed the nodes-download-endpoint branch from 1c71a6c to 6212b78 Compare November 21, 2024 08:49
@agoscinski agoscinski marked this pull request as ready for review November 21, 2024 08:54
@agoscinski agoscinski requested a review from eimrek November 21, 2024 08:54
We implement the download of nodes that implement the export
functionality as in aiida-core. We use StreamingResponse to send the
data in byte chunks of size 1024.

The tests require the client to be asynchronously to prevent I/O
operations on closed file handlers.

We require a numpy dependency because we need a node type that
implemented the export functionality. The only node type that is not
bounded to the domain of material science is ArrayData.
@agoscinski agoscinski force-pushed the nodes-download-endpoint branch from 6212b78 to 9595cf4 Compare November 21, 2024 08:57
Copy link
Member

@eimrek eimrek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! thanks!

@agoscinski agoscinski merged commit 366f036 into aiidateam:master Nov 21, 2024
4 of 5 checks passed
@agoscinski agoscinski deleted the nodes-download-endpoint branch November 21, 2024 10:29
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.

2 participants