Skip to main content

Pylon

Async PostgreSQL mapper for the JALDIS platform. Provides a schema definition DSL, an PyQL query language, OpenSearch integration, and vector index support.

Requirements

  • Python 3.13+
  • PostgreSQL 18+

Installation

pip install pylon-db

For the native Rust client — PyQL queries from Rust, no Python interpreter involved — add the pylon-db-client crate instead:

[dependencies]
pylon-db-client = "0.6"

It is published as pylon-db-client and imported as pylon_client; see the Rust client reference.

Configuration

Pylon is configured programmatically via Config and its child dataclasses.

import os
from pylon import Client, Config, DatabaseConfig, SearchConfig, ModelConfig

client = Client(
    config=Config(
        database=DatabaseConfig(
            host="localhost",
            port=5432,
            name="mydb",
            user="myuser",
            password=os.environ["PYLON_DB_PASSWORD"],
        ),
        search=SearchConfig(
            host="localhost",
            port=9200,
            password=os.environ["PYLON_SEARCH_PASSWORD"],
        ),
        models=ModelConfig(
            api_style="openai",
            api_url="https://api.openai.com",
            model="text-embedding-3-small",
            secret=os.environ["OPENAI_API_KEY"],
        ),
    )
)

A pylon.toml file can be used instead via load_config():

from pylon import Client
from pylon.config import load_config

client = Client(config=load_config())

See the configuration reference for the full pylon.toml schema.

Development

Pylon is a Rust workspace plus a Python package; the two are joined by a PyO3 extension module (pylon._core) built with maturin.

Building

maturin develop      # builds pylon._core into the active virtualenv
pip install -e ./    # maturin develop alone can leave a stale .so behind

The test suite fails fast with a "rebuild it" message if pylon._core is older than the Python code being tested against it, rather than silently skipping the affected tests.

Testing

python -m pytest                        # Python suite (live-DB tests excluded)
cargo test --workspace --exclude pylon-py   # Rust suite

--exclude pylon-py is required, and is not the same caveat as excluding it from linting. PyO3 extension modules link against the interpreter through build configuration that only maturin supplies, so a plain cargo build or cargo test on that crate fails at the link step with undefined symbols (_PyList_New, _Py_NoneStruct, …). It still type-checks fine, which is why CI runs cargo clippy -p pylon-py --lib separately — that crate is the only consumer of several pylon-core/pylon-pgcon APIs, so skipping it entirely would let a signature change break the extension unnoticed.

Live-Postgres tests are opt-in and need a throwaway database:

export PYLON_PGCON_TEST_DSN=postgresql://postgres:postgres@localhost:5432/pylon_live_test
cargo test --workspace --exclude pylon-py -- --ignored --test-threads=1
python -m pytest -m live_db

These create and drop schemas freely — never point them at a real database.

Linting

cargo clippy --workspace --exclude pylon-py --all-targets -- -D warnings
cargo clippy -p pylon-py --lib -- -D warnings
cargo fmt --check
ruff check pylon tests
ruff format --check pylon tests

Metadata

Release files for pylon-db 0.6.0

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

Source distribution (sdist)

Source distribution for pylon-db 0.6.0
File Size Uploaded
pylon_db-0.6.0.tar.gz 1.1 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for pylon-db 0.6.0
File
pylon_db-0.6.0-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details
pylon_db-0.6.0-cp315-cp315-manylinux_2_28_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.28+ x86-64 Details
pylon_db-0.6.0-cp315-cp315-manylinux_2_28_aarch64.whl CPython 3.15 CPython 3.15 Linux glibc 2.28+ ARM64 Details
pylon_db-0.6.0-cp315-cp315-macosx_11_0_arm64.whl CPython 3.15 CPython 3.15 macOS 11.0+ ARM64 Details
pylon_db-0.6.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
pylon_db-0.6.0-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details
pylon_db-0.6.0-cp314-cp314-manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ ARM64 Details
pylon_db-0.6.0-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details
pylon_db-0.6.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
pylon_db-0.6.0-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details
pylon_db-0.6.0-cp313-cp313-manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64 Details
pylon_db-0.6.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details

Total release size: 76.6 MB

Release files / pylon_db-0.6.0.tar.gz

Download URL pylon_db-0.6.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
bf5ba14039412a0856d669fd184ff55bd183a6ff3b5ec1ba8268591b8cbab8c5
BLAKE2b-256 checksum
How to use checksums
94d2daededf73cf9c84c62abea3ea1381d82fd363a7de9defd7a9695c766c1f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Release files / pylon_db-0.6.0-cp315-cp315-win_amd64.whl

Download URL pylon_db-0.6.0-cp315-cp315-win_amd64.whl
Size 5.9 MB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
f5c1276c67e6c8e3efc9d0d27834673dd3019bce9ec9959686cde2a5cd4d9b06
BLAKE2b-256 checksum
How to use checksums
e6e22756dbf859327b842ab50bb1ff1bb402fc5206ae66712ca4c0bfcbd9a9af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Release files / pylon_db-0.6.0-cp315-cp315-manylinux_2_28_x86_64.whl

