Skip to main content
https://img.shields.io/github/actions/workflow/status/MarkusH/django-uuid47/main.yml.svg?branch=main&style=for-the-badge https://img.shields.io/badge/Coverage-100%25-success?style=for-the-badge https://img.shields.io/pypi/v/django-uuid47.svg?style=for-the-badge https://img.shields.io/badge/code%20style-black-000000.svg?style=for-the-badge pre-commit

Django support for UUID47.


Requirements

Python 3.9 to 3.14 supported.

Django 4.2 to 6.0 supported.

Installation

Install with pip:

python -m pip install django-uuid47

Then add to your installed apps:

INSTALLED_APPS = [
    ...,
    "django_uuid47",
    ...,
]

Next, define the setting UUID47_KEY as a 16 bytes long string for encryption of the UUIDs.

To generate a secret, use the token_bytes() function from the secrets stdlib module in a Python shell:

import secrets

secrets.token_bytes(16)
b"h\xd0\x0c\x9f\xfa\x99\xf75\x89J\x9c\xbe>l\x97\xf5"

Then, in the settings.py:

UUID47_KEY = b"h\xd0\x0c\x9f\xfa\x99\xf75\x89J\x9c\xbe>l\x97\xf5"

Usage

In models, use the django_uuid47.fields.UUID47Field() model field, like a regular model field.

In forms, use the django_uuid47.forms.UUID47Field() form field, like a regular form field.

Release files for django-uuid47 0.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 django-uuid47 0.1.0
File Size Uploaded
django_uuid47-0.1.0.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-uuid47 0.1.0
File Interpreter ABI Platform
django_uuid47-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / django_uuid47-0.1.0.tar.gz

Download URL django_uuid47-0.1.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7694f5d3d40b9e2ecc4bcaa0a2f9f333fea71cc631cddc66705cc67288e07b18
BLAKE2b-256 checksum
How to use checksums
e834d9969e6273ee873e29d2434140bae6e6a075eb75e62db447d98f9f1d291e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 21, 2025.

Transparency log

Release files / django_uuid47-0.1.0-py3-none-any.whl

Download URL django_uuid47-0.1.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac30958ec85677cb3e0ca9c33c00ce1ac9b1d0016728d3f014cf206e14354709
BLAKE2b-256 checksum
How to use checksums
9fa56f78d81c3e458158172717de5d0f94045449dd2cf9bc9a110a38c7ccd39e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 21, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.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