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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hyle_ollama-0.1.0a1.tar.gz.
File metadata
- Download URL: hyle_ollama-0.1.0a1.tar.gz
- Upload date:
- Size: 20.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b94e089f62fbd1d86f8944ed241f5d8ed1278e1abb59f4f88304c521802ead86
|
|
| MD5 |
1f44f65676339ea4d160cea4e6f834d1
|
|
| BLAKE2b-256 |
1748d150220600ab1b44d633c428153e6d6aaec93c6f9238c79c7e74f3263d0f
|
Provenance
The following attestation bundles were made for hyle_ollama-0.1.0a1.tar.gz:
Publisher:
release.yml on aekn/hyle
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hyle_ollama-0.1.0a1.tar.gz -
Subject digest:
b94e089f62fbd1d86f8944ed241f5d8ed1278e1abb59f4f88304c521802ead86 - Sigstore transparency entry: 2705523514
- Sigstore integration time:
-
Permalink:
aekn/hyle@5bb7c8f0d9e5fe53d539c3e556437dcf7b59723b -
Branch / Tag:
refs/tags/v0.1.0a1 - Owner: https://github.com/aekn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5bb7c8f0d9e5fe53d539c3e556437dcf7b59723b -
Trigger Event:
push
-
Statement type:
File details
Details for the file hyle_ollama-0.1.0a1-py3-none-any.whl.
File metadata
- Download URL: hyle_ollama-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69736bea1d1310422c2a3d5e4655047cfcef63fe69e0258254536acf2c7f14e4
|
|
| MD5 |
2925a982af643425f2c2754f7935cccf
|
|
| BLAKE2b-256 |
dfd44411ce76bb22f10fc72f23af8d4470031bef5039be48a3bcbb1c85edfd71
|
Provenance
The following attestation bundles were made for hyle_ollama-0.1.0a1-py3-none-any.whl:
Publisher:
release.yml on aekn/hyle
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hyle_ollama-0.1.0a1-py3-none-any.whl -
Subject digest:
69736bea1d1310422c2a3d5e4655047cfcef63fe69e0258254536acf2c7f14e4 - Sigstore transparency entry: 2705523559
- Sigstore integration time:
-
Permalink:
aekn/hyle@5bb7c8f0d9e5fe53d539c3e556437dcf7b59723b -
Branch / Tag:
refs/tags/v0.1.0a1 - Owner: https://github.com/aekn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5bb7c8f0d9e5fe53d539c3e556437dcf7b59723b -
Trigger Event:
push
-
Statement type: