Create and transform ULIDs
Project description
Fast ULID transformations
Create and transform ULIDs
This library will use the CPP implementation from https://github.com/suyash/ulid if cython is available, and will fallback to pure python if it is not.
Example
>>> import ulid_transform
>>> ulid_transform.ulid_hex()
'01869a2ea5fb0b43aa056293e47c0a35'
>>> ulid_transform.ulid_now()
'0001HZX0NW00GW0X476W5TVBFE'
>>> ulid_transform.ulid_at_time(1234)
'000000016JC62D620DGYNG2R8H'
>>> ulid_transform.ulid_to_bytes('0001HZX0NW00GW0X476W5TVBFE')
b'\x00\x00c\xfe\x82\xbc\x00!\xc0t\x877\x0b\xad\xad\xee'
>> ulid_transform.bytes_to_ulid(b"\x01\x86\x99?\xe8\xf3\x11\xbc\xed\xef\x86U.9\x03z")
'01GTCKZT7K26YEVVW6AMQ3J0VT'
Installation
Install this via pip (or your favourite package manager):
pip install ulid-transform
Contributors ✨
Thanks to https://github.com/suyash/ulid which provides the cython implementation guts.
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
Credits
This package was created with Copier and the browniebroke/pypackage-template project template.
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
ulid_transform-0.8.0.tar.gz
(14.4 kB
view hashes)
Built Distributions
Close
Hashes for ulid_transform-0.8.0-pp310-pypy310_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a4734dc8769d10f728dd65c18a1038be8ccf213cb540f5742dae2f709d588b5 |
|
MD5 | 6dd9ffc3fa3b4a28b6c32b635c72ed28 |
|
BLAKE2b-256 | b90472585df8fdf17f80e94fe88854084816ca877bbbe3db040d9b30e556fbe1 |
Close
Hashes for ulid_transform-0.8.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53abd04b9d4cacf50795caca977531973d16a4fc1a9385606e01c768dda143de |
|
MD5 | 8953603821318a3c099776ddf48587eb |
|
BLAKE2b-256 | 47b329b35fe3be5f71578fcc9bd22eb1725b7217a5fd0409467b0abd6a8ce06f |
Close
Hashes for ulid_transform-0.8.0-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bd2a0bfa174ee1a8665241036b1682b758a4368072eeb803f9ce5d6aad65f14 |
|
MD5 | b241897322ed19998e470a846ea346a0 |
|
BLAKE2b-256 | cbff15af741039df0b3f96a46a7e3e558b6200abe29677d4907d511a1f29f891 |
Close
Hashes for ulid_transform-0.8.0-pp310-pypy310_pp73-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1d31d0fdc0775c8699c1b5dc40404c41fcc46d75c3b700ca25aef6f3ff2e1b6 |
|
MD5 | 72f7a299b3f7133f93785a1bdf4e8c28 |
|
BLAKE2b-256 | 876dc9acf1f803423e8b566818d72326f31516af26bd6d64b0e33511e0f5eb2b |
Close
Hashes for ulid_transform-0.8.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08db5974e42ab93f57914ed0f4eccbeaa7f8643a767329a0df369b2f5b9c9b34 |
|
MD5 | 3abf8a04126490d4aa1b8879a53aa332 |
|
BLAKE2b-256 | 7daf052bff978c2f695fd9d8e726db6e24d6148f6dd082b56d4f354d1d26250a |
Close
Hashes for ulid_transform-0.8.0-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8377d115ef0579675219f977f13ba585c8f505bbe556c551e4d5a50c61cdf9e |
|
MD5 | 78840200b932b7b2470becb28de0487d |
|
BLAKE2b-256 | baea92141ff1f10a6ffdee8ed7234c8cbf1b5c1b6d2c0dbe72f97a6d3f2c2450 |
Close
Hashes for ulid_transform-0.8.0-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cad40f2229a3ac7e32bc349cadce86f9b5cf0703181488154ebd15941c3a8338 |
|
MD5 | 16bfb54f8b0612d857c5413b05064b13 |
|
BLAKE2b-256 | 09dd6522b9a72785af380ab015b50ccd20ae17adf715a9d02d7b4ae1a55c5840 |
Close
Hashes for ulid_transform-0.8.0-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a7285aa1b96a16bd1d70a0bef8ce6e2ae4ecabbaf8295ec37b4802932759550 |
|
MD5 | 3400301bd2aef38fcff2d3c015868b33 |
|
BLAKE2b-256 | e1851e4f076834b94863994262f02ebae828f8862aaafec8c8bcaba9c97b681c |
Close
Hashes for ulid_transform-0.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 811159064738de075f6c4d46f54697fa4e8654b909ce14afed242fe9fe60d7de |
|
MD5 | 15d623dc9c3162004aab3d3c4cf7a806 |
|
BLAKE2b-256 | f953d600e8bdfb1bb4dbe90bada18ca1623fa84646de326b68a8a5401ed9a3d9 |
Close
Hashes for ulid_transform-0.8.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb9922104b5dacf46844d608a087d144371c6778e0467b91a038a5adf2084667 |
|
MD5 | e72847a6ad15bd4f119121907255b209 |
|
BLAKE2b-256 | 53001e6af4f113a4a8eeab68c1afeeb6dcb4718b5c175e5dca18f0942b94da28 |
Close
Hashes for ulid_transform-0.8.0-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65f7da80e0c2ad32fb2063cabc1a1f7325226116dbbff4bf8860c8a48cb1bac6 |
|
MD5 | 4df5adbb8a0c9167d8951e8b6456e0a8 |
|
BLAKE2b-256 | b571ef8aa5775d193e865ac5ff57fcb05cb21b3e8bb7c5a779584b17307dff2b |
Close
Hashes for ulid_transform-0.8.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08057f526eb77dc27e5565fa919e00b82bbf6526fedbf5e14d502ff3a67bba63 |
|
MD5 | 77a712e0df93b65f91d9432b585e280e |
|
BLAKE2b-256 | 09c69ce93daeea871e9d7118f82a59d44c2674da36cc735ba73bae05f11f61d8 |
Close
Hashes for ulid_transform-0.8.0-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 585fe2b8538ac320e8bc526ad857a393741f6c6cf6173b8c3c22a74c1c500b91 |
|
MD5 | 5ef2da20b5ca60e3823c15998a0b12ed |
|
BLAKE2b-256 | 25385b63db0722237ccd2635bbaa681716353e4781059ad396821e7431fbf6b5 |
Close
Hashes for ulid_transform-0.8.0-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33076232d7f7539f999760786917e4bcd05b59fe5ec50904ef4b2ec84c8937e6 |
|
MD5 | 82b151183315b6d005112050ec3a2fc7 |
|
BLAKE2b-256 | 915ab97a1f73ada3bc6b06fc83257681f6125167429bdb3c617fe6a02944bec3 |
Close
Hashes for ulid_transform-0.8.0-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 486eda395594d0a2308261f3d83c8510981202ffa9521ea80905928f60cac3c9 |
|
MD5 | 85f76d441f9a7340428c1fa3c8181836 |
|
BLAKE2b-256 | 74750b54118abd589a804a5176db6de1d3cc3f23999775e9029d4b35e603ce5b |
Close
Hashes for ulid_transform-0.8.0-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9df78c20cfcb761a88622ae9bda146c171cae0138e2ce0ceb37d1630a40a6ebc |
|
MD5 | b8023685ef24665541b2a5969b746091 |
|
BLAKE2b-256 | 800fd33dd6194131b2075f1ba33184356857361d64ea50ea9fd5f4e40265ac58 |
Close
Hashes for ulid_transform-0.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f380d67a859653aea8570dca12c77a104a0a047683d942d29244fa06b929639f |
|
MD5 | bc408f75160895ea51e3364676ce9048 |
|
BLAKE2b-256 | eb2dae3923b646b7cfaa83cda0591423d88237a0176d28bba821a60f44994d5a |
Close
Hashes for ulid_transform-0.8.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c740c9c7bbfcd69e9028dd60c6f8e7239eccb2c52b1e5ed0a1014eb5893bca8d |
|
MD5 | 0978f7911cabadae2eeed7eef7574e0e |
|
BLAKE2b-256 | 58677139d32c2d70e0cc35c77e57e766003234cc9f7360beedb2ed4cee9b8ec0 |
Close
Hashes for ulid_transform-0.8.0-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37ed9742b6bf91587c9b502c81946a364db5afccb828a0ff6bde75cf7734d967 |
|
MD5 | f772144b90a85596df968fac65e1702b |
|
BLAKE2b-256 | 865304cb505ef488ae9ad2f23327ea852370686548b070f54f9f0090b2b5a4bc |