Skip to content

Conversation

@BastienGimbert
Copy link
Contributor

Hey everyone,
I noticed you’re preparing v1 and there wasn’t a helper to fetch an organization’s followers. I added it. The change is small and mirrors the existing helpers.

Summary

  • add HfApi.list_organization_followers hitting /api/organizations/{org}/followers
  • stream Iterable[User] via the existing pagination utility (aligned with list_user_followers / list_organization_members)
  • expose the helper at the package root
  • add a test with generic structure checks (no user-specific assertions because "huggingface" org have more +500 followers )

Testing

python -m pytest tests/test_hf_api.py -k organization_followers

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.

Very clean and good PR!

Do you have a use case for it? :)

@Wauplin
Copy link
Contributor

Wauplin commented Oct 24, 2025

@bot /style

@github-actions
Copy link
Contributor

github-actions bot commented Oct 24, 2025

Style bot fixed some files and pushed the changes.

@HuggingFaceDocBuilderDev

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.

@BastienGimbert
Copy link
Contributor Author

Very clean and good PR!

Do you have a use case for it? :)

To put it simply, I'm recreating Hugging Face AutoTrain, but ultra complete for fine-tuning AI models.

@Wauplin
Copy link
Contributor

Wauplin commented Oct 24, 2025

Merging as failing CI is unrelated!

@Wauplin Wauplin merged commit ef2f8b6 into huggingface:main Oct 24, 2025
16 of 17 checks passed
@Wauplin
Copy link
Contributor

Wauplin commented Oct 24, 2025

To put it simply, I'm recreating Hugging Face AutoTrain, but ultra complete for fine-tuning AI models.

Cool! Would love to have a look at it once you have something to show! 🤗

@BastienGimbert
Copy link
Contributor Author

To put it simply, I'm recreating Hugging Face AutoTrain, but ultra complete for fine-tuning AI models.

Cool! Would love to have a look at it once you have something to show! 🤗

I'm doing it for doctors in my lab, I need to check with them if they agree to make it open source.
The project is close to a V1.
I can show it to you privately if you really want to see it.

@Wauplin
Copy link
Contributor

Wauplin commented Oct 24, 2025

Having it open-source would be the best 🤗

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.

3 participants