Download URL pylon_db-0.6.0-cp315-cp315-manylinux_2_28_x86_64.whl
Size 6.6 MB
Tags CPython 3.15 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
7c7abd66be0b0aaaa6987f1de2a33e8c56411ad3583844f9b00e571bceafd7e2
BLAKE2b-256 checksum
How to use checksums
72747e8d3b82d1a902eb65eb05c6c8fa32d4fbe4e0a482062b435464a50eecb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Release files / pylon_db-0.6.0-cp315-cp315-manylinux_2_28_aarch64.whl

Download URL pylon_db-0.6.0-cp315-cp315-manylinux_2_28_aarch64.whl
Size 6.7 MB
Tags CPython 3.15 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
1b1b7d5eb511ffafe76a4dc2d53a84641343c797dcb22a827162fbd7bfbe2c02
BLAKE2b-256 checksum
How to use checksums
08f0a479d9702f3eb4a6b12acb139ba39bcf928f75a653ca5cb771e7b8157ed2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Release files / pylon_db-0.6.0-cp315-cp315-macosx_11_0_arm64.whl

Download URL pylon_db-0.6.0-cp315-cp315-macosx_11_0_arm64.whl
Size 6.0 MB
Tags CPython 3.15 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
078ce193afd281e8008b06a398554a5b6ddd7140a14f01345fb19d3f2b07b077
BLAKE2b-256 checksum
How to use checksums
0c46bf7854661b1643ab50b4a3ed32fba8fecc2a6de921ac9aa8914a67df1e0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Release files / pylon_db-0.6.0-cp314-cp314-win_amd64.whl

Download URL pylon_db-0.6.0-cp314-cp314-win_amd64.whl
Size 5.9 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
878d6e8deb7cd8af5853c301a72b3ec8920726e30f424ac925912c4cf4f496ba
BLAKE2b-256 checksum
How to use checksums
f0d8b29ba5db8aa15e4f2af45fabaa68f24fcb36690c461ea8a0e158446e2ebe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Release files / pylon_db-0.6.0-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL pylon_db-0.6.0-cp314-cp314-manylinux_2_28_x86_64.whl
Size 6.6 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b8193056a174fef9fac38c7dd820d32bc60821e038ad77bfdc2320c031cd85b6
BLAKE2b-256 checksum
How to use checksums
d0f17d23c0f20c03b3a83811d2b37d0dfffa1d976e97fac710268792f8d4e9e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Release files / pylon_db-0.6.0-cp314-cp314-manylinux_2_28_aarch64.whl

Download URL pylon_db-0.6.0-cp314-cp314-manylinux_2_28_aarch64.whl
Size 6.7 MB
Tags CPython 3.14 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
95916c9475960d4c162a270ed5f1feb565a56e74125edcffbe912645e40516d6
BLAKE2b-256 checksum
How to use checksums
f2c65e332e5fd92603fc100ed8c834b68eab693be5c80c9c7f7964a64e66197a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Release files / pylon_db-0.6.0-cp314-cp314-macosx_11_0_arm64.whl

Download URL pylon_db-0.6.0-cp314-cp314-macosx_11_0_arm64.whl
Size 6.0 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
be23a61486f3ebc160498ad549277fd08c60f348dd4b0597f905794d276670cb
BLAKE2b-256 checksum
How to use checksums
716c64c52bf7b38440613d1d1530c552c7dca9782516fbdb8dc13fa11533cb9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Release files / pylon_db-0.6.0-cp313-cp313-win_amd64.whl

Download URL pylon_db-0.6.0-cp313-cp313-win_amd64.whl
Size 5.9 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
7f339743bb9a6e1a74b307a142a995911684f4bace063d02bcdcf8360f9e95f2
BLAKE2b-256 checksum
How to use checksums
9f547b0fb9057ef9472e58a22c534750800b613b7190518bc3a1747343c6ca9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Release files / pylon_db-0.6.0-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL pylon_db-0.6.0-cp313-cp313-manylinux_2_28_x86_64.whl
Size 6.6 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
50e0938dcca1a10e771e97e8df54d595360a6155c33ee317663e2edf27b4c411
BLAKE2b-256 checksum
How to use checksums
1319aae6c0ee38121e4ed48709359642013aab059a9073ca30bfd8a7680f93e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Release files / pylon_db-0.6.0-cp313-cp313-manylinux_2_28_aarch64.whl

Download URL pylon_db-0.6.0-cp313-cp313-manylinux_2_28_aarch64.whl
Size 6.7 MB
Tags CPython 3.13 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
e5fd9b9e958e55d06e1eb4f530065c36ba03e86c578d5d6d37fced401e1b766b
BLAKE2b-256 checksum
How to use checksums
faf63d045f02d4470bf9fc6a6ebff5edeb8e8dbf258ec5033dcbcabe181b4b8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Release files / pylon_db-0.6.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL pylon_db-0.6.0-cp313-cp313-macosx_11_0_arm64.whl
Size 6.0 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b191676cb4943e8e446c78a9cbefee6405950a69f03fbb537f5d3adb1ab7c9d8
BLAKE2b-256 checksum
How to use checksums
fd7e6b570dfa4f239b3ec8ef3e55eb529536b9f38411d7650021e4cb0175c8bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Release history Release notifications | RSS feed

0.7.0

13 release files

This release

0.6.0 This release

13 release files

0.5.0

9 release files

0.4.0

9 release files

0.3.0

9 release files

0.2.0

9 release files

0.1.0

9 release 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