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

Uploaded CPython 3.13Windows x86-64

ailoy_py-0.1.0-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.1.0-cp313-cp313-macosx_14_0_arm64.whl (8.7 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 14.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

ailoy_py-0.1.0-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.1.0-cp311-cp311-macosx_14_0_arm64.whl (8.7 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

ailoy_py-0.1.0-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.1.0-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.1.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: ailoy_py-0.1.0-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.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6c12cfe4c16f2d8315dac8325de416358538fbb14a38cffb0809099eeebdb47b
MD5 8d460555366f066fadb27ef976148e84
BLAKE2b-256 5021e432d50e5bcb20640eec53f6a52b148817ebd1f84f15b872f26f7dd13e90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.1.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fac1a5e208ca0615ed27346aa6cfb0fda7483fa6b2849d15f4316bcf294ffc73
MD5 21af6c791fa5367387d9c81b61628d4b
BLAKE2b-256 115e8c7399b527b17461cf4cceaac0f4a7552f3c744c7428df31f994dbed6914

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.1.0-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 19a6d11e621420d5731f00d8580d8e7d9da164821eeaf8e4f28a183721328aa4
MD5 d19544196bb29bacfca5aa38216e4486
BLAKE2b-256 8d3d8ff1af9d28c57a4cb3059d541d985f0031ddf02c4c0aec2f304eb10e4d6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ailoy_py-0.1.0-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.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3b5fc8f0c62f306c65ed634c10e18cf18edac7aeffc5eec9f851b2a9690a80c8
MD5 7778fe3fe324dcc21e453ed4a5edd9b8
BLAKE2b-256 5a46d47fa226b52ad3822c0584175345382cfa0fce9119642da2a7419d0d4201

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.1.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f4c6458108a914556a117446d7167ae4a252864bb1bfb423b231aa0956086a8d
MD5 38b34c0a3c79e8d1bda87896325bfe86
BLAKE2b-256 4f77c170ba72bb2db41a63530544c2ea3ad0a083ede88a72427f7a890f26feb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.1.0-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ecc29e4119e117cf58311ca9bd1a3a4077c0a8245f3956d25a97ce21753418eb
MD5 1b86f0267d105a585376e93b83bfc226
BLAKE2b-256 859ad612fac976401bea795bc739e739dede675bd215f11041408d7fd18468ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ailoy_py-0.1.0-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.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 304810b6339d03f1887be4eced2d5bd6a685e472a99fd8727ca992b883c2024b
MD5 649f541951d791c3d83fdf6dbdc18e70
BLAKE2b-256 7509feba84c25bc1298dc359a89d351d32fdbe6f714beb454015d57642b74b94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ee5fe20e9c32e03808ba140931639c8ad4d7439986cfe6577225e2eab36d642b
MD5 9dcd911ab753d522c5377f1e57a00ed0
BLAKE2b-256 228750c6aa7d2d750e9093605c679f153ec0ffc695d9657569a3ee6a5fe5de7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.1.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 5c4438af566e73cdf3342d78b44994ec1edb1c94498f38c121618af495b017af
MD5 e37e1fea4ce24f6807fd49e09f4d3d8b
BLAKE2b-256 93b68374ddbbfb3599a131d2e1601675791f8c51fb6cd9cac0ad23fedeeaeba3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ailoy_py-0.1.0-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.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 df34aabe645202dd7a349a9dd58f7fb6e9c1fc655b775212140ef5f473c67dcc
MD5 cbd06dae4bf240f4606dfb85756c5f7c
BLAKE2b-256 7b103716ac90c825bf7e4c5f7a417cf8af9f127684288816195133b4906e1b65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.1.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a24bc28ba55389d42f2371a1d42a7d49a7fc1f38dc5569bacc790e907b1a68a6
MD5 4d9b16a5002886fbe15b728560eadc46
BLAKE2b-256 9e28d1b76f634fbdd59fd84ad001396a28fd6297f7b98ea8b5440c8a7a3bcda7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.1.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ab2d1b15bfd17cc3c1d1e07569cb27d475ca1323b7f23e8e7706b42f961793fc
MD5 edfa3b536beb3daef3140a4aee9dbfea
BLAKE2b-256 b24c41604c5af59eb82a478e016a4822978e5d6a85f05c9ed381c3f2fc5f7161

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