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

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.8.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.8.0
File Size Uploaded Provenance Actions
pylon_db-0.8.0.tar.gz 1.1 MB With provenance Details for pylon_db-0.8.0.tar.gz

Built distributions (wheels)

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

Total release size: 77.3 MB

Release files / pylon_db-0.8.0.tar.gz

Download URL pylon_db-0.8.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
c5bccac9ccb5a8710773bd8fa5566943b945d6e92a092a83c8d13b47a55c87b4
BLAKE2b-256 checksum
How to use checksums
32ceebc48172535e95cf70a09583c1a0f7b358658e0e9e65dcf5f533f7347f72
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 Oct 28, 2026.

Transparency log

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

Download URL pylon_db-0.8.0-cp315-cp315-win_amd64.whl
Size 6.0 MB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
d9628a9f64a98ff63c51d9f2570c98689cdad4025b56dd3dae50d84f182ee7c2
BLAKE2b-256 checksum
How to use checksums
de3b247b9f11fd55953d0808cc8ee7a8f10278803a5c02a4ef424710a1a5f141
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 Oct 28, 2026.

Transparency log

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

Download URL pylon_db-0.8.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
e07a639bc830a17ae898399fd9923355b623232567adf3e48229316a28d5482a
BLAKE2b-256 checksum
How to use checksums
c99e1adf196b4a2ad3a47c779ede6ac5563accf98daaabb278b148a4e689fbc4
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 Oct 28, 2026.

Transparency log

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

Download URL pylon_db-0.8.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
981d4bebb3bf0f20dae8236ed41c6d5c6f037dc55e9f8db2cc7af20b314a29d5
BLAKE2b-256 checksum
How to use checksums
6da8cad56f8fe55841cdf1ac84f2b8a6203ab8253593a3c92daa072c66f245f7
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 Oct 28, 2026.

Transparency log

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

Download URL pylon_db-0.8.0-cp315-cp315-macosx_11_0_arm64.whl
Size 6.1 MB
Tags CPython 3.15 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2abf89c3bc868372b3175312841e86b7f922349c7fa762ecfda09da4effb4fe2
BLAKE2b-256 checksum
How to use checksums
3b9b4a5ff2b610de9ef8de546b4efd17e8d2eff85f139c8ccbdbb6d65cec5889
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 Oct 28, 2026.

Transparency log

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

Download URL pylon_db-0.8.0-cp314-cp314-win_amd64.whl
Size 6.0 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
91d89b5422274e1ace7f58648fc7eb872cc17ffa3d2f8b2c08c371472cea67ee
BLAKE2b-256 checksum
How to use checksums
719b5477c798fd3566ee7187033432768f2714d8d4227937ad0932f067e7effb
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 Oct 28, 2026.

Transparency log

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

Download URL pylon_db-0.8.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
565cd5796f29d891fd4d12cb9f30ef14fdee7810040a13299e8cf0919810d126
BLAKE2b-256 checksum
How to use checksums
47c1c6d37f27d664ab4ad9038f83819e9695af05f212267361ed2e5c1013fab7
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 Oct 28, 2026.

Transparency log

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

Download URL pylon_db-0.8.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
e71af4e3e2d918702cab640e46cdb2c4a296357a36dee48844ffef2786ef9f24
BLAKE2b-256 checksum
How to use checksums
5ba37f904b58517a84de29b593bedaf4b8e16903612fae3fb0ddc30e7416eb99
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 Oct 28, 2026.

Transparency log

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

Download URL pylon_db-0.8.0-cp314-cp314-macosx_11_0_arm64.whl
Size 6.1 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3a3e65fd53b1f625719497f1a53c4bf94a3c0246aefae4af5072c9e8027320d1
BLAKE2b-256 checksum
How to use checksums
6f0051bc61927e18297d79ffa4d04c4b48a61f3ee2e698858a8624320457052b
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 Oct 28, 2026.

Transparency log

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

Download URL pylon_db-0.8.0-cp313-cp313-win_amd64.whl
Size 6.0 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
177023e7073258900a6c48cc52c631775892e46b0e86c981343a7084e310b3c1
BLAKE2b-256 checksum
How to use checksums
a940b367a6fc6f035ad1e43d463648b117c65d8004d4f41c452be5875ba9c82b
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 Oct 28, 2026.

Transparency log

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

Download URL pylon_db-0.8.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
0604a9dada91296b3748c418b9d517a68c7d3a9ff319d414fb14e1d2710ae25a
BLAKE2b-256 checksum
How to use checksums
e69f79028381f0fd0343af282224006ce70f98d6daf1d2cdb928f4dc39d324ea
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 Oct 28, 2026.

Transparency log

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

Download URL pylon_db-0.8.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
b7f1bc885da78d5dc9effdb7a05d391dc28f90b3a91873ed7d3866748556f3ee
BLAKE2b-256 checksum
How to use checksums
c80596a9d1cf0bcb03f0cbb2f87ac5f72857c0761c2abd947720331a786c333b
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 Oct 28, 2026.

Transparency log

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

Download URL pylon_db-0.8.0-cp313-cp313-macosx_11_0_arm64.whl
Size 6.1 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
eae7017bcf9b37df072f13024442809e5c19a790c9a00af34f00c666706aed89
BLAKE2b-256 checksum
How to use checksums
95b75a1b92824d6e3b4c4bf5cc2395c9cb11c81728b98f2920eb9c7cb5bcd321
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 Oct 28, 2026.

Transparency log

Security for pylon-db 0.8.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.8.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 Oct 28, 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