Skip to main content

linaldb-server (Python client)

Python client for LINALDB — a SQL-inspired analytical engine treating vectors, matrices, and tensors as first-class citizens.

Status: functional through checkpoint 5 of PYTHON_R_INTEROP_PLAN.md/execute and /delivery are both implemented and tested against a real server (22 passing pytest tests, plus a real end-to-end example, see below). Not yet published to PyPI.

Talks to a running linal serve instance over its HTTP API (POST /execute for ad-hoc DSL, /delivery/* for real Parquet dataset export) — see ../CONTRACT.md for the exact wire contract this client implements against. No compiled extension; requires linal serve running an engine version >= 0.1.74 (the version that fixed USE <database> sent to /execute to actually persist, and fixed /delivery to honor a non-default database).

Usage

import linaldb_server as linaldb

client = linaldb.connect("http://localhost:8080")
df = client.query("SELECT id, embedding FROM docs WHERE score > 0.8")

dataset = client.dataset("my_dataset")
df = dataset.to_pandas()          # requires the `pandas` extra
table = dataset.to_arrow()        # pyarrow.Table, no extra required

See examples/digit_classification.py for a complete real-data walkthrough: it starts a real linal serve, replays a real UCI handwritten-digits classification workflow through this client, queries the result via /execute, exports the same data via /delivery, and independently recomputes the classification from the raw exported vectors to confirm both paths agree exactly.

Development

pip install -e ".[dev]"
pytest

Requires cargo build --bin linal to have been run in the repo root first — the integration tests and the example script both launch a real linal serve from the built binary (skipped, not failed, if it's missing).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

linaldb_server-0.1.0.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

linaldb_server-0.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file linaldb_server-0.1.0.tar.gz.

File metadata

  • Download URL: linaldb_server-0.1.0.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for linaldb_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 69166e89d0af3a2d711da2fcda8ed6cc70165ce620c5c47a6d225eff9997bc03
MD5 e7cc5617e29adae9f3e635c70750153f
BLAKE2b-256 29e48ed20ebadaebfba0100980e0b0b702dcc1c69bb1a5d5296f6872d872dae9

See more details on using hashes here.

Provenance

The following attestation bundles were made for linaldb_server-0.1.0.tar.gz:

Publisher: pypi-publish-server.yml on gorigami/linaldb

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

File details

Details for the file linaldb_server-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: linaldb_server-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for linaldb_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea6f208704b354aae2aea8fbef4798a45f74767cb7653c88846f52dbb853cc98
MD5 635af843116617aa8d6fc63348d97289
BLAKE2b-256 29a2b258025802a00421927eca9999b5e40776e63767184f33d5c1c3d05735c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for linaldb_server-0.1.0-py3-none-any.whl:

Publisher: pypi-publish-server.yml on gorigami/linaldb

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

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