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.5-cp313-cp313-win_amd64.whl (6.2 MB view details)

Uploaded CPython 3.13Windows x86-64

ailoy_py-0.0.5-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.5-cp313-cp313-macosx_14_0_arm64.whl (8.6 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

ailoy_py-0.0.5-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.5-cp312-cp312-macosx_14_0_arm64.whl (8.6 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

ailoy_py-0.0.5-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.5-cp311-cp311-macosx_14_0_arm64.whl (8.6 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

ailoy_py-0.0.5-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.5-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.5-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: ailoy_py-0.0.5-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.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c647bac2e2735017012275cd6492ef08524f01111bbe898a38edda7a8d73777e
MD5 b98c2c800e18e750d7c0dc50ce130ba9
BLAKE2b-256 2b83d70a64aecb009a7c4c1ae372c22826e8527fe6e2dbff3fa74cc29a4c7d20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.0.5-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 829d85ed73f9bad246ca4078a5756b89a69bd667043557291ff47080f1e79129
MD5 c79a56f8c691f16890bb8a3e337000ff
BLAKE2b-256 be4c180ead95ea18c519c6703a26b932cb7a87d0272b92cd18d8d57eea657a31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.0.5-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 950380f011b062f924c7dc295057b05f03962a9aabc7110d3b057679c33c39f4
MD5 35bc3534dbea863779126e6e6424a1bd
BLAKE2b-256 f6cf63b1c42468a0e28f1928402298cf85079c1daea0f3aea61b3e6ec4a09caf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ailoy_py-0.0.5-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.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ac2697ee334d81c18cdbf1e450cfc3da06f003d027966e4533e1364195b04322
MD5 d51a5a5309a0c2a13241e1b43cd5d7bd
BLAKE2b-256 caa93d6fb2327866ff0769a358acac8aec664f2313b40e5b4f180f3fbfad302a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.0.5-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 060bf45e0eeee2e93b03c8e8e12e12395352f77aab004175206adb50d2e6bdb1
MD5 c95d0cd91565155ea6264f7025a6af19
BLAKE2b-256 5c4c0361f66ab5e042aeaf3d22c9b678cb46b2c493c0835e39157a6779740fc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.0.5-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ec805063ad1aedd692c299938fda687f177f5e9856595bc2351639e3a902309f
MD5 297341264438377877f3448ce513f1c2
BLAKE2b-256 154d68eba1197b2a9453caddf998502ef6ec847e7a8b0496be495b5e3834a349

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ailoy_py-0.0.5-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.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cb61083cf86ff051bb9a4e7ee4b7f7f9b807c57d67126aed9f66360e2ac089cb
MD5 02e64c675322f39e1e8dc82f9a338369
BLAKE2b-256 7effc3c9168925d282bc59c3204ebbafb493e1bf717f726f0f842a9c810424cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.0.5-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 58bb7461bbbc72695e536be4513dd201f7fd20fd3c69ab1dc0579f99d04eb698
MD5 dec4111f3a970aed380f3022b1c8d183
BLAKE2b-256 92f1e65f4177a1b8d2ee7948d97b53208b668d5c110782f3fc467fc82f96f9c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.0.5-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 7717866203f4d74b34006f4285803778a0fb4f37e3407d94ca4920a2e57591d8
MD5 91f43a37955d061c267c5113eff7a69d
BLAKE2b-256 7d1b2ea580b0258e286b0c26fea2957c2f08a5c26ce0036cd9592d959fdf053f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ailoy_py-0.0.5-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.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bfc152bfe7b383fb50fd07c1963506929c8a234b1bb02d2fe4cd83cecf28242f
MD5 75bb1c0773be663b00cfa9805e85f6a6
BLAKE2b-256 d61cc3772283fab3a5ff720b70e054893b236d1dec8d1ce7c80f0b120fd31426

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.0.5-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1b9f180c838f677e7676c4149c6f2415a9aae7eee3b6803098735e8d358082b9
MD5 715417a54a1779183dd3aade7e2d5a6c
BLAKE2b-256 ce472cfd0f340f2f61d18171a7e4052ef3ed4810d37d2cf283fd78421853f519

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.0.5-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 869f85f02e4c1796b9113ff4dec75285755a00daa95ab1300910dd3b896940da
MD5 2e093e0805a11485d70a8cb4c3f87473
BLAKE2b-256 4233a5d7ad9ba39ce76817adccfa91b499bbc1ec38391ee3912f458d2e189e56

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