----------------
Provides a ShortUUIDField for your Django models which uses the base-57 "Short UUID" package at https://github.com/stochastic-technologies/shortuuid/ .
Originally, a fork from David Cramer's excellent django-uuidfield, but not much is left of that besides a bit of structure.
Installation
============
Install it with pip (or easy_install)::
pip install django-shortuuidfield
Usage
=====
First you'll need to attach a ShortUUIDField to your class. This acts as a char(22) to maintain compatibility with SQL versions::
from shortuuidfield import ShortUUIDField
class MyModel(models.Model):
uuid = ShortUUIDField()
Enjoy!
Notes
=====
* ShortUUIDField is a subclass of django.db.models.CharField
* You can pass usual Django CharField parameters on init, although some of them are added/overwritten:
+ max_length=22 (since we are using base-57 format which is fixed at 22 characters)
+ blank=True, editable=False (set auto=False to remove these fields enforcement)
* Uses shortuuid.uuid() that generates uuid4 random values
Metadata
Release files for django-shortuuidfield 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-shortuuidfield-0.1.3.tar.gz | 3.4 kB | Without provenance | Details for django-shortuuidfield-0.1.3.tar.gz |
Release files / django-shortuuidfield-0.1.3.tar.gz
| Download URL | django-shortuuidfield-0.1.3.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a292c0fe5538abe947b131e2b914edd9ac44afcc6a40eaec71448e6231a3ef00
|
|
BLAKE2b-256 checksum How to use checksums |
7c01e192e8be3bdbcbfc63b9f4c33dbe874badd0bb49416fd98a20928fc3739b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-shortuuidfield 0.1.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.