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.0.tar.gz
(14.2 kB
view hashes)
Built Distributions
Close
Hashes for ulid_transform-0.6.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d58aa971e651ffd9932945dcfdf8725990bd039b65c28a6a51f93bc72ba199aa |
|
MD5 | 73e58e16b0c8991808a2685d328e4313 |
|
BLAKE2b-256 | 709c8d83272267c13fd0ae99c81ac550b2d7578924f276777d5447f0d4bcf86e |
Close
Hashes for ulid_transform-0.6.0-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4a5c257af258ff83ec857309ccef3f20850641ab07a347c04443279dac92557 |
|
MD5 | 657b82e7d0bdd9635b3e362db91186f1 |
|
BLAKE2b-256 | e02b889299960efb59407e582850a914d8e7fd26ce7916c0a214c5116eedb243 |
Close
Hashes for ulid_transform-0.6.0-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bca135429ddc3f754d5d2ca6a5dffdd0ac064e2f7edff2c73e8c9824766b3cdc |
|
MD5 | 24674151591c8d899af3a6543f690ffb |
|
BLAKE2b-256 | efd61d16ade18232d5f5fd3daf1613d3051be980fa85876a6ab1b850b78d5833 |
Close
Hashes for ulid_transform-0.6.0-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | deea05a64abc5a13fd98d358ad9116421fa4ca50f459f8ad6d39910fa8cd7bba |
|
MD5 | 7ba0f5e4c0d89af2820f0f887c024534 |
|
BLAKE2b-256 | f40d13b529c37746218391d830f495f8e3e801b5b93b63b750526c774131f39b |
Close
Hashes for ulid_transform-0.6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7a8a0c4356df92d3a8930992605ddbc08972bd2e678f60ee1bdcba212b8bb4d |
|
MD5 | df37ea1926b8deef79947c04dbbbf831 |
|
BLAKE2b-256 | 429c24640464dc37775cad9af79df4801f53b20394fccceb61ffe8a8b6beedf6 |
Close
Hashes for ulid_transform-0.6.0-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7720b158db4ad95fd057d9cffd5ef1f36adc99743e77a445cb49b23b1e5ae85 |
|
MD5 | 7447b630c55538e10a480c25d45573f3 |
|
BLAKE2b-256 | edf9499e4fd13a14aec43213e086a61dae26457b599a181914e8faa49466f3ac |
Close
Hashes for ulid_transform-0.6.0-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87e3cb683463039f775d1032b7ae4ce1224ee89fd87554a0467e22050a9f4651 |
|
MD5 | 2f642973223134b9c316626c904c8d89 |
|
BLAKE2b-256 | cd7d4a754cb955d7f3efb78ac32f3b480121bc0d3ecb950fde348aa639e946d1 |
Close
Hashes for ulid_transform-0.6.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c2f003bcc8080f97bbe08aa45b8eb6a7699e60c1420f9b04580f18b1a372f21 |
|
MD5 | d715910d44a94f18643c4a78881c865c |
|
BLAKE2b-256 | b48df8627e2d44e774e95124d69a6ebc796c2b59b62687adfc4ec0871eeb8a6e |
Close
Hashes for ulid_transform-0.6.0-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e91c4384e72844aa2b127784ad767ff216fffb4561f8bae793713fba5a2f5ae |
|
MD5 | 3bfcbf785c16742c3085e6ad48ee8e39 |
|
BLAKE2b-256 | 2672cd0688ebac926b6d119d3dfd1d45d2235a5d3c07709ebd704f1694024061 |
Close
Hashes for ulid_transform-0.6.0-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94360e041cd64dba238920f8a8a581bff28146f27f147ac9bc4a4a0ba9b63b22 |
|
MD5 | 292990a5893c1bd6b6e4d8097a1dd0a1 |
|
BLAKE2b-256 | c83076ef8ea39a65a43e77242e18ce5700fbf79fc2fb89f21e88f285fb1493f6 |
Close
Hashes for ulid_transform-0.6.0-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95cc5d2b58eba509e8b5d20938a88a9ad42b48de4cf0c9134b6a62f223b51061 |
|
MD5 | 7f2ca353beb17e4b8a9d0bb2e858dfec |
|
BLAKE2b-256 | 15ef92c6d2afa1a42b650b5db945c76d45305be28aa996234817343e4896c187 |
Close
Hashes for ulid_transform-0.6.0-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66ecf2ba16d3bc432f3d22b56869581bd48c0ce47768928385abdef5c098779d |
|
MD5 | 45f6dfec1bb8460fe592b0d9ec04132b |
|
BLAKE2b-256 | 60db1a52da4f5b5a7e6320ae011fdb18b2665c4a74819428110bc119ec4df02f |
Close
Hashes for ulid_transform-0.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 118eea99fb4daab0c8a3fb3754ab84e2c3d99c2a29080e5b1a67156a06249f12 |
|
MD5 | 59c639ad597fc46461009ae948ca79e6 |
|
BLAKE2b-256 | 53b54a83918d23448945bf034c29d5b1565ba9f2223349458a28ac6f36e86bd3 |
Close
Hashes for ulid_transform-0.6.0-cp310-cp310-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 007a83baafe3320442f89af6c0839a1296a9f66c0c8114b768f2d46e2313b8c0 |
|
MD5 | be5919eba6c86845f66b7d589f6cfc4f |
|
BLAKE2b-256 | 200b45b892a33b29fc7debdb32e2b5aa4d6181055ce37003027fe1c856ef83a9 |
Close
Hashes for ulid_transform-0.6.0-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2398dd3c695d16790fe692b0cc3584821271b96de4dc572a588473ea62963359 |
|
MD5 | 49eb586dc7aa1c2d485d26b54c221d58 |
|
BLAKE2b-256 | 8a2d5b47ab028366c9df12c5150fcc473753a747d7f3baf6c24bb9c36bafcadc |