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.5-cp310-abi3-win_amd64.whl (18.1 MB view details)

Uploaded CPython 3.10+Windows x86-64

ailoy_py-0.2.5-cp310-abi3-manylinux_2_28_x86_64.whl (18.2 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64

ailoy_py-0.2.5-cp310-abi3-macosx_15_0_arm64.whl (13.0 MB view details)

Uploaded CPython 3.10+macOS 15.0+ ARM64

File details

Details for the file ailoy_py-0.2.5-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: ailoy_py-0.2.5-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 18.1 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ailoy_py-0.2.5-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b80133fe3e80c3fca8658074ecc67bd81358e17e5d2279e53e273c97a3bf0a63
MD5 2addbb1571bdd8db2baf2f0bb8afcb0a
BLAKE2b-256 30efaf8d68578e604d4c034c3280931043aab7203ecec13b067976413d81903c

See more details on using hashes here.

Provenance

The following attestation bundles were made for ailoy_py-0.2.5-cp310-abi3-win_amd64.whl:

Publisher: build_python_windows.yaml on brekkylab/ailoy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ailoy_py-0.2.5-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.5-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 555399d5bf82e462e094ac1591d54a15f566508a3719287e0bc18bc78a00cd84
MD5 bdd882be3ede6125eeee2e7c7ec7f0ef
BLAKE2b-256 0a47dbf09908b9d171eab351479b671ba325a5dc0f33c0cf8dae41fdbea42d65

See more details on using hashes here.

Provenance

The following attestation bundles were made for ailoy_py-0.2.5-cp310-abi3-manylinux_2_28_x86_64.whl:

Publisher: build_python_linux.yaml on brekkylab/ailoy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ailoy_py-0.2.5-cp310-abi3-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for ailoy_py-0.2.5-cp310-abi3-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 0f9608a1bea432c7b8f959c76a94a7362520c7b07521e906cfbef93075579ba2
MD5 eec7e067beafa0407523844252c7327d
BLAKE2b-256 f6a104d2e4e2756bd2a2f7ec38251e95ba822ad604871d646b18cbd9e21ce349

See more details on using hashes here.

Provenance

The following attestation bundles were made for ailoy_py-0.2.5-cp310-abi3-macosx_15_0_arm64.whl:

Publisher: build_python_macos.yaml on brekkylab/ailoy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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