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

Uploaded Source

Built Distributions

ulid_transform-0.6.1-cp311-cp311-win_amd64.whl (57.6 kB view details)

Uploaded CPython 3.11 Windows x86-64

ulid_transform-0.6.1-cp311-cp311-win32.whl (57.6 kB view details)

Uploaded CPython 3.11 Windows x86

ulid_transform-0.6.1-cp311-cp311-musllinux_1_1_x86_64.whl (701.4 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

ulid_transform-0.6.1-cp311-cp311-musllinux_1_1_i686.whl (756.4 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

ulid_transform-0.6.1-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (145.0 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

ulid_transform-0.6.1-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (145.2 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

ulid_transform-0.6.1-cp311-cp311-macosx_11_0_x86_64.whl (56.1 kB view details)

Uploaded CPython 3.11 macOS 11.0+ x86-64

ulid_transform-0.6.1-cp310-cp310-win_amd64.whl (57.6 kB view details)

Uploaded CPython 3.10 Windows x86-64

ulid_transform-0.6.1-cp310-cp310-win32.whl (56.7 kB view details)

Uploaded CPython 3.10 Windows x86

ulid_transform-0.6.1-cp310-cp310-musllinux_1_1_x86_64.whl (701.4 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

ulid_transform-0.6.1-cp310-cp310-musllinux_1_1_i686.whl (752.5 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

ulid_transform-0.6.1-cp310-cp310-manylinux_2_31_x86_64.whl (151.5 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.31+ x86-64

ulid_transform-0.6.1-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (145.0 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

ulid_transform-0.6.1-cp310-cp310-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (141.5 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

ulid_transform-0.6.1-cp310-cp310-macosx_11_0_x86_64.whl (55.4 kB view details)

Uploaded CPython 3.10 macOS 11.0+ x86-64

File details

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

File metadata

  • Download URL: ulid_transform-0.6.1.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.15 tqdm/4.65.0 importlib-metadata/6.2.1 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.11

File hashes

Hashes for ulid_transform-0.6.1.tar.gz
Algorithm Hash digest
SHA256 1082626b1c0a4c9bc6747a4083be7f6754d36e3a0000add6e391b939043447c1
MD5 bc7ce1d2fda3d62ef30387db79a454a2
BLAKE2b-256 c054cba9be3fc45b609c2e97f8ddc31e00fc0bcfe74b9613276b32834ba6ad98

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.6.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7f25e964521537e5921fceb1d8c9cf6aae91a9b9dc730650a04fabfd3d69ab6a
MD5 6804a96a406836624bb77690c3a11553
BLAKE2b-256 4df629def569b7f49a914a168a5d3ce7dde16c7cf1fc3897d6e30162fc5f7fc5

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.6.1-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b8ed9faddacc17a6a6065eb196848aecefe04957aca5baeddaa65abdfe29f895
MD5 36783ae40b3cc8644ce30c31becaf281
BLAKE2b-256 adc83ed340560feb392b5588c105742541c6cd7047b66a87f1117c6358c40b44

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.6.1-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 c627b46b8714c6ac92136984844d3aefddfd10b39d31ef838867e0946f3df0a1
MD5 2f4163980b9eeb5c6879dbec404a8961
BLAKE2b-256 73b4b89815cc579473495b5ff70eae5be760a463f3f02b5c5070a77b0fb5a298

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.6.1-cp311-cp311-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 25c0d273a7887c75e89ccaa852f13772de769201e47322d5dc909287fca3600c
MD5 0a0e9ee313c6e14dd679b73f6608f028
BLAKE2b-256 eee587fa7d1c9ed74203d4c72aad511ce32611e7ba0acfd2205279be8271c65b

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.6.1-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ulid_transform-0.6.1-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 db66239ee454c065e81e4b30578b58512ddddab8e71e299733e39046e1a4ec8e
MD5 84f9cdcee1f55040498b4734ff63d1e0
BLAKE2b-256 295e772aac70f46db2897664ad9e34ce944bb27a2118bda37eafe48927b9433c

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.6.1-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for ulid_transform-0.6.1-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 409bbba2b8879e2e21e5483a3fffe7ab49b747db0c358af71ef64374e36c50c1
MD5 67c8a8d902ecb95fbead9fd9744eb13c
BLAKE2b-256 df841d26fb00fdc9fc40b82fdbbf721a5ab850d840a909339595ddb156bbe195

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.6.1-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 c478330b703dd0a33019a21e667629a86d09c44ec71d7bbcbdb587106bb51803
MD5 cc36a854fe928b3ac29f3310ac1f319c
BLAKE2b-256 46273232a6ce83a89c7f57a1cf13e0ab0ebc5b7e09caa39b9ca4eec33c23896c

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.6.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b83ea81ec0beaa7d4b770e55acb5b7e354021340fa5196e66924f7e12a6227ca
MD5 25776804cf0520bcab8e907a482cb601
BLAKE2b-256 3ad5421d83a6d3e8b9f97e85645d527d7f0d6634a984a4ffc0720c1bd4fb61fa

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.6.1-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ee33bd1cb7582b449e58d1dfb4ac6226dee35b0298e061832a9a4a8ea581de40
MD5 2e4bdadc263e0ace41445130a1e8b2a1
BLAKE2b-256 9de101c0daa63d30d59f7fa655a6c962b30449bf53e4a38eac875279f6dbe435

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.6.1-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 17c03a6ced6b965fae08c55a99c403e79a3bf9580f99637dcf88777d8cecd55f
MD5 783bb72fe4e5440dbdc4a8f813a323b2
BLAKE2b-256 fa0e006ba6de71c467d28115f8b5493dbfd55da02aa432c5ec59e67265a04757

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.6.1-cp310-cp310-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 880cf69d352a105fb656e48706d5efd6f1d5021bf384c65276efc4ca05cd397a
MD5 87196cfce394c1cb25dab7e21ffec1e5
BLAKE2b-256 7f321b25321a3499f585a8787080ea37ab44411a2930f3f52c0af3c8742d5e84

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ulid_transform-0.6.1-cp310-cp310-manylinux_2_31_x86_64.whl
  • Upload date:
  • Size: 151.5 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/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.15 tqdm/4.65.0 importlib-metadata/6.2.1 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.11

File hashes

Hashes for ulid_transform-0.6.1-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a558dec4ed5d98d07bf4dffc572912073f1a67ea8cc88177782744b4a1214f60
MD5 67f5ad21e8738c9f5f35b6c82cbbabc0
BLAKE2b-256 2b0239d48a7945b0cad948e1543fbc06c74200f5ea92d6cc4a17633755e9ad19

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.6.1-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ulid_transform-0.6.1-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 74a892aa83b207b91cdb555f1fed227c0e0028eea4aa0bfc69d138a6e2bcbe0b
MD5 6d4c59a296c6b64a03c82b7b2cadc388
BLAKE2b-256 837bce71b1414c86039f4c35dabe89b735f3ea881d86b44990eba7ef0097fd89

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.6.1-cp310-cp310-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for ulid_transform-0.6.1-cp310-cp310-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 750c8d586d24403dd23180958ee763b4ab0ff2ab87e146b25e5be09bb6ccb0f0
MD5 b1eecff969e3c1b4cac2a5f913d47010
BLAKE2b-256 368f309fec5702eeb3bb3dc3ecc19d5226e8636c0aba7b68a012995aba7bf96b

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.6.1-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 7f9f016b1d1ea6a7c44a71f95cc4e6b129f92ee3b96340be3aafc88e0ec98412
MD5 bd0df7f4101cc06b4e58610425d175e9
BLAKE2b-256 1e7b25a51f0fd00c4d5b2c4e8683c1207ce5e80f813b3f337bdde11c309ed1e1

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