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)

[!WARNING] To build binding, you must change the crate type to cdylib in Cargo.toml.

[lib]
crate-type = ["dylib"] # <- Change this to ["cdylib"]

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.1-cp314-cp314-win_amd64.whl (18.7 MB view details)

Uploaded CPython 3.14Windows x86-64

ailoy_py-0.2.1-cp314-cp314-manylinux_2_28_x86_64.whl (17.4 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

ailoy_py-0.2.1-cp314-cp314-macosx_15_0_arm64.whl (12.2 MB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

ailoy_py-0.2.1-cp313-cp313-win_amd64.whl (18.0 MB view details)

Uploaded CPython 3.13Windows x86-64

ailoy_py-0.2.1-cp313-cp313-manylinux_2_28_x86_64.whl (17.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

ailoy_py-0.2.1-cp313-cp313-macosx_15_0_arm64.whl (12.3 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

ailoy_py-0.2.1-cp312-cp312-win_amd64.whl (18.0 MB view details)

Uploaded CPython 3.12Windows x86-64

ailoy_py-0.2.1-cp312-cp312-manylinux_2_28_x86_64.whl (17.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

ailoy_py-0.2.1-cp312-cp312-macosx_15_0_arm64.whl (12.3 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

ailoy_py-0.2.1-cp311-cp311-win_amd64.whl (18.0 MB view details)

Uploaded CPython 3.11Windows x86-64

ailoy_py-0.2.1-cp311-cp311-manylinux_2_28_x86_64.whl (17.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

ailoy_py-0.2.1-cp311-cp311-macosx_15_0_arm64.whl (12.2 MB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

ailoy_py-0.2.1-cp310-cp310-win_amd64.whl (18.0 MB view details)

Uploaded CPython 3.10Windows x86-64

ailoy_py-0.2.1-cp310-cp310-manylinux_2_28_x86_64.whl (17.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

ailoy_py-0.2.1-cp310-cp310-macosx_15_0_arm64.whl (12.2 MB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

Details for the file ailoy_py-0.2.1-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: ailoy_py-0.2.1-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 18.7 MB
  • Tags: CPython 3.14, 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.2.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 e825416e6ed7178fcc23e8d8edb8db951c40838f6600e9b5e9f982967d559159
MD5 e6f8f4d094ff271b8519c499c1b0ff64
BLAKE2b-256 9f16621fa998f62afe65e7b5d36961b8b03682e23d4fbdf2b370c32274beb4ee

See more details on using hashes here.

File details

Details for the file ailoy_py-0.2.1-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.1-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1b54fdd55f93f6e4e8483c7c60ada70109ef7db6d304ee5bf409c0da912825eb
MD5 6102ed89c7ddfaec2e8f1b2de56ffe62
BLAKE2b-256 059c9c45cb286192be6d95b8d33e490e14287c74208726a747e31b562c0cf13d

See more details on using hashes here.

File details

Details for the file ailoy_py-0.2.1-cp314-cp314-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.1-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 63f8d053822bd593e844791bdc9365e1197117c90e533c572a1a8732d4cf78d8
MD5 27e1177893d17b969fd4305480a585c0
BLAKE2b-256 ea9c12e43e43e735ba94eafdbbb517570dbc7e38ac7f305fd8f2b56613ccacfc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ailoy_py-0.2.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 18.0 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.2.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 58232758a18d73f645d0bbaa05f8bc4592f67909cb8d016340dcbc64804c6cfe
MD5 af4106b3df6a109649135d164cfd1f0c
BLAKE2b-256 5e2f7f26f85710eba95e3269507f1abe6020f8459d2229a6b609571f16b03b15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.2.1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f1a1e1d3f8d465d63d47789ad549998c8b2dbc2bca1dc827e09b47cd83bf32d2
MD5 dcfd96f5bfff5c007cf0413c18134d53
BLAKE2b-256 15db8a045d82e892986610b517e952bd2306df84f5990ae28776850bbd423471

See more details on using hashes here.

File details

Details for the file ailoy_py-0.2.1-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.1-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 68ac865ca55a003175b8d303f754171fe33715d295ecf632737130002c7b62af
MD5 ce8eabe7e787e70c3c2f1f5ff4ad594f
BLAKE2b-256 f0aa349323fbfcd8f93eabb7a5681b1a654d3ba101dacceb9383d080b3c085ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ailoy_py-0.2.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 18.0 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.2.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 be87c4d0a4cf6b1ed7863b9b367ec621eefc2a26f7d0e9ce5e2d12bc0cea5230
MD5 21eb39b036cd658c0dfeec985f65b3ec
BLAKE2b-256 a2f8bc823b376b6db3ce08c5dc72f243948be9986fc73e3b0b761953f33a38bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.2.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 687206df476f985229036e6d2740357c4af458d07dcd76a3090646754ab1c65f
MD5 d34caa513ca7d95fb809f0bb20504ddd
BLAKE2b-256 08f9bf5e85bfadd59e3d3f108a759715201b354bbd70aa252b0eebd1c5013c23

See more details on using hashes here.

File details

Details for the file ailoy_py-0.2.1-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.1-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 2ca81c44ec112bec474981111c26ab4fbc2d8fad61dc90452e6420081ad15cd4
MD5 7abb5970539649f4e0adedfafdaad470
BLAKE2b-256 513db825cc36715ad6ae706f33e3817fd71995e738f2b01383239466e2a60ace

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ailoy_py-0.2.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 18.0 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.2.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7492b1f85889a1a6994c0d8affc086eb037b43b8be3b969d0bfa36eb34cc50ab
MD5 94b64848a446e1fc469f7448f31c13cb
BLAKE2b-256 644ada3fbe834e5b0ac26a30790361281c2fee511ba0c97ca4367cb533970055

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.2.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9f5f7bcd73b6fe77bcfdccb4980fab2f9f3db8011c7461c53d95b9db11354409
MD5 0287ab845c1fc18151186cb2a5b66adc
BLAKE2b-256 66ae623799daa72830e8d94a13301ce1f0e82b909b7617fd96347e2944cb4f44

See more details on using hashes here.

File details

Details for the file ailoy_py-0.2.1-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.1-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 bf9f913e5ab23a873afd72b79e216b1e003fb3084d0b774f13c29877a88fb8d0
MD5 25558a847d9113004e78d62a4dd27200
BLAKE2b-256 d9a14af06cc04bea83bcf09a71a7d4ab707ab7694c9349c27205655e048451ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ailoy_py-0.2.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 18.0 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.2.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 770269cfbbf4a79d12a143a23972794edbe44422a8590ab9baf06853c3bbdec0
MD5 c764719ee568a051fce2508311b1a29d
BLAKE2b-256 f1f478f829a03b5da15aed08445d432b2ad4c17cd7d91df678dfef73c7d43635

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.2.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 94cb318cd570dddbc89bdc313e9c2ba7f4a3071e21e8bc0537c5a1e7fc3e9de8
MD5 4447b37b579c490fed5dc343e6fb3cdb
BLAKE2b-256 5df98e894b1771b81a4e2357a0929ab775f9dc6c28122fcfac967d08e62628d0

See more details on using hashes here.

File details

Details for the file ailoy_py-0.2.1-cp310-cp310-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.1-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 ae077e76bc57f0b530a0039b6211b87696847f5cd1093254438c140c2dd73acb
MD5 49ecabe39e5cb102af9d2c203b574976
BLAKE2b-256 5545e20223a7d076e841df7029316859d219050ae894f80f281fcbde2b0428c4

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