Skip to main content
DjanQuiltDB

djanquiltdb-plugin-postgres-objects

PyPI Supported Python versions Supported Django versions Supported PostgreSQL versions CI Documentation BSD-3-Clause licence

django-postgres-objects declares Postgres functions and views as classes and lets makemigrations manage them. DjanQuiltDB shards a database across schemas and nodes. This library serves as a compatibility layer between them, allowing you to mark declarative functions and views as sharded:

# example/functions.py
from djanquiltdb.decorators import public_function
from postgres_objects import Function


@public_function()
class AllUppercase(Function):
    arguments = 'input TEXT'
    returns = 'TEXT'
    volatility = 'IMMUTABLE'
    strict = True
    parallel = 'SAFE'
    body = """
        BEGIN
            RETURN UPPER(input);
        END;
    """

Install it through DjanQuiltDB’s extra:

pip install djanquiltdb[postgres-objects]

The decorators are importable from djanquiltdb.decorators beside the model ones, as above.

Functions get @public_function, @mirrored_function and @sharded_function; views get @public_view, @mirrored_view and @sharded_view. An unannotated declaration is placed in the public schema, so declarations written for a single-database project keep working once that project is sharded.

Full documentation is at https://djanquiltdb.readthedocs.io/en/latest/plugins/postgres-objects/index.html.

Development

This package is developed in the DjanQuiltDB repository beside djanquiltdb itself. Tests run through tox against the Postgres containers in the repository’s docker-compose.yml; see DOCKER.md at the repository root:

docker compose run --rm test tox

Requirements

  • Python 3.14

  • Django 6.0 or 6.1

  • PostgreSQL 17 or 18

  • djanquiltdb 4.x

  • django-postgres-objects 1.x

Metadata

Release files for djanquiltdb-plugin-postgres-objects 1.1.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 djanquiltdb-plugin-postgres-objects 1.1.0
File Size Uploaded Provenance Actions
djanquiltdb_plugin_postgres_objects-1.1.0.tar.gz 32.3 kB With provenance Details for djanquiltdb_plugin_postgres_objects-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for djanquiltdb-plugin-postgres-objects 1.1.0
File Interpreter ABI Platform Actions
djanquiltdb_plugin_postgres_objects-1.1.0-py3-none-any.whl Python 3 none any Details for djanquiltdb_plugin_postgres_objects-1.1.0-py3-none-any.whl

Total release size: 42.8 kB

Release files / djanquiltdb_plugin_postgres_objects-1.1.0.tar.gz

Download URL djanquiltdb_plugin_postgres_objects-1.1.0.tar.gz
Size 32.3 kB
Tags Source
SHA-256 checksum
How to use checksums
69a828ca5a078ca87b5a57d234cebf7ec7cdf462bc09cfc61084830a22525428
BLAKE2b-256 checksum
How to use checksums
113b98fb1d0ce298e57b3d349c12e8e17051fe11367219bd0a3ad86be822002c
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 27, 2026.

Transparency log

Release files / djanquiltdb_plugin_postgres_objects-1.1.0-py3-none-any.whl

Download URL djanquiltdb_plugin_postgres_objects-1.1.0-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db39415149a37e3a3100796debd405adc82143ad6a7c7fdcbaa47b859a193126
BLAKE2b-256 checksum
How to use checksums
db16162987bac0b9783cf3eacf810f08775e4b7fe5e80acdb796c51fa519e6a1
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 27, 2026.

Transparency log

Security for djanquiltdb-plugin-postgres-objects 1.1.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for djanquiltdb_plugin_postgres_objects-1.1.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 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