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

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

Built distributions (wheels)

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

Total release size: 79.2 MB

Release files / pylon_db-0.10.0.tar.gz

Download URL pylon_db-0.10.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
202cfd90f16a28711b00f5e38689f54eb510513dc4a8739e935eeb1f98e3e50e
BLAKE2b-256 checksum
How to use checksums
1b2613e38735764e96f42fa97fa82fc64f1b745311765b4f7dce3f65b4845df5
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 9, 2026.

Transparency log

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

Download URL pylon_db-0.10.0-cp315-cp315-win_amd64.whl
Size 6.1 MB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
c24bfcaacbf0860d3820aa54210410738f521554488e4b70574347b413168aab
BLAKE2b-256 checksum
How to use checksums
78177835c54e33af00d8f71c8b21e2f5337c423addc72fdf8453fd660f4cd053
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 9, 2026.

Transparency log

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

Download URL pylon_db-0.10.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
d8011ffe0c812969f859ec4a3e73fff3ce15fdb8ffcd29dea6de005189a3c065
BLAKE2b-256 checksum
How to use checksums
50a50686c388e3ce0598f728c31bf250ef907760abdae473fa1cbffd518b9f21
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 9, 2026.

Transparency log

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

Download URL pylon_db-0.10.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
faa90771a5f71b72e674beaa88f77224a361c20d4a2382d05b31751c30aa86d0
BLAKE2b-256 checksum
How to use checksums
d28c845014d3acecd955431ded9f91333c239582a7f6e0f8cd77f992afd9a6a0
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 9, 2026.

Transparency log

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

Download URL pylon_db-0.10.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
61624dca5193ff23625cfdf51bb3530e601953c6706b67f71fc4957f95cf3ce9
BLAKE2b-256 checksum
How to use checksums
17cc1b254a3daefb43174b5da77c2052ff4e7f5d103cf2a13b76943a79718aa8
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 9, 2026.

Transparency log

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

Download URL pylon_db-0.10.0-cp314-cp314-win_amd64.whl
Size 6.1 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
2417ba5c7f6db17b564e885a0e26abd3d90d85dc986eb46471acf8a9531a2277
BLAKE2b-256 checksum
How to use checksums
2cc2a513d790fe4058524b7a2761a7202b2d7ed653ecc50b31cfcde29d451ace
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 9, 2026.

Transparency log

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

Download URL pylon_db-0.10.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
14c7837968a98d4b6ab6f4ffcf35569b2d47753e08f90b9ab14125dcf79d75bc
BLAKE2b-256 checksum
How to use checksums
4099fe59a665c733f2617ea3bc3da21bfe7977e455dbda2dba76094962978ded
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 9, 2026.

Transparency log

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

Download URL pylon_db-0.10.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
2c7c73b934785227bd6dce2fb2be14cacc1c7230de92e74357cc924f787290eb
BLAKE2b-256 checksum
How to use checksums
d08f3f7dcd395abfce619bd082b405a5ff212d1a5faaa6be64642b5aa136f023
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 9, 2026.

Transparency log

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

Download URL pylon_db-0.10.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
2fd8d4085bfb8bbab58b2c3c168cc6fd775518355fad1a44821c3d7dc808003d
BLAKE2b-256 checksum
How to use checksums
50cfe752aa2b6257cee981b600c5ce8a41d7c6607c35991c8df9aba7507bc704
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 9, 2026.

Transparency log

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

Download URL pylon_db-0.10.0-cp313-cp313-win_amd64.whl
Size 6.1 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
b8dee97c5a3a0bda434e15395f65fb7c17db190ae76a5f6e1cc59d201ccb18dc
BLAKE2b-256 checksum
How to use checksums
551245ed841f60b6a1f899c87eef4096c0235b16ebf70a1d6eb822f378065c11
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 9, 2026.

Transparency log

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

Download URL pylon_db-0.10.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
b3849e8ad9f3e3cde407a166d9c62805439eab60363365149fa159a144b000b9
BLAKE2b-256 checksum
How to use checksums
fc133dafef40e6899d7fd000ca4ff280929df3089dc1dade6170a52db63a8ea1
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 9, 2026.

Transparency log

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

Download URL pylon_db-0.10.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
e53bbfe5421665b0d8f099fbb16c7425d9278f5f3595ad3039897dd0702d9080
BLAKE2b-256 checksum
How to use checksums
664da968231a88937e5597f1a63d1bfe025c7f1f2036a1b0ca708d78b6188361
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 9, 2026.

Transparency log

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

Download URL pylon_db-0.10.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
cb7fe3fadca09dfaef18d6ccf9550ceb800e6856efb5ea4d432ab13727c324dc
BLAKE2b-256 checksum
How to use checksums
09d355fd7b676b28fc251c088c4ed93c230d73adccad047f3bf93ae70abfcf29
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 9, 2026.

Transparency log

Security for pylon-db 0.10.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.10.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 9, 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