Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pylair

The Python side of Pylair, a desktop framework for Python and local-AI applications. This package is the runtime that lives inside a Pylair desktop app: it hosts your exposed functions, runs the length-prefixed JSON-RPC protocol over stdio, and reports health and cancellation state to the Rust supervisor.

You don't run it directly — pylair (the CLI) spawns it. In your app:

from pylair import expose

@expose
def add(a: int, b: int) -> int:
    return a + b

@expose
async def chat(prompt: str):
    async for token in my_model.stream(prompt):
        yield token

@exposed functions become typed calls and streams on the TypeScript side (@pylair/client). Streaming is a yield-producing function; cancellation is cooperative.

pylair.Blob returns large binary payloads (generated media, model output, file contents) as a host-served pylair-blob URL instead of base64 in the frame — Blob(data, mime=…) for bytes, Blob.from_path(path, mime=…) for a zero-copy file. The TypeScript side receives a BlobHandle with .url, ranged stream() and release(). See docs/blobs.md in the Pylair repo.

  • Scaffolding: npx create-pylair my-app
  • Dev: pylair dev — supervised runtime, hot reload
  • Build: pylair build — bundles CPython + your deps into a native installer; end users need no Python install

Requires Python 3.12+.

Pylair builds on Tauri but is not affiliated with or endorsed by the Tauri project.

License: MIT OR Apache-2.0.

Metadata

Release files for pylair 0.1.0rc20

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

Source distribution (sdist)

Source distribution for pylair 0.1.0rc20
File Size Uploaded Provenance Actions
pylair-0.1.0rc20.tar.gz 320.6 kB With provenance Details for pylair-0.1.0rc20.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pylair 0.1.0rc20
File Interpreter ABI Platform Actions
pylair-0.1.0rc20-py3-none-any.whl Python 3 none any Details for pylair-0.1.0rc20-py3-none-any.whl

Total release size: 445.6 kB

Release files / pylair-0.1.0rc20.tar.gz

Download URL pylair-0.1.0rc20.tar.gz
Size 320.6 kB
Tags Source
SHA-256 checksum
How to use checksums
743d67e354416e7043ad71b624430317c6494d7890beeb41ec42c3e92a2f6d1f
BLAKE2b-256 checksum
How to use checksums
63d1304744142c992b41b599a309a0d324c90d606adcba1d1e384e827416dd5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 27, 2026.

Transparency log

Release files / pylair-0.1.0rc20-py3-none-any.whl

Download URL pylair-0.1.0rc20-py3-none-any.whl
Size 125.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f20a754ab3bfa3a289d3651948c7bd0789b6285bbdcde5f71e50ebd3d269b14b
BLAKE2b-256 checksum
How to use checksums
f6e0aff245e74c9ada46a0adc9f2f4083b14ee69006c2135f5b99d2bea40a898
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 27, 2026.

Transparency log

Security for pylair 0.1.0rc20

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pylair-0.1.0rc20.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 Nov 27, 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

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