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.1

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

Built distributions (wheels)

Table of built distributions (wheels) for pylon-db 0.9.1
File Actions
pylon_db-0.9.1-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details for pylon_db-0.9.1-cp315-cp315-win_amd64.whl
pylon_db-0.9.1-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.1-cp315-cp315-manylinux_2_28_x86_64.whl
pylon_db-0.9.1-cp315-cp315-manylinux_2_28_aarch64.whl CPython 3.15 CPython 3.15 Linux glibc 2.28+ ARM64 Details for pylon_db-0.9.1-cp315-cp315-manylinux_2_28_aarch64.whl
pylon_db-0.9.1-cp315-cp315-macosx_11_0_arm64.whl CPython 3.15 CPython 3.15 macOS 11.0+ ARM64 Details for pylon_db-0.9.1-cp315-cp315-macosx_11_0_arm64.whl
pylon_db-0.9.1-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for pylon_db-0.9.1-cp314-cp314-win_amd64.whl
pylon_db-0.9.1-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.1-cp314-cp314-manylinux_2_28_x86_64.whl
pylon_db-0.9.1-cp314-cp314-manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ ARM64 Details for pylon_db-0.9.1-cp314-cp314-manylinux_2_28_aarch64.whl
pylon_db-0.9.1-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for pylon_db-0.9.1-cp314-cp314-macosx_11_0_arm64.whl
pylon_db-0.9.1-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for pylon_db-0.9.1-cp313-cp313-win_amd64.whl
pylon_db-0.9.1-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.1-cp313-cp313-manylinux_2_28_x86_64.whl
pylon_db-0.9.1-cp313-cp313-manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64 Details for pylon_db-0.9.1-cp313-cp313-manylinux_2_28_aarch64.whl
pylon_db-0.9.1-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for pylon_db-0.9.1-cp313-cp313-macosx_11_0_arm64.whl

Total release size: 79.2 MB

Release files / pylon_db-0.9.1.tar.gz

Download URL pylon_db-0.9.1.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
910fe2ddf80893a416d41c2200bb3158c390cf9c4620889871327d17b24e9380
BLAKE2b-256 checksum
How to use checksums
935fea75a3b492790aead7ed70d3bb92cc3dd4a6c6cf320ca18163b53d88284d
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 3, 2026.

Transparency log

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

Download URL pylon_db-0.9.1-cp315-cp315-win_amd64.whl
Size 6.1 MB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
53eef35041e4b2631ae81361cb726f776e655218cd5dc2f18bb0a26fd5117ad5
BLAKE2b-256 checksum
How to use checksums
ca083f4a2b534866e66b80032c2c4ddc21171eaad4b0b128066428856339a8f0
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 3, 2026.

Transparency log

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

Download URL pylon_db-0.9.1-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
3efa9c8ecba041b74f93c8f5bf793a1ebf996678ede82dd3441dcf8e9017fc4e
BLAKE2b-256 checksum
How to use checksums
3ca979e9ac4fba489013d24ea92870587a0ba16e9b98263a7b556367b0c5e2ad
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 3, 2026.

Transparency log

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

Download URL pylon_db-0.9.1-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
212e466652f2c39d588dccc020aa91ca2fbc4de60bd7cce9f43625fd7e6a61ac
BLAKE2b-256 checksum
How to use checksums
8e9408b000584cd01f5a9973461a5b55c0e052a367b4595e53bd55070c54b4ef
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 3, 2026.

Transparency log

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

Download URL pylon_db-0.9.1-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
8fd814116099c2e1dc7c7ff09b69b6bccea8762f26695ac1f331e25a8d3a55f2
BLAKE2b-256 checksum
How to use checksums
7e6b766a491c0af7486804f3d662aa26187d8b6b2be44ae431c64580945ca970
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 3, 2026.

Transparency log

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

Download URL pylon_db-0.9.1-cp314-cp314-win_amd64.whl
Size 6.1 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
f1cd5afb78d3e09590704cb91fc13eec36a3a8e5b48242a9d65dc3d3748d6167
BLAKE2b-256 checksum
How to use checksums
65c7549c203a47ae2f73f4ea40e04a90823ff555f1caa6b33032ae91ed0b8671
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 3, 2026.

Transparency log

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

Download URL pylon_db-0.9.1-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
83db03a3220ce4d22c4d1481ccf10b492585ccc6076a73e63881e952df6901eb
BLAKE2b-256 checksum
How to use checksums
297499bf38089ea0c7509a12107e3db4b4fa805e9213db765e9f8d4f8dd66539
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 3, 2026.

Transparency log

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

Download URL pylon_db-0.9.1-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
288b0c16d83579ad77d03b6730fca1460229b63924f10cc9f4d4a261ea9dc1be
BLAKE2b-256 checksum
How to use checksums
a0546fdf26df4e736ade4ce366c3bb3a007a378f10e584d134aae1631e2aa3ae
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 3, 2026.

Transparency log

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

Download URL pylon_db-0.9.1-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
d61248c0b6bcfe766a5a5b3d95c1112531e955908a4da61c6d995b4fbf1a29c3
BLAKE2b-256 checksum
How to use checksums
75e82fbc37d06fd6dc813b3c1bab24edd059dc6df5ba1aae5c24333f323cf89a
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 3, 2026.

Transparency log

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

Download URL pylon_db-0.9.1-cp313-cp313-win_amd64.whl
Size 6.1 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
f8500fc752417ba5126d3f495e5f54f809358c9efe90ddeab510e49158fc51cf
BLAKE2b-256 checksum
How to use checksums
5bc0a061c274b5859b3aae4e57ffcba27492729ff6e5e45a79acdee2d29d7341
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 3, 2026.

Transparency log

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

Download URL pylon_db-0.9.1-cp313-cp313-manylinux_2_28_x86_64.whl
Size 6.8 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
50a65a4244c3a0e8f5e8f13998a33cf8a0e7f200c8196383f62369d7b456dc90
BLAKE2b-256 checksum
How to use checksums
6872b6a225714d2334887e0ca84487f95d3c176c20fe4d339d02192200bdfe11
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 3, 2026.

Transparency log

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

Download URL pylon_db-0.9.1-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
399b7f384ff5c00d3977345ff853b0ac61343d997fa8d9bd62e0ee72ecf86039
BLAKE2b-256 checksum
How to use checksums
5ffc6ffedb56d2216b86ae3983f9ec702d9d72cdabccc4d078d5e6bd7031f638
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 3, 2026.

Transparency log

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

Download URL pylon_db-0.9.1-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
557992a06cc2be68a9cdf6956efde793973fe59412824023a920f8dfec05def4
BLAKE2b-256 checksum
How to use checksums
0ef6c94924e3c37fe3a317076a560a0921b327a1959561246755f0aa3dddf6bd
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 3, 2026.

Transparency log

Security for pylon-db 0.9.1

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.1.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 3, 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