Skip to main content

Luxand LLM Python Wrapper

This is the supported, pure Python ctypes wrapper over the public LuxandLLMSDK.h C ABI. It does not bundle native binaries. To run model operations, download a matching Luxand LLM SDK native package separately and point the wrapper at that package with LUXLLM_NATIVE_PATH or configure_native_library(...). This wrapper requires native ABI 0.7 or newer; the guard runs before full native binding/model work.

Install the wrapper version matching the SDK release:

python -m pip install luxand-llm==1.0.1

Contributors testing an edited checkout should install that source explicitly:

python -m pip install -e ./wrappers/python

Point the wrapper at an unpacked Luxand LLM SDK native package before loading a model:

import luxand_llm as luxllm

luxllm.configure_native_library("/path/to/sdk/bin")
luxllm.activate_library()

with luxllm.Model("/path/to/model.gguf") as model:
    with model.create_engine(luxllm.Params().set("MaxParallelSessions", 1)) as engine:
        with engine.create_session() as session:
            session.add(luxllm.Role.USER, "Write one sentence about Paris.")
            result = session.generate(luxllm.Params().set("MaxTokens", 64))
            print(result.text)

For caller-driven batching, session.start() + engine.step() + session.read_text() mirrors the C pull API. Reads return CHUNK, NONE, FINISHED, or FAILED. A session-local runtime failure is a terminal FAILED read and does not interrupt healthy siblings; a shared engine/backend failure raises from engine.step(). High-level generate/stream/batch APIs still raise for their own failed request.

Native loading search order:

  1. configure_native_library(path) or load_native(path).
  2. LUXLLM_NATIVE_PATH.
  3. Package-adjacent library locations.
  4. The platform loader path.

Links:

Metadata

Release files for luxand-llm 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for luxand-llm 1.0.1
File Size Uploaded Provenance
luxand_llm-1.0.1.tar.gz 46.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for luxand-llm 1.0.1
File Interpreter ABI Platform
luxand_llm-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 97.5 kB

Release files / luxand_llm-1.0.1.tar.gz

Download URL luxand_llm-1.0.1.tar.gz
Size 46.0 kB
Tags Source
SHA-256 checksum
How to use checksums
031b0a6e822287020c0600655fde2d0d35f64c09af1f5e4487574c5d44661e05
BLAKE2b-256 checksum
How to use checksums
02ed02dcfdacf555a75ae75813b70a9ba8afcfc63fd99d97a565396a332e9f9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.

Transparency log

Release files / luxand_llm-1.0.1-py3-none-any.whl

Download URL luxand_llm-1.0.1-py3-none-any.whl
Size 51.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9376e15e3c7f21f9979be8c318497346bd09d6893161f08ac95e07b3e08e60c4
BLAKE2b-256 checksum
How to use checksums
706b05dc7dec4e7652cc81c57a1a8326d908c8caabae10b06ada7b3a2689db63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.

Transparency log

Security for luxand-llm 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for luxand_llm-1.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page