Skip to content

Conversation

@BastienGimbert
Copy link
Contributor

Problem :

There was no function to list datasets from an organization on the Hub.

Summary :

Add HfApi.list_organization_datasets who calls /api/organizations/{organization}/datasets-json
Add a test to check the endpoint returns DatasetInfo objects.

Testing :

pytest -q tests/test_hf_api.py::UserApiTest::test_list_organization_datasets

@BastienGimbert BastienGimbert changed the title feat: add list_organization_datasets method and corresponding test Add HfApi.list_organization_datasets() to list organization datasets Oct 29, 2025
Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

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

Same as #3503 (review). Best to use list_datasets(author=...).

@Wauplin Wauplin closed this Oct 30, 2025
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