Skip to main content

A lightweight library for building AI applications

Project description

ailoy-py

Ailoy is a lightweight library for building AI applications — such as agent systems or RAG pipelines — with ease. It is designed to enable AI features effortlessly, one can just import and use.

See our documentation for more details.

Install

pip install ailoy-py

Quickstart

Asynchronous version (recommended)

import asyncio

import ailoy as ai


async def main():
    # Create Qwen3-0.6B local LangModel
    model = await ai.LangModel.new_local("Qwen/Qwen3-0.6B")

    # Create an agent using this model
    agent = ai.Agent(model)

    # Ask a prompt and iterate over agent's responses
    async for resp in agent.run("What is your name?"):
        print(resp)


if __name__ == "__main__":
    asyncio.run(main())

Synchronous version

import ailoy as ai


def main():
    # Create Qwen3-0.6B LocalLanguageModel
    model = ai.LangModel.new_local_sync("Qwen/Qwen3-0.6B")

    # Create an agent using this model
    agent = ai.Agent(model)

    # Ask a prompt and iterate over agent's responses
    for resp in agent.run_sync("What is your name?"):
        print(resp)


if __name__ == "__main__":
    main()

Building from source

Prerequisites

  • Rust >= 1.88
  • Python >= 3.10
  • C/C++ compiler (recommended versions are below)
    • GCC >= 13
    • LLVM Clang >= 17
    • Apple Clang >= 15
    • MSVC >= 19.29
  • CMake >= 3.28.0
  • Git
  • OpenMP (required to build Faiss)
  • BLAS (required to build Faiss)
  • LAPACK (required to build Faiss)
  • Vulkan SDK (on Windows and Linux)

Setup development environment

pip install maturin

# This generates `_core.cpython-3xx-darwin.so` under `ailoy/`
maturin develop

Generate wheel

maturin build --out ./dist

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.2.0rc0-cp314-cp314-win_amd64.whl (17.2 MB view details)

Uploaded CPython 3.14Windows x86-64

