Skip to main content

Create and transform ULIDs

Project description

Fast ULID transformations

CI Status Test coverage percentage

Poetry black pre-commit

PyPI Version Supported Python versions License

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


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.8.1.tar.gz (14.4 kB view details)

Uploaded Source

Built Distributions

ulid_transform-0.8.1-pp310-pypy310_pp73-win_amd64.whl (87.9 kB view details)

Uploaded PyPy Windows x86-64

ulid_transform-0.8.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (88.6 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

ulid_transform-0.8.1-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (232.9 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ i686

ulid_transform-0.8.1-pp310-pypy310_pp73-macosx_11_0_x86_64.whl (87.1 kB view details)

Uploaded PyPy macOS 11.0+ x86-64

ulid_transform-0.8.1-cp312-cp312-win_amd64.whl (87.9 kB view details)

Uploaded CPython 3.12 Windows x86-64

ulid_transform-0.8.1-cp312-cp312-win32.whl (87.9 kB view details)

Uploaded CPython 3.12 Windows x86

ulid_transform-0.8.1-cp312-cp312-musllinux_1_1_x86_64.whl (788.6 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

ulid_transform-0.8.1-cp312-cp312-musllinux_1_1_i686.whl (835.8 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ i686

ulid_transform-0.8.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (238.3 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

ulid_transform-0.8.1-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl (232.9 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686

ulid_transform-0.8.1-cp312-cp312-macosx_11_0_x86_64.whl (87.1 kB view details)

Uploaded CPython 3.12 macOS 11.0+ x86-64

ulid_transform-0.8.1-cp311-cp311-win_amd64.whl (87.9 kB view details)

Uploaded CPython 3.11 Windows x86-64

ulid_transform-0.8.1-cp311-cp311-win32.whl (87.9 kB view details)

Uploaded CPython 3.11 Windows x86

ulid_transform-0.8.1-cp311-cp311-musllinux_1_1_x86_64.whl (783.7 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

ulid_transform-0.8.1-cp311-cp311-musllinux_1_1_i686.whl (826.1 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

ulid_transform-0.8.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (233.1 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

ulid_transform-0.8.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (220.9 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686

ulid_transform-0.8.1-cp311-cp311-macosx_11_0_x86_64.whl (86.9 kB view details)

Uploaded CPython 3.11 macOS 11.0+ x86-64

ulid_transform-0.8.1-cp310-cp310-win_amd64.whl (87.9 kB view details)

Uploaded CPython 3.10 Windows x86-64

ulid_transform-0.8.1-cp310-cp310-win32.whl (85.8 kB view details)

Uploaded CPython 3.10 Windows x86

ulid_transform-0.8.1-cp310-cp310-musllinux_1_1_x86_64.whl (777.1 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

ulid_transform-0.8.1-cp310-cp310-musllinux_1_1_i686.whl (826.1 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

ulid_transform-0.8.1-cp310-cp310-manylinux_2_31_x86_64.whl (229.6 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.31+ x86-64

ulid_transform-0.8.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (225.5 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

ulid_transform-0.8.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (220.9 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686

ulid_transform-0.8.1-cp310-cp310-macosx_11_0_x86_64.whl (86.7 kB view details)

Uploaded CPython 3.10 macOS 11.0+ x86-64

File details

Details for the file ulid_transform-0.8.1.tar.gz.

File metadata

  • Download URL: ulid_transform-0.8.1.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/41.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.4 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.13

File hashes

Hashes for ulid_transform-0.8.1.tar.gz
Algorithm Hash digest
SHA256 a7644888bd174791f85f6edd1a85cb8ef6faa3cb8e508445464c49d8d208511f
MD5 bb755fa18f3583997da0431c3b429a39
BLAKE2b-256 d945e7ae7245764b9958e652d1f1f7f47ff1376a5854921208c764aa84d4fb34

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-pp310-pypy310_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-pp310-pypy310_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 b4cd7526dae027342c26b0da011ecfed37750778790130634a604e278414213e
MD5 6ca22058eba3adcda457f2b967436edb
BLAKE2b-256 5ffa2a87f7be6f86bdbe700b6af92e3efb03489fe6126ac12954feecbbe59f6a

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 74949a0f1a9342892a2339da4abe020aa62f9fecb9d58c40ae8646c99f042e42
MD5 29464564a86f0b3d1031bc1023d46595
BLAKE2b-256 106a5e1a18ba38a8c38268ad462f4b7e1adf283a0ea107340f3e6be930a4a3f4

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 80c53b9295f90fd5f8493ef949f67c8bb554e88adc2aa30aaa02e11a0f6215ba
MD5 73ca3ebef252fcf6ef97220699995486
BLAKE2b-256 ba7461d47c6b80e34482edfc6dcfa7afbc49f217e123b153e3c0acd073b064de

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-pp310-pypy310_pp73-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-pp310-pypy310_pp73-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 2410ea648b8ab2151654b3b7068b5f4c7c27783ec7eea0ad0196a1cc5d6bb8eb
MD5 40fd589b22423c16172998515081ed22
BLAKE2b-256 8ec6054b03b00465cd12d2eef7f20c3cc3eb51c5458ee8608765c68da84484ec

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 24aed9d9b2a7c88036ac34fab53b3ca942eb924c233753810bd8478692b86686
MD5 12a0c78e8353a46eab7c1a0be022b902
BLAKE2b-256 57e6cb5b630ffaac6fc064f26f5c173eb9a59adea23df22fd8628b3d6961ece2

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp312-cp312-win32.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1a12d252b99d1191e338c1b646abcb5e17f64e0d69b83aca2d19bbbaf9d49973
MD5 8596ac6bf0df3c38da6ec90146f763ff
BLAKE2b-256 cb12eb28250c0d2817ec29f5d2ba970a2f62a0b956334e369e9540a75435d9cc

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp312-cp312-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 2a2c39367a8933c99f239837d9544b9ac71eda9f2ab3f40896ba057c992a821f
MD5 bc49b8f359694b477e03a240c72735fe
BLAKE2b-256 f12d776fc0b09dbc19655f23b9cca85407fdb4ef54294b3bd199628cfbfbf8f7

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp312-cp312-musllinux_1_1_i686.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp312-cp312-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 66ec999a7fe83efe5063aebb760a825db4439fb771c0d9cb2123c6680cb861ee
MD5 e0eaf5244eec3459f1876dc0e130b0ff
BLAKE2b-256 43c59b90fe0dd7cbe0f36215a1ce117f7fdbba427753e3b4f546bbf50a2889b2

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 45374a6610e1912e3d7aaad931950b03e02ffb980c40a6de1c3e57843a541bfc
MD5 9c577ac025f5d983604ea6d80814fc7c
BLAKE2b-256 b4e9df88fc9c4fa2b4671f1561e87d50800beb2a0260fe9062a7142d46710ba2

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 4a69ec2d53b9b2f1262e2286199acc8762710c2c4dc478843f79ea842a18146b
MD5 941766e5566fa642a701b2f8eaddc887
BLAKE2b-256 ca0f762eb1b444414ea803ef27901dc08979e9d9ff60ef3e4fc00bcf9ef402e4

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp312-cp312-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 a16427b991b6cf7ae86be008ef7de51680ee1544c1679ac6bf1ab79548adaa77
MD5 42c50a35265ad1c60309c194a703fe24
BLAKE2b-256 9d0eaf36a33570fcf805c0d10475c1e3ffc3b2c8a4b501d7cd94e8c6d4888823

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b74884f1003f8f477396fc21b45cc212b369878562ebecd7b4039bc3e918d070
MD5 c0d62adda6e3e719d978ebf43d348430
BLAKE2b-256 e3a68bb49ddd5d1587d1dd2f9fd70927a52782753fab8ddd6b417bc56f59901f

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp311-cp311-win32.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 29d5f8598a7dd9cce3ec46db185f4f651faf6336c5f3bcd31c68ce73488e9fea
MD5 5c84ccd363938853b805d0736f53dc8f
BLAKE2b-256 f48eb5e2010f56e0c25152eb5917f460171751c7e1348d7465a0e08a05129f82

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp311-cp311-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 91692a44c347e4eccbb392d9bc88159a0137e089badbfdd05cf65df20abf3643
MD5 79bdc7a079681c7c78bcb4e32196864f
BLAKE2b-256 9b86356df7582d8b21b42982b20b9c52d1e288b97add6059798d1e32f994ede9

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp311-cp311-musllinux_1_1_i686.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp311-cp311-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 461a7070cb6481dacd757d6df7bf2e067f7e0bf42bdf767fb5da38e03359a988
MD5 4522844b5ec0335434fdfaa2176eacb1
BLAKE2b-256 ce7a6a0297edc1b38b31aad41ab9ed3808ea8e5c943545965a3efc33e537862f

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 98d062bb7be43e1d8fabe36939a5125a7db73cd65c8a22e973ae3da799ea77ff
MD5 db45029d57c54790c6da6f3f6b8b9924
BLAKE2b-256 00e0abed8b2301f0429043556af7276a4b0544f5b478ae051cc7cf5c463b5351

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 4ff6d2b85bef7f7bc58d9495ad8c7f5d2864ea1ba39105d06df1cb5a7842dbe7
MD5 5df1f86d3564a7cab9bf03e4fd976a8d
BLAKE2b-256 ad3bc500f4fcca77a9114063a328988720952853b7c73371fc0abc9e4a24c1c0

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp311-cp311-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 422b17a43df83a6900b09200197c400954304469ad6e2cb02a20b3d7c6f6179e
MD5 bc191f0ebcbdd03a7502c42bc4c69498
BLAKE2b-256 58b9bf2ca591e73c7464094c2bd6342dc7ff57583ab245b929284dea8f58b4f0

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 89c37bfb1c3e5ef064611b43048ffffef4bff4d5c92eba7f306da86480d5b1ad
MD5 d7005852bb058ab9703072642717409d
BLAKE2b-256 72737df28582f3bf9d6666fea9f22b518b1f54452257ef138c49c38ecc6b1850

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp310-cp310-win32.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 61b0b3a1cc971e9f73f350cda7833f0fd64c8dcfe39e426de7a9453bedd25a7f
MD5 b07e87f6dcf686e0b4cfb130ba0e3666
BLAKE2b-256 999bde94c51536991f415a71c35a3e8f328e3a824ee049f3616395e1d9e86379

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp310-cp310-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 b05f120c2191efa068e365c16897dac5dddcf87aaef0e685b0fcf2eb083ba7ba
MD5 81b1adbcaf052b7bfd52c964383620ac
BLAKE2b-256 839d8f159e7e1f54cc811b701abdf135da3d7f75d3058327754deb9a0a825950

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp310-cp310-musllinux_1_1_i686.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp310-cp310-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 92f620ca6e02fd2299b60c3a87237162afe051e8f880cda6d3989b87be584abd
MD5 78ca1591eb908137de0e3a24a1ad3939
BLAKE2b-256 6ef23c52613cbe18c740d53b64ce57fb5d165321622f8a62f177722b2df0bb76

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp310-cp310-manylinux_2_31_x86_64.whl.

File metadata

  • Download URL: ulid_transform-0.8.1-cp310-cp310-manylinux_2_31_x86_64.whl
  • Upload date:
  • Size: 229.6 kB
  • Tags: CPython 3.10, manylinux: glibc 2.31+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/41.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.4 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.13

File hashes

Hashes for ulid_transform-0.8.1-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a8876de3eddfcfb20d008fbfb74632b1c440601abd447f1b3ab3353e6dff7b32
MD5 c75c76e6db7d32304c2ec8e83294fd60
BLAKE2b-256 fe6649ea4706378cf8b35b74a866a0790f5e93bbac972d7f17cd0f6a48d40735

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1c328125d178f98307e442de19b039811baf990767428526e2a58bee8a91a873
MD5 814417f5ede4207434f4028d0227f204
BLAKE2b-256 a57a5aca7d4b37ab830b40682fe7208a564511b3367fe122c550740c230c330e

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 32891d130f31217859ffb05e9b88d4a1a9cf94a81a682d65fc7ce0d6f333cac6
MD5 67446a6f747e5eb083b368f5b0146aaf
BLAKE2b-256 a3bfa1d8e1740103e23b49be43eda9964108ccb9be5fd84c5d3f7f79b18bb0c4

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.8.1-cp310-cp310-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for ulid_transform-0.8.1-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 75eb0f51608fecd901f7623e5dda7a22d6917a6119db5f60b124a92a38784f27
MD5 6d51c321ea5e099a82aa1b44cc67a5e4
BLAKE2b-256 c4e71e232f17e490659f6356f68f65188e37a7d6981d89c065811baed90a5833

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page