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

Uploaded CPython 3.13Windows x86-64

ailoy_py-0.0.3-cp313-cp313-manylinux_2_28_x86_64.whl (9.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

ailoy_py-0.0.3-cp313-cp313-macosx_14_0_arm64.whl (8.1 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

ailoy_py-0.0.3-cp312-cp312-win_amd64.whl (5.8 MB view details)

Uploaded CPython 3.12Windows x86-64

ailoy_py-0.0.3-cp312-cp312-manylinux_2_28_x86_64.whl (9.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

ailoy_py-0.0.3-cp312-cp312-macosx_14_0_arm64.whl (8.1 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

ailoy_py-0.0.3-cp311-cp311-win_amd64.whl (5.8 MB view details)

Uploaded CPython 3.11Windows x86-64

ailoy_py-0.0.3-cp311-cp311-manylinux_2_28_x86_64.whl (9.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

ailoy_py-0.0.3-cp311-cp311-macosx_14_0_arm64.whl (8.1 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

ailoy_py-0.0.3-cp310-cp310-win_amd64.whl (5.8 MB view details)

Uploaded CPython 3.10Windows x86-64

ailoy_py-0.0.3-cp310-cp310-manylinux_2_28_x86_64.whl (9.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

ailoy_py-0.0.3-cp310-cp310-macosx_14_0_arm64.whl (8.1 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

File details

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

File metadata

  • Download URL: ailoy_py-0.0.3-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 5.8 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.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6aafc7507657883461890f65554f9864c58181060a5b9f5a3f476df817039c7b
MD5 014f4d11bb8d88739e5c35f41a990e41
BLAKE2b-256 b3c080a38d3c44cb77896916bb59ac45b62d4dd6baafe912e1a49a188ad2f292

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.0.3-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0182cb69542a6f4e9545aa3d4cf44df6e6f7b8284d96d77435bd649467b10af9
MD5 5e646d60e86f22602b472baf0f59b8e7
BLAKE2b-256 12ee25777a4c10b7e8a92e53349b064ac54facac0c3ca43c3cb02ce5f8028601

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.0.3-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ea162d7672457f63dbdac598341671adaaa38bdfb6472f2e2cfb6d5d09cf868b
MD5 d95c71691f90c81bf3badc2685483cac
BLAKE2b-256 2615274075aca70ce142d6d1a4146a3229a5267bc97fe90b395b70de2b5a3c96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ailoy_py-0.0.3-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 5.8 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.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 51c19af07f26716fd0ebba38096d57b505582a570794463a8f521b5870cafa4b
MD5 dff680f355089f119ca409c0408d6b38
BLAKE2b-256 aac6db2c2c9896d55b7cc03e65a8f718b8b3542499ce148136abb655686e8ef5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.0.3-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7e496f9545f8b4ef90e0af00dfb59118ff3d1eb14218477a43d3ed45f7e848ae
MD5 64df994b330ee50daf67fa2ed933252b
BLAKE2b-256 3245071b2d3f152195d8cd414b38ee07d51643ca6069f925e054774e2b0824d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.0.3-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 af4fb5a24cb32834bb26534102924d34a6ca41bb426c6bacfc5dac0e4c2a0a76
MD5 912d5ee3045d4f7cf809033ba01765d6
BLAKE2b-256 d1d304ce816780b62576e02bca74448520cd839c79823386c1ca7acc730a5b01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ailoy_py-0.0.3-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 5.8 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.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ef292536c756f0209ae5afed5cd689a72a3e09668e863d56eb3525034e296377
MD5 9309308cea9fe069aea9438e06d68f69
BLAKE2b-256 b83ca06f67447d3300f2e44b19f97d274f21edb4c6cc7aeef88486f76a9cf9be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.0.3-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5144657965499507911f24865ffaf5c22b04ea1a0098091141204f4522f0122a
MD5 a72033b09cfbeb30cf30b32fdb193067
BLAKE2b-256 1b11613462f4fb7b74f015dd496f07e3cca364a738eb2a5d42b1e459423da490

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.0.3-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 279ce9175faf75a0ae7a4c252cd3685e5bc2ef2e17936a490a350b22814e7e8f
MD5 8a0f33d68a9fa03e9e2c28c468feaa3f
BLAKE2b-256 963fdfc9ee92c18b345b606e9c9b5ee9aaead24f07561606c193f58310c033be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ailoy_py-0.0.3-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 5.8 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.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6de25d21875c9f691efad5b771012b5e122bf58069197314c29a9bef38dc8136
MD5 b7a98d0ccbaa601d99832edb6e0b61e2
BLAKE2b-256 3b7afa906a3bded3498a1c5f61bb762590acca888772a5972f9638661741aacc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.0.3-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2edf14644c95c758ef32e4e2ca561169c9518c3a0e0285f730052013a068b2d4
MD5 eaf036642c3b42f469258a553831f610
BLAKE2b-256 684ecb86ccff204d3c805bfb69d19b6553cb9e6866ddc8e18faa3129d59fb04d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.0.3-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 57c2f0ae95b8779161fc5ab93baf2de80157afc7050ad01b1a2ac0cdca978c30
MD5 9696ee7412c4ba1d027e101b54984df9
BLAKE2b-256 51b63bfefb4b1c285849c36f4d2feb671d8dcf761d59c808859169a81dfc5ca3

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