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.2.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.2-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for sinapsis_huggingface_hub-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7a0785293245dde1a25cf3658314b167307518035cf41e4ceb7772e3840c57a1
MD5 0970cbdf56ce9098f4af68f15ecc1e97
BLAKE2b-256 1758bd047e6c9d5d1e603617578be384a5445db88bdd3df320901df2ed6aa680

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sinapsis_huggingface_hub-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 35aca95e12161918212e87d1ed12da7e2ef842289c373d0cd93faaa34d954e97
MD5 3c4603aaf2230f94d6b9fadd9805f9a1
BLAKE2b-256 dd7d7b59d430e173101638c43ef90728fa651c7d2bd59960259839b45b0555eb

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