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.9"

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.9.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.9.0
File Size Uploaded Provenance Actions
pylon_db-0.9.0.tar.gz 1.2 MB With provenance Details for pylon_db-0.9.0.tar.gz

Built distributions (wheels)

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

Total release size: 78.9 MB

Release files / pylon_db-0.9.0.tar.gz

Download URL pylon_db-0.9.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
a5af8488945d4651d3e088c85466b35bc0d7ec7912e830ea2f0c6589afb77df9
BLAKE2b-256 checksum
How to use checksums
007ec2782693910aeaa95cecc4c1ac1a32b0cdb04fbf756e53d4910d1c7a320c
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 2, 2026.

Transparency log

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

Download URL pylon_db-0.9.0-cp315-cp315-win_amd64.whl
Size 6.1 MB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
ff10a31df2fd91cc1060550dba557c96691686255ba29a30adf515aec3a33798
BLAKE2b-256 checksum
How to use checksums
3987e9ff9e4f3a5bb524dcec188ba3e3de6670e3376549fb46d0518bc6a0393f
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 2, 2026.

Transparency log

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

Download URL pylon_db-0.9.0-cp315-cp315-manylinux_2_28_x86_64.whl
Size 6.7 MB
Tags CPython 3.15 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
9944c919bbba6a040d75c4e80f8f6a73439af07aae72461e82216664f75b8724
BLAKE2b-256 checksum
How to use checksums
dd7a379f500240d5a2dfd40aa228b0f0237cc9d4f934031adf18b55cdcdfe3aa
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 2, 2026.

Transparency log

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

Download URL pylon_db-0.9.0-cp315-cp315-manylinux_2_28_aarch64.whl
Size 6.9 MB
Tags CPython 3.15 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
a47e97acdcce807b10c703182c480c343b1bf30f0c569cb5745e8297e548e7d6
BLAKE2b-256 checksum
How to use checksums
9fddfd354cc067f7ce0deeb011cee9972a13ef0848e6e8da60d654c56c2f45c6
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 2, 2026.

Transparency log

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

Download URL pylon_db-0.9.0-cp315-cp315-macosx_11_0_arm64.whl
Size 6.2 MB
Tags CPython 3.15 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5df90ad0ca9d126fe28ffb0e1f4d8db38672b4d7a40d2ad0397253bc21e1413c
BLAKE2b-256 checksum
How to use checksums
aa6772f6fddd8a6b782b5d0f499e5723dbe4f18f56e6962a075ffe316e6987b8
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 2, 2026.

Transparency log

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

Download URL pylon_db-0.9.0-cp314-cp314-win_amd64.whl
Size 6.1 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
a653c81ed35a768ec65211bd4be5209557766fe66d1b3fb9b054ea6bc9817894
BLAKE2b-256 checksum
How to use checksums
6783975758ec5a1a9876b9e8e21cd5b28397491b424b1a43f9721fbcb31b20e4
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 2, 2026.

Transparency log

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

Download URL pylon_db-0.9.0-cp314-cp314-manylinux_2_28_x86_64.whl
Size 6.7 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b2230138ab04c1c4e2e0f29816ad63b42996376cdfaaf0f5954774205ab1968c
BLAKE2b-256 checksum
How to use checksums
237b0458aa6a845efc7203b2f9d890880f027b6e5198ed1ae08bfeaf51aa2f6e
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 2, 2026.

Transparency log

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

Download URL pylon_db-0.9.0-cp314-cp314-manylinux_2_28_aarch64.whl
Size 6.9 MB
Tags CPython 3.14 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
6b632437d8f5accfcf5284897932f100b5373d92236467ce180f0206477ea9b2
BLAKE2b-256 checksum
How to use checksums
b7a714308cbf3415493daccf9edcc8c601ce4d3349f5846eca1bc125d28936d4
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 2, 2026.

Transparency log

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

Download URL pylon_db-0.9.0-cp314-cp314-macosx_11_0_arm64.whl
Size 6.2 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2deb06f2c4b3680a78ad214a6a0719ebf6996ad875c428103957094d0d92a71f
BLAKE2b-256 checksum
How to use checksums
064faefa55531a610a46bc1044e642c0bdeb6cccbe1947298b858e1e36abc58d
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 2, 2026.

Transparency log

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

Download URL pylon_db-0.9.0-cp313-cp313-win_amd64.whl
Size 6.1 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
445bf07138c59208e07091045eb5caed9bfe40497406af6c271c515c77484707
BLAKE2b-256 checksum
How to use checksums
d04d36c7d8826902719e6782c39cd6aabd24b3e39a63dad6660b546b8eee644c
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 2, 2026.

Transparency log

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

Download URL pylon_db-0.9.0-cp313-cp313-manylinux_2_28_x86_64.whl
Size 6.7 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
27e013dfedf511f319b69f67570281afdf52ce2e556bc8a2ef115ef641c013a4
BLAKE2b-256 checksum
How to use checksums
0019841ef9ac9e1e3797163e287f7f14d97eb5bbd155ffe13e88c82bd76a246b
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 2, 2026.

Transparency log

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

Download URL pylon_db-0.9.0-cp313-cp313-manylinux_2_28_aarch64.whl
Size 6.9 MB
Tags CPython 3.13 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
d7d6b86e56633ac7d0d7dd31a5a97bdd0c4fac2158ad33a276736df0b642b77c
BLAKE2b-256 checksum
How to use checksums
17884aaefef7f6287c19fec6010d9effe7ac7104aa6348dfafca9958c6472ea4
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 2, 2026.

Transparency log

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

Download URL pylon_db-0.9.0-cp313-cp313-macosx_11_0_arm64.whl
Size 6.2 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
257cb9add7408117849b10c7a9be3148ce8b377a125df263176fac5042592b17
BLAKE2b-256 checksum
How to use checksums
aa584727e21a74c6871ce008d8bcca8d4701aeb689756fe9a0b1333a5d6df6a4
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 2, 2026.

Transparency log

Security for pylon-db 0.9.0

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 13 files in this release have been uploaded with provenance metadata.

Select from 13 files

Attestation for pylon_db-0.9.0.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 2, 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.

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