huggingface / huggingface_hub

The official Python client for the Huggingface Hub.
https://huggingface.co/docs/huggingface_hub
Apache License 2.0
2.01k stars 531 forks source link

Support `resource_group_id` in `create_repo` #2324

Closed Wauplin closed 3 months ago

Wauplin commented 3 months ago

Related to slack thread (private). cc @nbroad1881 @coyotte508

Resource groups is a Enterprise feature that allows orgs to manage which members have access to a resource. This PR adds support for resource_group_id: Optional[str] in create_repo. When passed, the repo will be created inside the corresponding resource group. Check out https://huggingface.co/docs/hub/en/security-resource-groups for more details about resource groups.

HuggingFaceDocBuilderDev commented 3 months ago

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.

MoritzLaurer commented 3 months ago

A customer just told me that they were looking exactly for this and this PR solved their problem 👍