ailoy_py-0.2.0rc0-cp314-cp314-manylinux_2_28_x86_64.whl (15.1 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

ailoy_py-0.2.0rc0-cp314-cp314-macosx_15_0_arm64.whl (10.7 MB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

ailoy_py-0.2.0rc0-cp313-cp313-win_amd64.whl (16.6 MB view details)

Uploaded CPython 3.13Windows x86-64

ailoy_py-0.2.0rc0-cp313-cp313-manylinux_2_28_x86_64.whl (15.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

ailoy_py-0.2.0rc0-cp313-cp313-macosx_15_0_arm64.whl (10.7 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

ailoy_py-0.2.0rc0-cp312-cp312-win_amd64.whl (16.6 MB view details)

Uploaded CPython 3.12Windows x86-64

ailoy_py-0.2.0rc0-cp312-cp312-manylinux_2_28_x86_64.whl (15.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

ailoy_py-0.2.0rc0-cp312-cp312-macosx_15_0_arm64.whl (10.7 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

ailoy_py-0.2.0rc0-cp311-cp311-win_amd64.whl (16.6 MB view details)

Uploaded CPython 3.11Windows x86-64

ailoy_py-0.2.0rc0-cp311-cp311-manylinux_2_28_x86_64.whl (15.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

ailoy_py-0.2.0rc0-cp311-cp311-macosx_15_0_arm64.whl (10.7 MB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

ailoy_py-0.2.0rc0-cp310-cp310-win_amd64.whl (16.6 MB view details)

Uploaded CPython 3.10Windows x86-64

ailoy_py-0.2.0rc0-cp310-cp310-manylinux_2_28_x86_64.whl (15.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

ailoy_py-0.2.0rc0-cp310-cp310-macosx_15_0_arm64.whl (10.7 MB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

Details for the file ailoy_py-0.2.0rc0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.0rc0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 7237ecbc3dcc5ad722dd0ce6579d73ab84d58ea0651f0e713c12d921c4e951b8
MD5 2503220fae18c752a33662d85fac7537
BLAKE2b-256 c737fafacfa5367648966d5e826b3759b7f9b3d9ed0bc9583458c03e49cf6899

See more details on using hashes here.

File details

Details for the file ailoy_py-0.2.0rc0-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.0rc0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 97378c7f1170d00147a42a03713d426de91cce8093991e45e9bc992f7f4c6c40
MD5 6270202ecd312d94338f45a60ebb0eb7
BLAKE2b-256 b9c32afc6d95c81c4c5cc1ebb8348e3e3bc5db4d17b24e6540206e6443225284

See more details on using hashes here.

File details

Details for the file ailoy_py-0.2.0rc0-cp314-cp314-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.0rc0-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 a60d4b97f8e27a26585f3fdda0a31344e0736c045199d2f897433578bb914baa
MD5 cc5ace32c43d947b1cb399db54c79ff1
BLAKE2b-256 ea1f61509eafaa5c01faaae2da0a1f88170c784d0021e9d6f6f17295b4d5a9b3

See more details on using hashes here.

File details

Details for the file ailoy_py-0.2.0rc0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.0rc0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ef2c036c46398dcf147efe5379dba9574692a087ad9b9c8b4746f1329d7bc1d6
MD5 1e3804028a291aae411090ef617dd98c
BLAKE2b-256 e9f2d6bc130e158b669cd97916a8d580e2c84f65918678fc77b18e49deb7c23a

See more details on using hashes here.

File details

Details for the file ailoy_py-0.2.0rc0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.0rc0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2351d7eb7fd00a4d513ab7abbe72878ada5d9e4079cc43fddaf463e4c250d9c5
MD5 af8d852080840c8c2484b7a04929e20f
BLAKE2b-256 aa7fc6bf760470c010b1f8f44187a530b2f0b743dcd3f3754933ca083f099fb8

See more details on using hashes here.

File details

Details for the file ailoy_py-0.2.0rc0-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.0rc0-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 1d59d39481a137d44a1c8b80eb1068389af0040d18417f42b4ac6f80624f05b9
MD5 0fbe89c22888fe02e9cee2c8dce4783e
BLAKE2b-256 f4a176f4e416a2bbc8308e60c2658161eec4efb6942ac6bad0efe844e4f04217

See more details on using hashes here.

File details

Details for the file ailoy_py-0.2.0rc0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.0rc0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1f5efac64c1f366eff09b7db77c75f70c28eb74aeac4176a66d2089131e38ba0
MD5 ea0664b8988556cf9b07db6e6b2a1717
BLAKE2b-256 f9f7130a396ae9a5a9650a11f76b22db5a0807415e8f8074021245533ab24cc9

See more details on using hashes here.

File details

Details for the file ailoy_py-0.2.0rc0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.0rc0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 016bd336562bf0885a9ac908057b28800ea0f69e886c755f8b0334cdb43e0ff1
MD5 5d3e90afcf7f25584f5a28d64615e91d
BLAKE2b-256 d78ff4a327aa74f0aa64270cf5e6feb01de11916e056cb13cb2cd6aae96e08af

See more details on using hashes here.

File details

Details for the file ailoy_py-0.2.0rc0-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.0rc0-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e6b29a1cb86f75ae31a39a58647e402f462cccf0fe688702ddd9c39bfa68f6b0
MD5 8459d0b2bc8008687ed2d2be425c0529
BLAKE2b-256 8b5af90aadda6161b8db1dfa62b428f89b21ba329ba133a90ba746860e622f3b

See more details on using hashes here.

File details

Details for the file ailoy_py-0.2.0rc0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.0rc0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3392c83c96c7c1242d2dd6f5eee80c4f699f82b76d8b0150da4a7c07116c962f
MD5 c233e17d34f4b3ae52ffa4a5fd7daea3
BLAKE2b-256 1265ce1926f3057d3664aa0b2ac1c4745235c1c1f9528014356130b081fea195

See more details on using hashes here.

File details

Details for the file ailoy_py-0.2.0rc0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.0rc0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 26d3b8388894023c8c089b3d73b29f1a8f73add24fb3345ea893c7de43aa3b87
MD5 fbaf1a85d910c85c8fb59a9e49cf472e
BLAKE2b-256 ce9aa876fb0ebbd9afb2852dfd9c32725a62674a2e265ad36014ce3a2c089890

See more details on using hashes here.

File details

Details for the file ailoy_py-0.2.0rc0-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.0rc0-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 0ddbf11dbbf1c759ee509890cd0999a77b3515f555086cc0d360e06218ba9ad3
MD5 a26cdc27dd983c2431ffcb2729a6af57
BLAKE2b-256 8e0399603a0cb448953337a166e3249572d3e2166b02374ad65d5889598a4af4

See more details on using hashes here.

File details

Details for the file ailoy_py-0.2.0rc0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.0rc0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 19e3ba99e6d7768ffe6dbcbca401f3f336be215a9d38c1b38bff16a0473ee064
MD5 4c95fc98cdaa51c2dcc3865de7abaec9
BLAKE2b-256 b16034d1629c6f3fc24cf4ebeb1a04c5f577311a708631f8271f802b8d5109c2

See more details on using hashes here.

File details

Details for the file ailoy_py-0.2.0rc0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.0rc0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 11c0c993af8dd273a51bbef1a029c8e6e3e62843c3dedfcc0b524141017adad4
MD5 35eee1a9bbaa6763eb98060ca9144185
BLAKE2b-256 40583515e990c7020cfef5275aad7a4a72ccd07ddeae57266e18f41f80f53f20

See more details on using hashes here.

File details

Details for the file ailoy_py-0.2.0rc0-cp310-cp310-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.0rc0-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 357b33c1d45b80a6ae2ce612b9d7eb86cb11abdf1bde235a0cacfcd098017fe5
MD5 f0ccd3b33445b83010d5bbf385e94de7
BLAKE2b-256 cbe6d92da969491e5fb4c845ca942d82f6f457a54826f71b633e041fd7246f33

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