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.0.tar.gz (806.2 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.0-cp310-abi3-win_amd64.whl (80.5 MB view details)

Uploaded CPython 3.10+Windows x86-64

uniko-0.2.0-cp310-abi3-manylinux_2_28_x86_64.whl (78.9 MB view details)

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

uniko-0.2.0-cp310-abi3-manylinux_2_28_aarch64.whl (75.9 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

uniko-0.2.0-cp310-abi3-macosx_11_0_arm64.whl (68.5 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: uniko-0.2.0.tar.gz
  • Upload date:
  • Size: 806.2 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.0.tar.gz
Algorithm Hash digest
SHA256 2b207276e2b5ef02e9199f3b6332ce137c7c0b5ba6cff5c798afd7a28bb0d41e
MD5 52f059f6fda58bfe317b769ce9e2299a
BLAKE2b-256 5ac049753a3a23b5dcc248d417f3290c3f1c01cbc4f5dcbcc46080abf4745cc3

See more details on using hashes here.

Provenance

The following attestation bundles were made for uniko-0.2.0.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.0-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: uniko-0.2.0-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 80.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.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5416fdb454f2ef9fe8440472ff12413863654f31d129c4e7f9a9b1cc9ecad8cc
MD5 9917cffc37b6cbc02252284d3280a8f1
BLAKE2b-256 610a28cf8c785631ad29f84616d4d3aa2b482905f9fc107e31360b7df705d456

See more details on using hashes here.

Provenance

The following attestation bundles were made for uniko-0.2.0-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.0-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for uniko-0.2.0-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 24350720cd0044ab937cfba0b36a2425d8b432c2c7650ccc8ac1dbc29f6e7283
MD5 5e29cdd296330ab0a9146dfa387cc927
BLAKE2b-256 8a4ef51f49b515faf9ffbf141a719d119632273d6424862c085aea95e8e95b10

See more details on using hashes here.

Provenance

The following attestation bundles were made for uniko-0.2.0-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.0-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for uniko-0.2.0-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 863f404d965bb2dededebab7ad66ade86f520885eb118720c3b5a184fb6257c0
MD5 9115794e3b1a4146dbf7e56343ffc81d
BLAKE2b-256 a7942b9cd6e114bdc68e1d4a24af93657c3d25d2662577059de9c59c1f9a2f82

See more details on using hashes here.

Provenance

The following attestation bundles were made for uniko-0.2.0-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.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for uniko-0.2.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 01ddadf08130a0fc8195c086548d938a9ef31e7fbe98431597d7889085062efd
MD5 e4f376802c6c67827388095dbfd5282d
BLAKE2b-256 4029e0dd9ca3f3c2a292b9169bbdb27504eb4705446d6ee2d304f5ff6b9959e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for uniko-0.2.0-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

0.2.1

5 files

This release

0.2.0 This release

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