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

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

Built distributions (wheels)

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

Total release size: 81.5 MB

Release files / pylon_db-0.12.0.tar.gz

Download URL pylon_db-0.12.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
37df87d3408aff5d3d3f3e3a91ad25b32dbc51905073eab0fa6f25918492088a
BLAKE2b-256 checksum
How to use checksums
6c509dacfa70577be249fb35b8114e857b672dfea1e4005b19edfc2efead76cf
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 27, 2026.

Transparency log

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

Download URL pylon_db-0.12.0-cp315-cp315-win_amd64.whl
Size 6.3 MB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
431dcf6cb8819a418397757b59ab918ea8d5b2bb79883a4e5b7412f5d4b7cefe
BLAKE2b-256 checksum
How to use checksums
138bcd6bef1d0479d150fc0b8be7291c77d976aaa04348647abe85d830b744ad
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 27, 2026.

Transparency log

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

Download URL pylon_db-0.12.0-cp315-cp315-manylinux_2_28_x86_64.whl
Size 7.0 MB
Tags CPython 3.15 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
c53c1f270ba011109df79843651a276f037ac05133aab26529e7846f3b712b42
BLAKE2b-256 checksum
How to use checksums
babf11889e56ef3d3f7c5c0235caa3b20ecd24d538d670460376e4ba22925e76
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 27, 2026.

Transparency log

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

Download URL pylon_db-0.12.0-cp315-cp315-manylinux_2_28_aarch64.whl
Size 7.1 MB
Tags CPython 3.15 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
1b90bf99124ec070c320603e921ffb04bfc3fa90c565e655235f58b593371f29
BLAKE2b-256 checksum
How to use checksums
0aed945079e3f96e7a724163428f0348b62bde745d96e4a41fe19b494a541664
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 27, 2026.

Transparency log

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

Download URL pylon_db-0.12.0-cp315-cp315-macosx_11_0_arm64.whl
Size 6.4 MB
Tags CPython 3.15 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a6f5ad384976b1c8db752db1ff536e964739caba2f778da94b5b315e7e778bfa
BLAKE2b-256 checksum
How to use checksums
b94b0e4b93981ccfd46d705003b448752331c5015797848005219616ddb86f8e
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 27, 2026.

Transparency log

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

Download URL pylon_db-0.12.0-cp314-cp314-win_amd64.whl
Size 6.3 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
4317a1e96bd5fc53a5aa613d5c246f3efee08d02faf2c3877e144722749c1f88
BLAKE2b-256 checksum
How to use checksums
98b877522f6473d0bb644111176909121144f3445df43d8ea768eeab767b52df
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 27, 2026.

Transparency log

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

Download URL pylon_db-0.12.0-cp314-cp314-manylinux_2_28_x86_64.whl
Size 7.0 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
7b8928838ba48a4009e82cbec1c120f15ed543e36f4f21650ec8f94f745b32d6
BLAKE2b-256 checksum
How to use checksums
95bebef0dd47f570c7a894d5c4d09d4ad338555fffa7b66c86d81219630697ef
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 27, 2026.

Transparency log

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

Download URL pylon_db-0.12.0-cp314-cp314-manylinux_2_28_aarch64.whl
Size 7.1 MB
Tags CPython 3.14 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
9764c1fef810070c7dc4773e5cb30af66803c37c73b3c956b3a1d1e716f4e3b3
BLAKE2b-256 checksum
How to use checksums
69839dc85cbcd68815988f5bac5db27061a205b3228b2a1189f4e01d1afc5bc6
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 27, 2026.

Transparency log

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

Download URL pylon_db-0.12.0-cp314-cp314-macosx_11_0_arm64.whl
Size 6.4 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6f17e437800ccb084c7430c537023944a09fc5680f6dcd5697c6bf38456904f9
BLAKE2b-256 checksum
How to use checksums
929ea72971f19c417d2c5c47b6ea2047ee53a66c8aa88126b92a9c652520ed59
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 27, 2026.

Transparency log

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

Download URL pylon_db-0.12.0-cp313-cp313-win_amd64.whl
Size 6.3 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
ce9b3d8743a8073402b76c99bacbc63dd8f893175876752f8ab6c6e6c22dcf1a
BLAKE2b-256 checksum
How to use checksums
cfedc6fc768c78079e654d4505933eb2a3c1503843b46c3dc2fa9a28aac125db
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 27, 2026.

Transparency log

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

Download URL pylon_db-0.12.0-cp313-cp313-manylinux_2_28_x86_64.whl
Size 7.0 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
e56f1f7b18ba140d19f53a02e910026082dd7c6fe39430a1767a116ecbedca7d
BLAKE2b-256 checksum
How to use checksums
fd01c37890285cd14d042984edaaa58932a5e41c87d857dc898b7ecd21d5d629
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 27, 2026.

Transparency log

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

Download URL pylon_db-0.12.0-cp313-cp313-manylinux_2_28_aarch64.whl
Size 7.1 MB
Tags CPython 3.13 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
c3edc44ded38fe8a027ba1821f7d27b0d635d81ce6f4cd60a34fd07dd91ee4c9
BLAKE2b-256 checksum
How to use checksums
c171c418de6483bf07dd9d17834fde6486d7f65a375d705028e6eedb2ffae82e
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 27, 2026.

Transparency log

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

Download URL pylon_db-0.12.0-cp313-cp313-macosx_11_0_arm64.whl
Size 6.4 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2eee937436ee5a9fa92f6dc90a86e9e1c49e1f77d951e595b0b4383233e6a248
BLAKE2b-256 checksum
How to use checksums
06cf3af802acf0c33455a0452db36a2f6a173ebd5adacd819dae4c22893f50d3
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 27, 2026.

Transparency log

Security for pylon-db 0.12.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.12.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 27, 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