Skip to main content

uniko (Python bindings)

Async-first Python SDK for the uniko cognitive memory engine, built with PyO3 and maturin.

Status: alpha. The full async surface (recall, answer, query, ingest, goals/tasks, and the Locy logic surface), the synchronous *_sync skins, and a complete py.typed type stub all ship today.

Install

pip install uniko          # CPU
pip install uniko-cuda     # NVIDIA CUDA, Linux x86_64
pip install uniko-metal    # Apple Silicon, macOS arm64

Install exactly one — all three provide the uniko import and cannot coexist.

Building locally

# from bindings/uniko-py/ (uv-managed)
uv run maturin develop
uv run python -c "import uniko; print(uniko.__file__)"

A C/C++ toolchain and protobuf-compiler (protoc) must be on PATH — the uniko stack statically links the ONNX runtime (via uni-db's provider-onnx) and several native dependencies. On Linux, mold is also required: the workspace's .cargo/config.toml forces it as the link backend.

Example

import asyncio
import uniko


async def main() -> None:
    uni = await uniko.Uniko.in_memory()
    agent = uni.agent("assistant")
    session = agent.session("conversation-1")
    await session.observe(uniko.Turn("user", "I prefer tea over coffee."))
    bundle = await agent.recall("beverage preference")
    for item in bundle.items:
        print(item.content)


asyncio.run(main())

Every verb also has a blocking *_sync twin for callers outside an event loop (scripts, notebooks, sync handlers). It blocks on the shared runtime and releases the GIL across the Rust work:

import uniko

uni = uniko.Uniko.in_memory_sync()
agent = uni.agent("assistant")
session = agent.session("conversation-1")
session.observe_sync(uniko.Turn("user", "I prefer tea over coffee."))
for item in agent.recall_sync("beverage preference").items:
    print(item.content)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uniko-0.2.1.tar.gz (808.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

uniko-0.2.1-cp310-abi3-win_amd64.whl (42.5 MB view details)

Uploaded CPython 3.10+Windows x86-64

uniko-0.2.1-cp310-abi3-manylinux_2_28_x86_64.whl (46.0 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64

uniko-0.2.1-cp310-abi3-manylinux_2_28_aarch64.whl (48.2 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

uniko-0.2.1-cp310-abi3-macosx_11_0_arm64.whl (39.6 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file uniko-0.2.1.tar.gz.

File metadata

  • Download URL: uniko-0.2.1.tar.gz
  • Upload date:
  • Size: 808.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for uniko-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ddaf58ef8e96a06f22b3515e2d9b18e3b4b8e55d3e5d3d0e806361383fdd6fb8
MD5 6818cdce26b8cf96d207521761561f3d
BLAKE2b-256 dd18822c7fe0251b911d06e84fb26e30bb60db383382a1371d1936123d8d18b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for uniko-0.2.1.tar.gz:

Publisher: release.yml on rustic-ai/uniko

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file uniko-0.2.1-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: uniko-0.2.1-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 42.5 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for uniko-0.2.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 cd78853a798c567cf765fb715b7e71efa06c5bed219775a7ce41b7a190e4dd8e
MD5 ae29ac7ab75041bfa3600b003ebae958
BLAKE2b-256 5c7a8f6eb41f0e179b37a6d65e6ef3d0bb33aa3990306828f295b632a2f592be

See more details on using hashes here.

Provenance

The following attestation bundles were made for uniko-0.2.1-cp310-abi3-win_amd64.whl:

Publisher: release.yml on rustic-ai/uniko

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file uniko-0.2.1-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for uniko-0.2.1-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d0eb0977cfa6f50bf05d8cdd07d06f1d37510e77659bcd7f7d1b08b44461f9d0
MD5 8183173db75627da3af0e01a4e074bdc
BLAKE2b-256 f8a324a38fd057ea2f4ef9066ecd296465bcef2e01fd78e8e9bae1fd06bf60f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for uniko-0.2.1-cp310-abi3-manylinux_2_28_x86_64.whl:

Publisher: release.yml on rustic-ai/uniko

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file uniko-0.2.1-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for uniko-0.2.1-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 43cb5eaa1292fbb933a784893e5eeaa361e61cf1f72234a484378bc372648a52
MD5 b093e2032aa0d4d35862b4a44ec721b8
BLAKE2b-256 06a2d20894c95c4e704e21b6f993c0ca3db08821f85296c069231e5b32738c72

See more details on using hashes here.

Provenance

The following attestation bundles were made for uniko-0.2.1-cp310-abi3-manylinux_2_28_aarch64.whl:

Publisher: release.yml on rustic-ai/uniko

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file uniko-0.2.1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for uniko-0.2.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4649e696ee3d33c44b4b6075b31fc4ecfafac19e6e958d193091937cdd9b2ad0
MD5 5a4ef67456cf0d23ab48c05a49c7f8f3
BLAKE2b-256 07a9bee9dc1340f7288c478e060305ab2b119ed82e900f2425ce90a745cdfbb6

See more details on using hashes here.

Provenance

The following attestation bundles were made for uniko-0.2.1-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on rustic-ai/uniko

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.1 This release

5 files

0.2.0

5 files

0.0.0

2 files

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