djanquiltdb-plugin-postgres-objects
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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| djanquiltdb_plugin_postgres_objects-1.0.1.tar.gz | 28.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| djanquiltdb_plugin_postgres_objects-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.2 kB
Release files / djanquiltdb_plugin_postgres_objects-1.0.1.tar.gz
| Download URL | djanquiltdb_plugin_postgres_objects-1.0.1.tar.gz |
|---|---|
| Size | 28.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff10c3bf6373acbc03fad40f6bd31ac02c331864f40a2cdd3b1b9821291336b6
|
|
BLAKE2b-256 checksum How to use checksums |
4e667116ca525bd51be9dbd4cccba7cddcc2dadfed39fe53ff8ec85b63d73835
|
| 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 Oct 16, 2026.
Transparency logRelease files / djanquiltdb_plugin_postgres_objects-1.0.1-py3-none-any.whl
| Download URL | djanquiltdb_plugin_postgres_objects-1.0.1-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2aaec40a32734e64b556a25a9e05561796c915ff2e318fe0a3fb9e36172d9f8a
|
|
BLAKE2b-256 checksum How to use checksums |
eef2a5b00a5705d55f577fac924f3ad532fefa82a45e7a58091e5aafb84ae784
|
| 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 Oct 16, 2026.
Transparency log