opensi·si

Check out the HfApi documentation page for the reference of methods to manage your Space on the Hub.

Collections

Check out the HfApi documentation page for the reference of methods to manage your Space on the Hub.

  • Get collection content: get_collection
  • Create new collection: create_collection
  • Update a collection: update_collection_metadata
  • Update a collection's resource group: update_collection_resource_group
  • Delete a collection: delete_collection
  • Add an item to a collection: add_collection_item
  • Update an item in a collection: update_collection_item
  • Remove an item from a collection: delete_collection_item

Collection

[[autodoc]] Collection

CollectionItem

[[autodoc]] CollectionItem

Source and license

Source: Hub Python Library documentation, adapted for this site. Licensing and attribution follow the terms of the upstream project.