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

Uploaded Source

Built Distributions

ulid_transform-0.4.0-cp311-cp311-musllinux_1_1_x86_64.whl (690.3 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

ulid_transform-0.4.0-cp311-cp311-musllinux_1_1_i686.whl (743.3 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

ulid_transform-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (133.6 kB view details)

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

ulid_transform-0.4.0-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (132.1 kB view details)

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

ulid_transform-0.4.0-cp310-cp310-musllinux_1_1_x86_64.whl (690.3 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

ulid_transform-0.4.0-cp310-cp310-musllinux_1_1_i686.whl (740.5 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

ulid_transform-0.4.0-cp310-cp310-manylinux_2_31_x86_64.whl (140.3 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.31+ x86-64

ulid_transform-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (133.6 kB view details)

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

ulid_transform-0.4.0-cp310-cp310-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (129.1 kB view details)

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

File details

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

File metadata

  • Download URL: ulid_transform-0.4.0.tar.gz
  • Upload date:
  • Size: 14.2 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.14 tqdm/4.64.1 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.10

File hashes

Hashes for ulid_transform-0.4.0.tar.gz
Algorithm Hash digest
SHA256 6232bc73992c7713eafbb1629571347799c2946f93a0c4ae6a4c6b248ac0dbaf
MD5 67f59174ffbfa53831c1ffa18a4d8b10
BLAKE2b-256 d761466d882c492df731ad5e572aa52610b9918c5fadafbc3fcf52ac95470266

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.4.0-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 1267cd1bbdd5904cef1d271729b66715c4af8dd44675ba82a2789da770f6a83c
MD5 454f2f2b8a1654ee9d36e62aaa26de5e
BLAKE2b-256 0b8680b4306cc278b717942e6b2a909bb90033fb57aade3939e101b7398a36a5

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.4.0-cp311-cp311-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 2524a0f6023b769bf0bf92f045cadab4970b57c395f2cfc6050a2d0a2cef9a18
MD5 6ce47660395f3cdb40b9f0c1337d1f49
BLAKE2b-256 37409663e90d4d917883383bfefb614fc3af4e17319e9e32d40c0058cf9f058d

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.4.0-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.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d6f4e78caf999c0965f3ef61d40f4bffe8b19e86aa7487dad612fa49ef3850e4
MD5 12cfc2face77924fbc09f64ec82a5a59
BLAKE2b-256 94ec58cbdda5eb978f2f6b8995febc6f2d77a9bbe4828488a98f538cf8ce2401

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.4.0-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 46ffd43fb3e9a9df9d004821a73a6590ea359b25b671bac57beccb0a31340f01
MD5 db38002bde8f2419d72799a855b1a0c3
BLAKE2b-256 857623288368462adb9e6bcdf3ba2fd1e4cb830f6579aac18053d72e7553be97

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.4.0-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 d7b715ea903c6eac35ee9e72391ac9d14f428b76c4d16843906e8dee4aca8e30
MD5 0e9adbff7016a38a4df590f5a8cf7660
BLAKE2b-256 672a14a7fc4a1539d2301c9210498e01d69f11d7a0406481676820f7ed846ace

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.4.0-cp310-cp310-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 02f3170dc9e4788aa974095585af872a78c44efd47a411bc83efc3fd23acb853
MD5 ca0e7ae78b1fe9c22a4de7bc2dff0849
BLAKE2b-256 a91071a05eabc6d36dbe9a053a1ab5093d5e496fcbb99b1f714ca853526a1d29

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ulid_transform-0.4.0-cp310-cp310-manylinux_2_31_x86_64.whl
  • Upload date:
  • Size: 140.3 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.14 tqdm/4.64.1 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.10

File hashes

Hashes for ulid_transform-0.4.0-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0113e3030d8aa58b2a95076a92e0ab2af1257a58c15925b1b7f8ba31ca077886
MD5 f5b3a97e8039b261b25dcc5dbab69309
BLAKE2b-256 61dd08906601488caf9a032c3d0ae889febe6ba403baffbecd454f7c60f140cf

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.4.0-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.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 77a5b748093c0a645723314f7bdf5bb4ff1c8aaebe8c0539559d85db7c423bc6
MD5 dc96442030bf8f960ba010e721284c5d
BLAKE2b-256 975d5212c8c5a0d1656e8d0c3f51901f3201b86027a59a5af0f1a5077df49661

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.4.0-cp310-cp310-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 3fe25afd570e8e8faf23a950def2fb7f434ca6cb66b48e1ba1b4291137c0f296
MD5 2b17138fc664a1eee961a5dc29d29d57
BLAKE2b-256 b07669b40a9b40b3495e8552ed89ab99e3fb7e7dbdc110208b4ef605844949fb

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