Skip to content

Conversation

@BastienGimbert
Copy link
Contributor

Problem

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

Summary

Add HfApi.list_organization_spaces who calls /api/organizations/{organization}/spaces-json
Add a test to check the endpoint returns SpaceInfo objects.

Testing

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

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_spaces(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