Metadata-Version: 2.4
Name: promptledger-ollama
Version: 0.1.0
Summary: Optional ollama 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
Dynamic: license-file

# PromptLedger Ollama provider

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

Local Modelfile import/export, model discovery and literal substring evaluation. Requires a separately running local Ollama server. Models that route to remote services may send data outside the machine.

## Installation

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

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

## Usage

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

```sh
promptledger integrations ollama-test --id greeting --ref 1 --model qwen3:4b --expected HELLO --confirm
```

## More operations

```sh
promptledger integrations ollama-import --id model --file Modelfile
promptledger integrations ollama-export --id model --ref 1 --file Modelfile.export
promptledger plugins run ollama healthcheck --confirm
```

Import/export use local files; export refuses overwriting unless `--overwrite` is supplied. Download the chosen model in Ollama before testing. The expected text is matched literally, case-sensitively.

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.
