Universally Unique Lexicographically Sortable Identifier
Project description
ULID
This library provides a single function to generate a ULID (Universally Unique Lexicographically Sortable Identifier).
Installation
pip install simple-ulid
Usage
Generating a ULID
import ulid
print(ulid.new())
Using ULID in a Django Model as Primary Key
import ulid
from django.db import models
class BaseForm(models.Model):
id = models.CharField(primary_key=True, default=ulid.new, editable=False, max_length=26)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
simple_ulid-1.0.0.tar.gz
(3.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_ulid-1.0.0.tar.gz.
File metadata
- Download URL: simple_ulid-1.0.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ba80da9c5fb60c3723df69afa6cd6fd48554c048e3c4ab90f1122096db26e3e
|
|
| MD5 |
9acbfd020233f2bf25b9c61276256658
|
|
| BLAKE2b-256 |
b7122181c58ea2fa157a891fc2ecfdaae90ee31a33180bdd208a6328599cb294
|
File details
Details for the file simple_ulid-1.0.0-py3-none-any.whl.
File metadata
- Download URL: simple_ulid-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daeabcb20cfe99fb1bb0d920d01db5d057a5c963001d7f6a61946cffb8cc08b8
|
|
| MD5 |
0e01162bce75fe4847fdcfc9ad626230
|
|
| BLAKE2b-256 |
f56093cb89530c476d2d00f94b8f4a1479dacb6d5b435de7b8693779ef379e99
|