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.0.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.0.0
File Size Uploaded
djanquiltdb_plugin_postgres_objects-1.0.0.tar.gz 28.4 kB Details

Built distribution (wheel)

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

Total release size: 36.5 kB

Release files / djanquiltdb_plugin_postgres_objects-1.0.0.tar.gz

Download URL djanquiltdb_plugin_postgres_objects-1.0.0.tar.gz
Size 28.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9638c3e0b5423e6a694aaf2b2ef509ec1d8595cb7218d1fe34c6b13e270bfc36
BLAKE2b-256 checksum
How to use checksums
c869d0063bd066a69fbf7dafa6e9b828370eb74c12312a5140332615895fb5e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 27, 2026.

Transparency log

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

Download URL djanquiltdb_plugin_postgres_objects-1.0.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
835ce07f9c9174891d9002b42cc75d36944868876bfd6c9e0a08d1bf510180c4
BLAKE2b-256 checksum
How to use checksums
c61bbb05f87802b144a90f38374a2c6aa55292b95fcd71c8bc805782c914421e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 27, 2026.

Transparency log

Release history Release notifications | RSS feed

1.0.1

2 release files

This release

1.0.0 This release

2 release files

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