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.5.1.tar.gz
(14.1 kB
view hashes)
Built Distributions
Close
Hashes for ulid_transform-0.5.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e991e312c08b0b0e06631a853462add56bd13ee5e1a40979118e6770582815c1 |
|
MD5 | b2d10f7bd21f32ce0cbc61b1fe89ea1a |
|
BLAKE2b-256 | 6c29d6e59784b6084df472967d412ea3150cb7dc59f931825ae64e48d2cd6ba6 |
Close
Hashes for ulid_transform-0.5.1-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43c5a056e95fafadc721b4a1c9bee95eae9e4b666ccbbdb01b35eb6d3697cd9d |
|
MD5 | 07280ab08b5eb5227154313e2ee6ce66 |
|
BLAKE2b-256 | 3215390855883293535be2d7c792b427af5ef584778a003e3d2175831123c93b |
Close
Hashes for ulid_transform-0.5.1-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46f85948fa76c4cd3f6ccf7dd14a2ae50809ac1b645c8335cac9011d48804a7c |
|
MD5 | 8ad6d482ebcca3b042439cfb38715239 |
|
BLAKE2b-256 | 7890b9644c19de298c2ae16ccf382cd145498f226bd99ef5d4bfd1ed8fbe1e99 |
Close
Hashes for ulid_transform-0.5.1-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf70c3b6f92ef7ae1c77ce0fbc5c31827abfd7528ee252204a97fd735e8e32e7 |
|
MD5 | 26435e8f6b070f0f191760d3eaf10f81 |
|
BLAKE2b-256 | 068a1341c81478a424d584d7064d843dc00631d92feb4eaef0c7138abaac6e6d |
Close
Hashes for ulid_transform-0.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd5d16d5aa19190246c933a8d0e7c01c179c4fdebfa26eaf0aeab277fb30924a |
|
MD5 | af224c22025117dda0617dfb61e913cf |
|
BLAKE2b-256 | be73e996450eff7fbe96dc497b05992f5e5fd34c4cda0e8d1b6ed3d0df960a95 |
Close
Hashes for ulid_transform-0.5.1-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a9432b0506dff5e1fa40137919d61ce7e97b0b4f3b81561789a123fba34b433 |
|
MD5 | 565451de4cec62be283d378119d3e665 |
|
BLAKE2b-256 | e09f5fa12db070f097fa93aacb034aa0cb3ae1e54327032f6bf5928f5da7a62d |
Close
Hashes for ulid_transform-0.5.1-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 452d82d29fb01013731a443b0d2969e5674a23d976e1421c55c5b35435ccde99 |
|
MD5 | 9772d017bb6e34c829b859f411a73179 |
|
BLAKE2b-256 | dbc700835ef4627f2d01c2104ac8a1b173a7233f5a0347d46cf8993896a37daa |
Close
Hashes for ulid_transform-0.5.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b60f6064736c360eab38ddb74e81792838b442b6a6e63d6d97232eade6049169 |
|
MD5 | 00dcb8317e8cde88ed0d586ca2f70ab3 |
|
BLAKE2b-256 | 944586909ff719f3953db7d8a6b1e2ea728bb8982df8bb6e1bc0ff351159be4b |
Close
Hashes for ulid_transform-0.5.1-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f053a20a97445c0af84b971111c91e95b86bf919bb7b37d40bb50e1fa30b07b |
|
MD5 | a17f6e240b1221611dc7d9deaecc9cb0 |
|
BLAKE2b-256 | 7e86cc003919af0ab6c390e9b4f66c806fe3af93082b7b5cd716d8afa9bb3cd5 |
Close
Hashes for ulid_transform-0.5.1-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 226d93c039d502119ca6b653615904a7916ce9c222344c5381f9e604baf0b455 |
|
MD5 | c6b49849d6f8fcafad40e3edde6624ea |
|
BLAKE2b-256 | 2f9a3373c664180750debd56908061cde6b8e313c44447a5a7bd9be7181ae380 |
Close
Hashes for ulid_transform-0.5.1-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbafb3fb6cbcb258120a4c2f5dcd1cf000448ab62ba616e4510ce0f115be462a |
|
MD5 | 965f42cb60926b8f45010fb837649bc0 |
|
BLAKE2b-256 | ab6aabdbd2cad2827272608d40aa4f61972c5c9789a4531b17685441c22503a6 |
Close
Hashes for ulid_transform-0.5.1-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e04a089ae04a12efda3b58039ac4dc6ba6c57114a5f7fd54b8fe855142498d2 |
|
MD5 | 47073ffaf81f2fe468741c269d1ee63a |
|
BLAKE2b-256 | 5adb9be71a6c4c11ed072fd79d5e1db1d9b794a30f5c52758af2b60e061bee8d |
Close
Hashes for ulid_transform-0.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af9ffe6f603d617ac4f1e90575a593c453e0b55ef8885c8bc990b2a008ab90e0 |
|
MD5 | 2dee33097db4af2f18914a67fb2202cd |
|
BLAKE2b-256 | 667e51c9154178e0bbc7c872c7fe7d31bd37b4dd6fbc5b0da3805fe078ba56e0 |
Close
Hashes for ulid_transform-0.5.1-cp310-cp310-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd39efe170fa5133c2c178e12412955e24c09f5a9c4e0526d645ee1a5f2133dd |
|
MD5 | f03c89e80ee4bb03af9394a8463ff262 |
|
BLAKE2b-256 | 613230a30d5002dc63df4729469fd34609dd591e29ffd09df26b635e104de43d |
Close
Hashes for ulid_transform-0.5.1-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dfe5374048d1c9e6be40d776cf25b0ed904bee95c36c65980d457edd5661c5d |
|
MD5 | 28ddc47b58eb91caf83bd2451c52f2e9 |
|
BLAKE2b-256 | 7ff18477dae819ed6211dc97db882eb5052b174f3ecd50d505e23a86c3509746 |