Skip to main content

lirays (Python)

Python client for LiRAYS SCADA powered by the Rust lirays crate.

Features

  • Same high-level API surface as the Rust client.
  • Connect with or without PAT auth.
  • Namespace operations: list, create, delete, metadata edit.
  • Value operations: get/set for integer, float, text, and boolean.
  • Bulk creation from JSON schema.
  • Realtime subscription stream for variable values.
  • Optional insecure TLS mode for local self-signed certificates.

Installation

pip install lirays

Quick Start

from lirays import Client, ConnectionOptions, FloatVar

opts = ConnectionOptions("127.0.0.1", 8245, tls=False, pat_token=None)
client = Client.connect_with_options(opts)

client.create_folders(["demo"], timeout_ms=8000)
client.create_float_variables([FloatVar(name="signal")], parent_id="/demo", timeout_ms=8000)
print(client.get_values(["/demo/signal"], timeout_ms=8000))

client.disconnect()

Self-signed TLS (local/dev only)

from lirays import ConnectionOptions, Client

opts = ConnectionOptions("127.0.0.1", 8245, tls=True, allow_insecure_tls=True)
client = Client.connect_with_options(opts)

Development

python -m pip install --upgrade pip maturin pytest
maturin develop
pytest -q

Demo Scenarios

Demo scripts are under demo/ and mirror the Rust demos:

  • basic
  • bulk
  • subscribe
  • tree_stress
  • data_stress
  • all

Release

Push a tag like v0.1.0 to trigger GitHub Actions publishing to PyPI via Trusted Publishing (OIDC).

License

MIT (LICENSE).

Release files for lirays 0.1.2

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

Source distribution (sdist)

Source distribution for lirays 0.1.2
File Size Uploaded
lirays-0.1.2.tar.gz 14.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for lirays 0.1.2
File Interpreter ABI Platform
lirays-0.1.2-cp39-abi3-manylinux_2_38_x86_64.whl CPython 3.9 abi3 Linux glibc 2.38+ x86-64 Details

Total release size: 16.8 MB

Release files / lirays-0.1.2.tar.gz

Download URL lirays-0.1.2.tar.gz
Size 14.9 MB
Tags Source
SHA-256 checksum
How to use checksums
e97010e59b04a7bab5a5bed51a41d62de45c642e07b72214e2c3cb2567f491ff
BLAKE2b-256 checksum
How to use checksums
d0666c5af0a4f4e99087ddbdc250e4a2f33303f9fea479c6f784990cb69936af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 19, 2026.

Transparency log

Release files / lirays-0.1.2-cp39-abi3-manylinux_2_38_x86_64.whl

Download URL lirays-0.1.2-cp39-abi3-manylinux_2_38_x86_64.whl
Size 2.0 MB
Tags CPython 3.9 Linux glibc 2.38+ x86-64 abi3
SHA-256 checksum
How to use checksums
988862e1c038528e1e208c5d5dc6f5566af2d67ddcd02feb4974ed44656d8f6c
BLAKE2b-256 checksum
How to use checksums
425131749fdad0bf16a048a6f1ff40d202e2bd21df5779fe1e18e58290b90817
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 19, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.0

1 release file

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