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

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

Built distributions (wheels)

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

Total release size: 79.5 MB

Release files / pylon_db-0.11.0.tar.gz

Download URL pylon_db-0.11.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
9627724411647c75e4ec4c529ad3b5a064e2297a690375ec75fb9a7682984683
BLAKE2b-256 checksum
How to use checksums
d9744ec7df9175ee9ff812291ed6c5edbc7694204f34260e55b3a9dbd1bea3ee
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 23, 2026.

Transparency log

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

Download URL pylon_db-0.11.0-cp315-cp315-win_amd64.whl
Size 6.2 MB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
f9c60024ffed2897f5832b704aabffc16eb3accc4503cf698b3f94537d3a1680
BLAKE2b-256 checksum
How to use checksums
051eb316141d13c0dea7b3041090dde990d80edb038323e8b321233804b1011e
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 23, 2026.

Transparency log

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

Download URL pylon_db-0.11.0-cp315-cp315-manylinux_2_28_x86_64.whl
Size 6.8 MB
Tags CPython 3.15 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f1946ffd8bdc64f18017426adc341bb1f0f80d18f5b431957c06f8fa6c9a76c0
BLAKE2b-256 checksum
How to use checksums
56d59bcc4bd5ee0468836ac70d84d29f089bebaab5f60183366b56568ede1a96
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 23, 2026.

Transparency log

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

Download URL pylon_db-0.11.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
60f52561b59166d934e74932f94c79ae11c128a5f78be681465fdaa496b08eeb
BLAKE2b-256 checksum
How to use checksums
39b0b635828c7925ef44f9a2546d5d77becd89f1638ef48b1e6161f3e925dd6d
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 23, 2026.

Transparency log

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

Download URL pylon_db-0.11.0-cp315-cp315-macosx_11_0_arm64.whl
Size 6.3 MB
Tags CPython 3.15 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c144924d03c4459b469cfa55775847e7c9b10a42663a030bcd0510c0978667e2
BLAKE2b-256 checksum
How to use checksums
3e9b32f34b892180dbf5a2a49bb9968424461bfe2d5b09a1b98c1047449e0784
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 23, 2026.

Transparency log

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

Download URL pylon_db-0.11.0-cp314-cp314-win_amd64.whl
Size 6.2 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
d5b9e691ab94b1820909d83f4a54070e72232d3c254362a3db221659c52cd854
BLAKE2b-256 checksum
How to use checksums
45578e0d23d231a6e9a2334e4979717787f28b3ca4f2360942a93fbdef300e9e
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 23, 2026.

Transparency log

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

Download URL pylon_db-0.11.0-cp314-cp314-manylinux_2_28_x86_64.whl
Size 6.8 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
d1df6dcee187a1e3a734bbe7d09445065aed4a5c4af65367bc0c3c03fc6fa9b1
BLAKE2b-256 checksum
How to use checksums
bfe88020ac48b8d155ce1ed93de64330c65fc995fa8cbf7aceaa2cca5842e95e
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 23, 2026.

Transparency log

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

Download URL pylon_db-0.11.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
5dabf1f8c8b1f36381d67ee846dc90cad212a216c7013c83b2510d5c8e78eb61
BLAKE2b-256 checksum
How to use checksums
7cbb2762d3292e795da1fa98f7030811fdba8415d4eabeb215e8cf3ac27d8171
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 23, 2026.

Transparency log

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

Download URL pylon_db-0.11.0-cp314-cp314-macosx_11_0_arm64.whl
Size 6.3 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1968a7c1b2b9bcdeeed98aae47f9774e0491e22ddfcf9083d4ede3b3f7bcd1f1
BLAKE2b-256 checksum
How to use checksums
fc82fa99c1cecf76c9d40e14376ee846540292fd98a0cc8e6c99f4e25e39012f
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 23, 2026.

Transparency log

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

Download URL pylon_db-0.11.0-cp313-cp313-win_amd64.whl
Size 6.2 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
80d4e3e9bf32079bbc748bc0f4197ea571795f2e84a7456e280bf46a0a62cc6f
BLAKE2b-256 checksum
How to use checksums
f170f85eea5f6baf924248d04fe0a22c9d6fc6dccfb4a23ff14d2347c3a53f5e
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 23, 2026.

Transparency log

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

Download URL pylon_db-0.11.0-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
64282403d96485d1080ffb89f1b7e5da67b9bfb15ba701d413bb2df084afe413
BLAKE2b-256 checksum
How to use checksums
bb348cd8bb2a93ced0fa1bd3e6684f8a4945ded17b17e7ed8c3edd04a57c4c07
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 23, 2026.

Transparency log

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

Download URL pylon_db-0.11.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
cb92e135320b632057d658407c6fa007bc31fdf92051da4f8a720d36da45d42b
BLAKE2b-256 checksum
How to use checksums
8356a6eb6ab9fc19892d0537d4834fdf6065f085c99b476d6c1a5b42b046e80d
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 23, 2026.

Transparency log

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

Download URL pylon_db-0.11.0-cp313-cp313-macosx_11_0_arm64.whl
Size 6.3 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
381ba76b6ed853aa3c1771b6afda46fb8198aced2829f07a79d09390b0552046
BLAKE2b-256 checksum
How to use checksums
ab681630af6d8a7e9296c0514ae5bac267699bc4b5740adf9fed588d8506d963
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 23, 2026.

Transparency log

Security for pylon-db 0.11.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.11.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 23, 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