Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

hyle-ollama

Ollama integration for Hyle.

Provides generation, streaming, embeddings, and model operations through Ollama's native API.

Installation

Requires Python 3.14+.

uv add hyle-ollama

This also installs hyle-core.

Quick start

import asyncio

from hyle import Request
from hyle_ollama import OllamaClient, OllamaModel


async def main() -> None:
    async with OllamaClient() as client:
        model = OllamaModel("qwen3:4b", client=client)
        response = await model.generate(Request("Why is the sky blue?"))

    print(response.require_text())


asyncio.run(main())

Ollama-specific settings are also supported:

from hyle_ollama import OllamaGenerationConfig, OllamaModel, OllamaOptions


model = OllamaModel(
    "qwen3:4b",
    client=client,
    config=OllamaGenerationConfig(
        think="low",
        options=OllamaOptions(
            num_ctx=16_384,
            temperature=0.2,
        ),
    ),
)

hyle-ollama follows Ollama's native API, rather than emulating unsupported behavior, and maps it onto Hyle's provider-independent interfaces.

Status

Hyle is a personal project built for fun. There is no fixed roadmap or timeline.

Alpha. The API may change.

License

MIT

Metadata

Release files for hyle-ollama 0.1.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hyle-ollama 0.1.0a1
File Size Uploaded Provenance Actions
hyle_ollama-0.1.0a1.tar.gz 20.7 kB With provenance Details for hyle_ollama-0.1.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hyle-ollama 0.1.0a1
File Interpreter ABI Platform Actions
hyle_ollama-0.1.0a1-py3-none-any.whl Python 3 none any Details for hyle_ollama-0.1.0a1-py3-none-any.whl

Total release size: 39.4 kB

Release files / hyle_ollama-0.1.0a1.tar.gz

Download URL hyle_ollama-0.1.0a1.tar.gz
Size 20.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b94e089f62fbd1d86f8944ed241f5d8ed1278e1abb59f4f88304c521802ead86
BLAKE2b-256 checksum
How to use checksums
1748d150220600ab1b44d633c428153e6d6aaec93c6f9238c79c7e74f3263d0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.

Transparency log

Release files / hyle_ollama-0.1.0a1-py3-none-any.whl

Download URL hyle_ollama-0.1.0a1-py3-none-any.whl
Size 18.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69736bea1d1310422c2a3d5e4655047cfcef63fe69e0258254536acf2c7f14e4
BLAKE2b-256 checksum
How to use checksums
dfd44411ce76bb22f10fc72f23af8d4470031bef5039be48a3bcbb1c85edfd71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.

Transparency log

Security for hyle-ollama 0.1.0a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hyle_ollama-0.1.0a1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page