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

Uploaded CPython 3.14Windows x86-64

ailoy_py-0.2.0-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.0-cp314-cp314-macosx_15_0_arm64.whl (10.7 MB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

ailoy_py-0.2.0-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.0-cp313-cp313-macosx_15_0_arm64.whl (10.7 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

ailoy_py-0.2.0-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.0-cp312-cp312-macosx_15_0_arm64.whl (10.7 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

ailoy_py-0.2.0-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.0-cp311-cp311-macosx_15_0_arm64.whl (10.7 MB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

ailoy_py-0.2.0-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.0-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.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: ailoy_py-0.2.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 17.2 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.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 722372181033cb8f9ed7bdb873a2008b718cd11d48d9f3c843edc1f84f04c13a
MD5 3c65bbccaabe3779446f3042327f1a30
BLAKE2b-256 62247225856ea1e80651cb4095f975098b8aa95fbbbf263727756c1ea948b309

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.2.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 edcb58dbdacf5e2fa95238b10b2f4a0c22855a98c9952c8dd8e8d7aaffedc151
MD5 ea3db845f96e86cb37a5ddce6d2314ce
BLAKE2b-256 eb1a1e266c984a58945eef144afc4f4cfbc794355fc454fb80f4b3fd113355ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.2.0-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 aeac0e281e8c9889d5e16c0e291a4940f103841a38b6a622bc6b5a7fba35efb1
MD5 e7f8a1c7bd27717192d656c276821418
BLAKE2b-256 78c572d38e863a70ca6863de065f3a0e8b2d5bc65794e933a0dc9439346263ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ailoy_py-0.2.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 16.6 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.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 87e70c6566bc21daed8857ef6a5ed60d1a942cc13f98985cdb6e68220aa84dc9
MD5 959c109941793957840337c195f701f2
BLAKE2b-256 02c79323cb4720241f35fd11f99d55448af7e3d27dff0a811df323725b76ae4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.2.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f4307b1ca02f93a24fa06aff5f8e0fc06af482e76868bb795e9e1edd6547b16c
MD5 55a8fab7c1ef8cdc3bbe21ea1b0a3aff
BLAKE2b-256 8791225f7a6a7d04fee6f5f2803df9521079ca2a2f57fbfb08ec9e8a614047b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.2.0-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 a8e16f394c6d887184fb2a5f0df30167d8d21bbcc455167b8dbeaa34e5c54eb8
MD5 1523f041000950022caa615672aa185b
BLAKE2b-256 aad17c2e22b1d95190112f7cf2d3ea9ad0a9ff8618d6abf72ac172ed85c5916a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ailoy_py-0.2.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 16.6 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.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6e4e9083355c6fbe91d0e26132a0e7ec1a6c30b6915233da67a9c869d8634ead
MD5 b911e9d46a9fbc8db507bf6458c01e83
BLAKE2b-256 ac4ace836647fbfbdef159df3494c01b5b15dec25b175e1a9bfb140feafb57da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.2.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c9762e390b8a804df9b5c67365d34f23cf4da8bb1b469a038e8d63d48cc99d58
MD5 abf08444e097f2741d4081cd8c1482ec
BLAKE2b-256 fab9ff3e02022bcfbca296f6627e81a21a73523ace9883712f3dd330afce959b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.2.0-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e26f214d5a2becc2f952d2b64846613adda02a6b489b1b19a7f8ffa61cceaa9d
MD5 ed214a7906a82285030636923a0036dd
BLAKE2b-256 c95338b73c9465c05825576404333b1b168a9b7d405ac91db9cb664c0181cb63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ailoy_py-0.2.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 16.6 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.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4e57bbd22dec9d9092fca3e7b2a76b0db045388c15bb67159512acc12e4856d2
MD5 7f5d2a41953d0fd5290cb531966d029b
BLAKE2b-256 cac436a096de5abf2b1957e6b286949a2351c189c0c81f5f3b184e4c01886ebd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.2.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 430cf8bceff229f48c47e2f5b66268069342d95d68954e584fa45f21b5c742b1
MD5 b809f0fbf54b4ac82327820023141afc
BLAKE2b-256 7ae08539f8bd5b1f94f6fd8531971da48e7313d39275bf9ec199b21c972a5762

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.2.0-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 919b7a6a679ff93277ea292ca56b1223be04792ffe0ef465d910d2127ff20933
MD5 bcb69a3cbb4507634e499af6dc0f3a41
BLAKE2b-256 d549fe2b4b53378e1f2e1fa98aed62b52aa5c9cf26e0f71672fefd14627f7ffa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ailoy_py-0.2.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 16.6 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.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 eec56b22fa9052fc72a35dc84c306e826f656563c7d5be322cd048b3c3b305a8
MD5 cdecd1c0dde16f612ffa963c74fe2fd3
BLAKE2b-256 1006dcb679d6f4811114cb68c0df67078e972ca483ec3dc142bb4c9930376727

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.2.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f2d33a80c17c744a9bb73f535bb8bda0cd45e015e8b6adc0e8318d0a8185031d
MD5 6fdd9fa1f04871dc8ce8a330d49c498f
BLAKE2b-256 5294ad4bba4acac87d2c58b2f362030d778e40d6500a2efc2298301bd57d7a3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ailoy_py-0.2.0-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 86da9f89ff49a2cd3c15deafeefa79e48db7a2f4233cbeddea0749088a270814
MD5 cdcf66b15e7de612bce3be21576733c2
BLAKE2b-256 68cdc1a0561688338a457be384e260bf0c1a61f85d344a6c03dc24ac35db7307

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