Skip to main content

Python binding for Ailoy runtime APIs

Project description

ailoy-py

Python binding for Ailoy runtime APIs.

See our documentation for more details.

Install

pip install ailoy-py

Quickstart

from ailoy import Runtime, Agent, LocalModel

# The runtime must be started to use Ailoy
rt = Runtime()

# Defines an agent
# During this step, the model parameters are downloaded and the LLM is set up for execution
with Agent(rt, LocalModel("Qwen/Qwen3-0.6B")) as agent:
    # This is where the actual LLM call happens
    for resp in agent.query("Please give me a short poem about AI"):
        agent.print(resp)

# Stop the runtime
rt.stop()

Building from source

Prerequisites

  • Python 3.10 or higher
  • C/C++ compiler (recommended versions are below)
    • GCC >= 13
    • LLVM Clang >= 17
    • Apple Clang >= 15
    • MSVC >= 19.29
  • CMake >= 3.28.0
  • Git
  • OpenSSL
  • Rust & Cargo >= 1.82.0
  • OpenMP
  • BLAS
  • LAPACK
  • Vulkan SDK (if you are using vulkan)

Setup development environment

pip install -e .

Generate wheel

python -m build -w

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

ailoy_py-0.0.6-cp313-cp313-win_amd64.whl (6.2 MB view details)

Uploaded CPython 3.13Windows x86-64

ailoy_py-0.0.6-cp313-cp313-manylinux_2_28_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

ailoy_py-0.0.6-cp313-cp313-macosx_14_0_arm64.whl (8.6 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

ailoy_py-0.0.6-cp312-cp312-win_amd64.whl (6.2 MB view details)

Uploaded CPython 3.12Windows x86-64

ailoy_py-0.0.6-cp312-cp312-manylinux_2_28_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

ailoy_py-0.0.6-cp312-cp312-macosx_14_0_arm64.whl (8.6 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

ailoy_py-0.0.6-cp311-cp311-win_amd64.whl (6.2 MB view details)

Uploaded CPython 3.11Windows x86-64

ailoy_py-0.0.6-cp311-cp311-manylinux_2_28_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

ailoy_py-0.0.6-cp311-cp311-macosx_14_0_arm64.whl (8.6 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

ailoy_py-0.0.6-cp310-cp310-win_amd64.whl (6.2 MB view details)

Uploaded CPython 3.10Windows x86-64

ailoy_py-0.0.6-cp310-cp310-manylinux_2_28_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

ailoy_py-0.0.6-cp310-cp310-macosx_14_0_arm64.whl (8.6 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

File details

Details for the file ailoy_py-0.0.6-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: ailoy_py-0.0.6-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 6.2 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for ailoy_py-0.0.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 30c540dfb5982c71256de5d09520a7847c2e41ca56e50634d0f5abb1366a1f87
MD5 68ff0a1a862139ef959886d02ba0b99e
BLAKE2b-256 36b9c7e4cdba60a0be85660ffb146ddb44613bf4a0e471c294dae32e35b6e86f

See more details on using hashes here.

File details

Details for the file ailoy_py-0.0.6-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.0.6-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ae5f72c30d859b20626c224c17307eed2e70b9b12287ffcd31b9fe35d3808b86
MD5 1475201a6e971de0018f441e1509c305
BLAKE2b-256 c4324bb3e53e4a83a44712184a86f0031ab457d83d05fe4f2b90d76b00c4c649

See more details on using hashes here.

File details

Details for the file ailoy_py-0.0.6-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.0.6-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 b28de585ebedd26bae08f01b3bf68a30dd6848342d5004692ce0bc7c20fc7bc1
MD5 ea28752d37986e6295bff16a101f37dd
BLAKE2b-256 664ffb106aee931742d0def43609fcf81b9545994767a3862363270a2a634a8c

See more details on using hashes here.

File details

Details for the file ailoy_py-0.0.6-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: ailoy_py-0.0.6-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 6.2 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for ailoy_py-0.0.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d97faa2ded651ac6a1a8655fc88d15d72d37fd0c019d04e4db5ebb9a9949f606
MD5 70f28d644b586e78ae905bed67892398
BLAKE2b-256 8c1ab844d676ce2db4a81d56dfa89a65b9d321a6d3e7585237382a81131d1807

See more details on using hashes here.

File details

Details for the file ailoy_py-0.0.6-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.0.6-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6fd602a2206026f7858ff4c2e52883ebec475c0fb7398012d85c1cba081e82cc
MD5 cb96445850bf09b04d7e883e60789fdd
BLAKE2b-256 04ec2ff7eff23834d047417461bbf878ef1eb102aa2a7de68eac883c79fa0fa7

See more details on using hashes here.

File details

Details for the file ailoy_py-0.0.6-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.0.6-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 627f49e178169b60db489d4da09171bf8f287800a8b8725a93c6f2e0db978560
MD5 34fef1a59b6e712b871cdc3a1b1369f7
BLAKE2b-256 b010b87e2a229cf023ce8ba76601332ed076bebe8a97709904a000e68e4436bf

See more details on using hashes here.

File details

Details for the file ailoy_py-0.0.6-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: ailoy_py-0.0.6-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 6.2 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for ailoy_py-0.0.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5fcef70cc44d95ba9dfcd2bdad4864cd26e3616fabeb6ee167e42927e669ef8c
MD5 66485979ad609e52f41181dc0f4ddcda
BLAKE2b-256 dbd19297e2c297a2635741b89903d90d2038af2f77a647d2d38265305b5c85cc

See more details on using hashes here.

File details

Details for the file ailoy_py-0.0.6-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.0.6-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0864cdf10d79dc12c7d47516018b5040352a4637a002b17988be3d027cae5d09
MD5 9a2824737904dfb822c218871cf1b740
BLAKE2b-256 473d438e7c474fea8bd339aa72af6da66d26aa2e9350ab31198ab195eb37be8d

See more details on using hashes here.

File details

Details for the file ailoy_py-0.0.6-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.0.6-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 364279c62b215d9271d32af6c1d9157a0a285e32308627dfa8ea4bed2ec24b39
MD5 75232e67170df0b130a1d11438db17e5
BLAKE2b-256 632fefe7622844746ee515b028dd704566624f22a6e773019d1e0b29d5202a07

See more details on using hashes here.

File details

Details for the file ailoy_py-0.0.6-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: ailoy_py-0.0.6-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 6.2 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for ailoy_py-0.0.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 505f64316ae1c84b3d878fd7567a03a19f3df52fbaadaadef6f4e997c03196e2
MD5 81b3b1c94ddaed89b0f1b02bce1d52b3
BLAKE2b-256 3e2b1ab9210a8d5affb9ea3ccad49110884842b70f665838a94c14613d2ccf5a

See more details on using hashes here.

File details

Details for the file ailoy_py-0.0.6-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.0.6-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 105c053f3cf0e9e62b9e4d9785badb81e8431a836a10da6833555edc7a2a8de8
MD5 c05580ffb05cf17338d65388818674c5
BLAKE2b-256 2423805c6f3a9e78f20452455f31b524748ff0474b82a5a66f79c7af05ecc91d

See more details on using hashes here.

File details

Details for the file ailoy_py-0.0.6-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.0.6-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 b9faef171241c7ac33d863db5ffd47b58cc01c1b77001f9640ecda11d5e5dd58
MD5 8fa59902c7fd98a796be5298d5b10de2
BLAKE2b-256 1fe77a1ab1253b88ef0efd492b2334b67ad62af23e869165c38443e17759cdbf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page