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.7.2.tar.gz
(14.4 kB
view hashes)
Built Distributions
Close
Hashes for ulid_transform-0.7.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d9d26d66d3e26f6d3809a440df8b28cec04ce9648325a7b0f3594086f3c6a8f |
|
MD5 | 9db3ce0f788a499c672eeee17a419794 |
|
BLAKE2b-256 | 6817be263abb4857c444746ac37b7c284a4b89fa30115cf4f1fdb5e1f309cfed |
Close
Hashes for ulid_transform-0.7.2-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b45eeab28601d75734fdf20de38ff7f972f57677e617642c3fec674a489020c8 |
|
MD5 | bf0a67b55eac54ab1f6cdd9f7573f91c |
|
BLAKE2b-256 | b218964e89df73e2b0eccdf0ad8fe3980c8fd24475b6eeea11bd7e2a53eba4fa |
Close
Hashes for ulid_transform-0.7.2-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad8d421aec2fae85e474705294c187dc0ce1afa094db7bdb824675bd2facf961 |
|
MD5 | 8a7a26474edd26a7720b47a7b403a13e |
|
BLAKE2b-256 | aca7dbd78c43d88f8d57b4adaae6b2c34ba68d7c8f48c6cfc36c231ae0477893 |
Close
Hashes for ulid_transform-0.7.2-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cd71f12d78f16f064dbf9938441f26f163846bf97b0339356228ce821c29c13 |
|
MD5 | c59c0e03a2301f3dd12d9d4836a37c64 |
|
BLAKE2b-256 | b865a7fae40ecde140ce0b959a4228dd568da1e0b41062456766739ec942a0dd |
Close
Hashes for ulid_transform-0.7.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9b854a3092dcdfa5e71128131c5f2fc1ef43f96af7a0d26cd7383607ef60154 |
|
MD5 | e9cab7d7437f0ada75c929cc37afa89e |
|
BLAKE2b-256 | 2a85d3eeff442978a6de18db0ea21cb15372a6ac5c5216b29d3d6fe38f055453 |
Close
Hashes for ulid_transform-0.7.2-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 684df2377255f817479d92c6ec587ec0e9a87a5913068119425af532ae6ef493 |
|
MD5 | a6545ca0bb4e7de5a293ce61522a6549 |
|
BLAKE2b-256 | 0d188f2bcaed9591cf33b8494f9a9315dea069ac18abf02f181ecfe38ce07697 |
Close
Hashes for ulid_transform-0.7.2-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | addfd19678ddf0c9198f5ad87e34428713e97b886553981dd2c5ced8b6e39cc5 |
|
MD5 | 02acb0b39f674192a248924c6f2aa7a8 |
|
BLAKE2b-256 | 863e35017eadaca1b6d3671650339f56b37629c574fb6b0cf0535a25163bd003 |
Close
Hashes for ulid_transform-0.7.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62e1d76d8c2d110cf095dab78a78a255db6e633322db322018c8a68e7b75e8fd |
|
MD5 | 74d3e866a352b5db1a5b9299f9e22894 |
|
BLAKE2b-256 | 0a5d501864d642a4e72ee979258fec7a70b00578e587d51ec7a625984f457ef1 |
Close
Hashes for ulid_transform-0.7.2-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8506f072d8744c1fde3b723e06d9348b8e973986c0e080870ea9ab6746ee704 |
|
MD5 | 3c96f14d2d99b7635f751a7234ac2d32 |
|
BLAKE2b-256 | 0bbc0fa2f47242e05fee5cc5a77cd2fea32e289a47fd1ef23cbf333a25e9eb6d |
Close
Hashes for ulid_transform-0.7.2-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a597adc4ed276c1cfbba469357784fe0ab0a724c7a461f95411f0adaeca7a11 |
|
MD5 | 91a97d0b519c06b0799fd1228c7017d4 |
|
BLAKE2b-256 | f5ca60bfb563f99be8155cbd305a72d44e4287bcc3bd052edaa5fbd6e358cf6d |
Close
Hashes for ulid_transform-0.7.2-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d67bbf1754e5e09d4b82152208f4740d6b58e85f924a92efa536c99cc27efc9 |
|
MD5 | 1b4a40a409a746c4884e698cb88f015f |
|
BLAKE2b-256 | 8bcff10ba6d45ccccdcd82ba4125e2b26b97011ae4eeb40c7b74529039db0ec3 |
Close
Hashes for ulid_transform-0.7.2-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bb3085b3b680f1277b8b44993ce29b1114056698ec95fb5d5b0c39952bc3b30 |
|
MD5 | f6e95b4374a15821cfec3a47c3627cbe |
|
BLAKE2b-256 | 6d1d2d684cf436ee63b4f77959a48a37de3af311e0f9d316802db9e0cf58b119 |
Close
Hashes for ulid_transform-0.7.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d155c508aed60afdcab186ba0090aa372c0e99e896e0d102bc4388ed1459aa95 |
|
MD5 | 590e14e1d484f5c1e6062f1f435f923c |
|
BLAKE2b-256 | e4b17e679dd732d2bcdc5714ff062bb5ae67b7c5c2d3e1767b669a04ba1b44c9 |
Close
Hashes for ulid_transform-0.7.2-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e709940ddab4009a2fac64debb3b85a49f87d9b1204eb6c38418ace4f1bcc4f |
|
MD5 | d8388c1dfa569cf634d200e51947c127 |
|
BLAKE2b-256 | 5246a3cd10f337412ecab91ab061822dd126b2b8631bed93f575553d50b1acc2 |
Close
Hashes for ulid_transform-0.7.2-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49924db06511dc7cea5fe150e23cae99bb74e1654afb3cf6f291f52d91798504 |
|
MD5 | d7898bde4ca507c057fa6a0f9bbce28e |
|
BLAKE2b-256 | bf710672703ca6010070bf1407b7c620b095cf02bb34fa8cdbad7985128b288b |