Skip to content

Conversation

BastienGimbert
Copy link

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

  • add an HfApi.get_organization_overview helper hitting /api/organizations/{org}/overview
  • surface the extra org metadata (avatar, description, counts, etc.) through the Organization dataclass
  • export the new helper at the package root and validate it with a production UserApi test

Testing

  • python -m pytest tests/test_hf_api.py -k organization_overview

- 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
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.

1 participant