Skip to main content

Templates for managing Hugging Face models, spaces and datasets.

Project description




Sinapsis Hugging Face Hub

Sinapsis Hugging Face Hub provides a simple and flexible no-code implementation of the Hugging Face Hub library. It enables users to easily manage models, datasets, and spaces for Hugging Face-related tasks.

🐍 Installation📦 Features▶️ Example usage📙 Documentation🔍 License

🐍 Installation

Install using your package manager of choice. We encourage the use of uv

Example with uv:

  uv pip install sinapsis-huggingface-hub --extra-index-url https://pypi.sinapsis.tech

or with raw pip:

  pip install sinapsis-huggingface-hub --extra-index-url https://pypi.sinapsis.tech

[!IMPORTANT] Templates may require extra optional dependencies. For development, we recommend installing the package with all the optional dependencies:

with uv:

  uv pip install sinapsis-huggingface-hub[all] --extra-index-url https://pypi.sinapsis.tech

or with raw pip:

  pip install sinapsis-huggingface-hub[all] --extra-index-url https://pypi.sinapsis.tech

📦 Features

The templates in this package include functionality to:

  • HuggingFaceDownloader: Downloads a repository snapshot from the Hugging Face Hub.

▶️ Example Usage

Below is an example YAML configuration for running a Stable Diffusion Downloader pipeline using Sinapsis.

Config
agent:
  name: stable_diffusion_agent_downloader

templates:
- template_name: InputTemplate
  class_name: InputTemplate
  attributes: {}

- template_name: HuggingFaceDownloader
  class_name: HuggingFaceDownloader
  template_input: InputTemplate
  attributes:
    repo_id: stable-diffusion-v1-5/stable-diffusion-v1-5
    max_workers: 4

To run the config, use the CLI:

sinapsis run name_of_config.yml

📙 Documentation

Documentation is available on the sinapsis website

Tutorials for different projects within sinapsis are available at sinapsis tutorials page

🔍 License

This project is licensed under the AGPLv3 license, which encourages open collaboration and sharing. For more details, please refer to the LICENSE file.

For commercial use, please refer to our official Sinapsis website for information on obtaining a commercial license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sinapsis_huggingface_hub-0.1.1.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sinapsis_huggingface_hub-0.1.1-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file sinapsis_huggingface_hub-0.1.1.tar.gz.

File metadata

File hashes

Hashes for sinapsis_huggingface_hub-0.1.1.tar.gz
Algorithm Hash digest
SHA256 84eb3e994d7e8c956be0888873f2acb34ae5dad0eba3d82392dbb57278c9b719
MD5 b19dc901fbf2c554c210085af93ac2bc
BLAKE2b-256 9fa91c36c8edd75f712f746967d4b80812393083cfc9fd621d148f8a2a599476

See more details on using hashes here.

File details

Details for the file sinapsis_huggingface_hub-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sinapsis_huggingface_hub-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8d939eb351e05aabd7d0e575a74d248360a1396e266abc6b9175921a40fcfb36
MD5 255daddc8adbe36373c9f30fb2ecd3a0
BLAKE2b-256 a13f253bb7b5a7d40948aec63ef2e7aef53ca4daf7bf5157c0980926a6fcf2ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page