Skip to main content

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)

Metadata

Release files for simple-ulid 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 simple-ulid 1.0.0
File Size Uploaded
simple_ulid-1.0.0.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for simple-ulid 1.0.0
File Interpreter ABI Platform
simple_ulid-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 kB

Release files / simple_ulid-1.0.0.tar.gz

Download URL simple_ulid-1.0.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8ba80da9c5fb60c3723df69afa6cd6fd48554c048e3c4ab90f1122096db26e3e
BLAKE2b-256 checksum
How to use checksums
b7122181c58ea2fa157a891fc2ecfdaae90ee31a33180bdd208a6328599cb294
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

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

Download URL simple_ulid-1.0.0-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
daeabcb20cfe99fb1bb0d920d01db5d057a5c963001d7f6a61946cffb8cc08b8
BLAKE2b-256 checksum
How to use checksums
f56093cb89530c476d2d00f94b8f4a1479dacb6d5b435de7b8693779ef379e99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

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