-
Notifications
You must be signed in to change notification settings - Fork 823
Add client support for the organization overview endpoint #3436
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
Add client support for the organization overview endpoint #3436
Conversation
- extend Organization dataclass with overview metadata returned by the Hub - expose get_organization_overview on HfApi and top-level package exports - cover the new endpoint with a production UserApi test
@bot /style |
Style bot fixed some files and pushed the changes. |
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you @BastienGimbert, the PR is almost ready to be merged! 🤗
…enGimbert/huggingface_hub into add-organization-overview-endpoint
Hi @hanouticelina, There are 106 other lines that only use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BastienGimbert thanks for noticing! I updated the parameter docstring in main and pushed f929cf8 to align the PR.
All good on my side, let's wait for a final approval from @Wauplin before merging!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice implementation, thanks! 🤗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice PR @BastienGimbert!
Problem
I needed to pull full organization metadata (description, avatar, stats, etc.) for a feature, but the Python client had no helper hitting
/api/organizations/{org}/overview
.Summary
Testing