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

feat: add functions for project-dataset operations #82

Open
wants to merge 33 commits into
base: main
Choose a base branch
from

Conversation

mortenpi
Copy link
Member

@mortenpi mortenpi commented Mar 10, 2025

This adds:

  • JuliaHub.project_dataset(s) to get dataset(s) that are attached to a project
  • JuliaHub.upload_project_dataset to upload a new version of a dataset that attached to a project (if you have write access).

To make things easier for the user, JuliaHub.authenticate will automatically pick up the project UUID from the JULIAHUB_PROJECT_UUID environment variable, in which case you don't need to pass the project UUID to any of the project-dataset function. You can also manually set it by passing project to JuliaHub.authenticate.

The project-dataset function will still return Dataset objects, but it now can also contain a .project field which can contain the project-dataset link metadata (e.g. writability).

Close #15.

@mortenpi mortenpi changed the title feat: add function for project-dataset operations feat: add functions for project-dataset operations Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JuliaHub.upload_dataset() should connect automatically to a project
1 participant