ULID implementation for Python
bytes(ulid)
.time.time_ns()
when generating ULID
s for improved performance #16 #12--uuid4
to the CLI show
command, that converts the provided ULID
into an RFC 4122 compliant UUID
.ulid build
command allows the use of the special value -
for all options to read its
inputs from stdin
. E.g. $ date --iso-8601 | python -m ulid build --from-datetime -
01HAT9PVR02T3S13XB48S7GEHE
New command line interface to easily generate and inspect ULIDs from the terminal
$ ulid build
01HASJFZZ862S826DA2NJK4WMT
$ ulid show 01HASJFZZ862S826DA2NJK4WMT
ULID: 01HASJFZZ862S826DA2NJK4WMT
Hex: 018ab327ffe830b28119aa156532729a
Int: 2049398682679492051963931130707735194
Timestamp: 1695222857.704
Datetime: 2023-09-20 15:14:17.704000+00:00
The CLI can also be invoked as a module python -m ulid
. For more information see ulid --help
.
Make ULID
-instances hashable @bendykst #4 #3
Added support for Python 3.11.