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'
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.3.1.tar.gz
(13.9 kB
view hashes)
Built Distributions
Close
Hashes for ulid_transform-0.3.1-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d22236261c0b2b32899cfba1e67a56311c04fd2c8484e79177af24cff67a13c |
|
MD5 | dd7e7f75f5ac96c715bfd378ad848282 |
|
BLAKE2b-256 | de3a95f6f6545f04e7ce155103e14b8791177f35768612ff4128bf071c6ffdc2 |
Close
Hashes for ulid_transform-0.3.1-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8e69e0cdabc8553de2abace2ac2c2ba693ed105a2a4ade353774c8d9691c33b |
|
MD5 | 1435bb34704a87c2f5bba044a04944c4 |
|
BLAKE2b-256 | 5c62a8ef2207476102199d3012056285660afa6af8d8d068dbab30d38e8dfbf6 |
Close
Hashes for ulid_transform-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37ebff9a97b2356c34e2ebb1b5d5e4625f10a2e7b4bb0f11a25b2f7d8d1c44d3 |
|
MD5 | 256bea7e3fc35bed3f0faf01c72ea7b8 |
|
BLAKE2b-256 | 258c7f144f64f28b8b11349c98fee4f51231c7714f5a35c899176d4b725aa745 |
Close
Hashes for ulid_transform-0.3.1-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1eb300f104bb83d57f3fa91afa7284f84dd24f41c9784789d3bf8e42aba2650 |
|
MD5 | f21d0f16099b1890df073ff8f6481767 |
|
BLAKE2b-256 | fa46fe98f7b754c086ec3cad32da082315ee895ba5d67ca4f9c481729345e892 |
Close
Hashes for ulid_transform-0.3.1-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91b52dcc7c66c88eb24c636537b5dae200d55aa5aeca6072c9091a0bec9611dc |
|
MD5 | 5dc4666d8686eb7cc0bef82d334a1b2c |
|
BLAKE2b-256 | d1e9eb7130ceca98035f528814b6d5993ae86bb91f999acdc41ef1f9b0d96d64 |
Close
Hashes for ulid_transform-0.3.1-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5281ab5ca619f8b4a3486806ee48ae5c150e5b9317b8409c15caddec7a6d9234 |
|
MD5 | 3a1da54691cc0344896106cd0c60c39b |
|
BLAKE2b-256 | 5e7787527d69da59d5a13ec19e515080411ec1ff22d56afbf884881e919bc6f4 |
Close
Hashes for ulid_transform-0.3.1-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 954eec35688022d278207fc16cf7dcb50bcd6c3b06eba70a68e60779990d54f9 |
|
MD5 | cd4c3611214f80466b5cb194ac9951b2 |
|
BLAKE2b-256 | 21ad06ab0efceb82e2b89e41642990f3590578d96b462c9a87fc16853a1aa184 |
Close
Hashes for ulid_transform-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81e6ab6870caee97e58ad39d983e763209d87fc858e74577818bcec67d84f1f2 |
|
MD5 | ee76f834c55a16ac84bb7912dc9a19f7 |
|
BLAKE2b-256 | 807d7bddfd17f545295dab19f594e15d415644034f007eca377e76dcdcc374e6 |
Close
Hashes for ulid_transform-0.3.1-cp310-cp310-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 714bc63194a9163f5145835e10a65b57bec46ee540631a3a35aac089cb8d7b9d |
|
MD5 | 288a2c676b5b34b53a8f8f7748e53a8a |
|
BLAKE2b-256 | 11738e742e6bb2f63fdce68d2880dcb30cc94e6afc0001b8b3680308d37dfb0b |