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.6.3.tar.gz
(14.3 kB
view hashes)
Built Distributions
Close
Hashes for ulid_transform-0.6.3-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0550c3d3b086d193e9467754c25234acee0ff2e9baa7f336df90aaea6c46a268 |
|
MD5 | 93f22c0ef69a45acbe62e51ca1761a98 |
|
BLAKE2b-256 | d2d053a6356a1f239a352fab375e6fe46a3a4d5e303e34161aaefbd45db32cf7 |
Close
Hashes for ulid_transform-0.6.3-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5411390aded281ff97d9011e6248b897c7c6742b85fe2ecc8676bc2c9f1c4475 |
|
MD5 | 5179b0777c4a1d8e9922a3d4cb7aa0f9 |
|
BLAKE2b-256 | 1e5345881516da04ad784239fbd6ab6809c0578e4717200e28e902c969a36142 |
Close
Hashes for ulid_transform-0.6.3-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c01e86ab105d8007d9ab35f5042f3376c894bb944d8670be1c9ae5fa3518a1ba |
|
MD5 | 3e7d232b3176089686adf1d074c8a2ae |
|
BLAKE2b-256 | 0e9c3617b9bf056c27092717050d0b65bd7b914f7e92268f9c8d436208a1927e |
Close
Hashes for ulid_transform-0.6.3-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 076b9b53eca599a5bf418f177684bbb0fc5b996b5c5cc5cfac8954f2a5233e2c |
|
MD5 | 87608746868116cf4f91d8a550e45e37 |
|
BLAKE2b-256 | 683cf41cf0af9bf9b547295c2dab2a143c392f929278b20eabedbcb94ed28e96 |
Close
Hashes for ulid_transform-0.6.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3343fd9d2c1188718bc41b6fcad0daef8b88bc4c2a47bae0bff8aebc1ce040c |
|
MD5 | f0b11acce1622d8074a92f919fee4e5f |
|
BLAKE2b-256 | 85bbedec3af1c7821e88060443ae9e3ac1778e85d8eaecbbce52401f358e6046 |
Close
Hashes for ulid_transform-0.6.3-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d2770faf9b21e839212b4157b9c8300b91858f646044a484c2873f1e78bc196 |
|
MD5 | ad044907fcfd8af2193c372ebf8cd1c4 |
|
BLAKE2b-256 | 1ecf0ba7f48d220cbb329df7624c6499f018867758aee2c301ef3b51421c5bf9 |
Close
Hashes for ulid_transform-0.6.3-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34b8148b1223703fbad1e647a12657e9b13425285e7a31c90f464aefac2b6609 |
|
MD5 | dfaf7419787031f00be8f36e70811082 |
|
BLAKE2b-256 | 8b5be4d8c55d819936329bf8cdc5f496e42667e2d4c14d27cddbd36c2c26e464 |
Close
Hashes for ulid_transform-0.6.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebdde772be45b112b79f7cfd9763cd30d3a82052d98a5e603bb2bf16de7b8d38 |
|
MD5 | fd910fa8b926dee1019bd7cc4358124c |
|
BLAKE2b-256 | cfc20651cf2fd2db913c3f3d1c0cf116c7dfb0e9814a0200232c8bd0514cd3b0 |
Close
Hashes for ulid_transform-0.6.3-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92129120f7bccf0847e98b686db010d3396f4bae70300b776de9f76913167b39 |
|
MD5 | c210443a0b10610d33b2bf0d2b21ce1f |
|
BLAKE2b-256 | 2cf8bebe36691814f87a7bc92621618295e8b5f7e6c64786745037d5cb6b7613 |
Close
Hashes for ulid_transform-0.6.3-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a9dd34006f825e6ccb82a3dcbcbd2e6f04818c9908a29d6caabb0afaea97c05 |
|
MD5 | fd77e9d1f5db825109d100ad2d05854c |
|
BLAKE2b-256 | 61f15b1cd200c6a7b01fb8146321828349b7f1177b0a6f98c2d403af97c3c81c |
Close
Hashes for ulid_transform-0.6.3-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81c72fd132179aefae00c3506e8d601e3e59746d344a94222a13b0d9a2a29f9f |
|
MD5 | d1b0b96b008b007bac1a7a0b1df54af1 |
|
BLAKE2b-256 | ca3241f168d2838fff014340d5d1ffa45db84d2de21404897ec63e5ba411b96f |
Close
Hashes for ulid_transform-0.6.3-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f88e8648e0fae881b0225425cbe685e33b25e8dbae58450729def50ed6d9e8a |
|
MD5 | 26cc167e061bc0f88bbcd6423c86c20c |
|
BLAKE2b-256 | 51c970e54cd46c856869f5942941824efd472285e4858d1d0604b5693a180b97 |
Close
Hashes for ulid_transform-0.6.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04fd06434839f159ae1674e0a95f825cddedc63ea7e77e3741757b32e637f992 |
|
MD5 | 30f585e8391bb2767b400eda92658a1a |
|
BLAKE2b-256 | 20aa64006367324cd734173823a25c5b598ecfd26bc59894878ebcca7026e208 |
Close
Hashes for ulid_transform-0.6.3-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7564bac53bfbf4a29b115c27dd2d2a5e03ae717caa53a6e87b3da810607662f |
|
MD5 | b44e91ac9354dba1ad0ac6c292eafb97 |
|
BLAKE2b-256 | 62c017d9bb851e41dd7a1aa68fdda7cc83116c59c913606954508c750b436588 |
Close
Hashes for ulid_transform-0.6.3-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d4846eb1b00964f4a7def0bc4193a4c4af4b4ed1d36f77cb237c6c9b5874178 |
|
MD5 | 559be74b4517f08db43f195e4156ace3 |
|
BLAKE2b-256 | 5a6df176589e26693220886829beda8c101ed7f25353b96b563e4eb9b98bdb3a |