Metadata-Version: 2.4
Name: promptledger-huggingface
Version: 0.1.0
Summary: Optional huggingface provider for PromptLedger
Author: PromptLedger Contributors
License-Expression: MIT
Project-URL: Repository, https://github.com/Ertugrulmutlu/promptledger
Project-URL: Documentation, https://github.com/Ertugrulmutlu/promptledger/blob/main/docs/plugin-sdk.md
Project-URL: Issues, https://github.com/Ertugrulmutlu/promptledger/issues
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: promptledger<0.9,>=0.8
Requires-Dist: huggingface_hub<2,>=0.30
Dynamic: license-file

# PromptLedger Hugging Face provider

Optional provider for PromptLedger 0.8.x (SDK v1).

Publish versioned prompt artifacts to an existing private dataset using huggingface_hub. Configure Hugging Face credentials separately. Repository visibility may change after upload; never publish sensitive prompts. Import is not supported.

## Installation

```sh
python -m pip install promptledger-huggingface
promptledger plugins conformance huggingface --confirm
```

From a source checkout, install Core first and use `python -m pip install -e ./plugins/huggingface` instead.

## Usage

Initialize a workspace and create the referenced prompt where required. Example:

```sh
promptledger integrations hf-publish --id greeting --ref 1 --repo account/private-dataset --confirm
```

## Before publishing

Create a private dataset and configure Hugging Face credentials outside PromptLedger. Use a token with sufficient write permissions for the destination. Review the saved prompt before publication.

```sh
promptledger plugins run huggingface healthcheck --confirm
```

A healthcheck does not guarantee write access to the chosen dataset.

Providers are trusted Python code, not sandboxed. Explicit confirmation is required for network execution. No automatic synchronization or publication. Review the [SDK guide](https://github.com/Ertugrulmutlu/promptledger/blob/main/docs/plugin-sdk.md) for the trust boundary and provider options.

MIT license.
