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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.11 Windows x86

ulid_transform-0.6.2-cp311-cp311-musllinux_1_1_x86_64.whl (701.5 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

ulid_transform-0.6.2-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.2-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.2-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.2-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.2-cp310-cp310-win_amd64.whl (57.6 kB view details)

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10 Windows x86

ulid_transform-0.6.2-cp310-cp310-musllinux_1_1_x86_64.whl (701.5 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

ulid_transform-0.6.2-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.2-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.2-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.2-cp310-cp310-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (141.6 kB view details)

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

ulid_transform-0.6.2-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.2.tar.gz.

File metadata

  • Download URL: ulid_transform-0.6.2.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.2.tar.gz
Algorithm Hash digest
SHA256 8aeb8e3258d14ac38163c44560887ab1a971091d48d84f826d41bf6f744c8292
MD5 bd99df4397fc35e35afd7c798b328ab3
BLAKE2b-256 c949c41cbff71f53b7da33e7f0fe696361eadfe5f2d24b86c421c4ee378a5894

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.6.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8a85505c85202f04c8745ad17ff2afbba8af481c1223d2bc5a08486522834cc0
MD5 9b1d9328d4f66cc2be3c2b82b6754b46
BLAKE2b-256 b2b20c771bee037a46ebf407726b74cbf20a14e4762214542e785c3884b0d2f3

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.6.2-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 88e62e55ea798c795350fab35baec18eacd6c0a8b3313d94fa44d1f7b8226691
MD5 4c6ab0448f57654ce902097fcd4f8d4e
BLAKE2b-256 7477d03655664fef4df975a54d33efbe7d277be08c33b53378c1b99207f24340

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.6.2-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 adbe35d285629b3c0436814fba2286bd7841211cf159fca6c3715a2c7de7a623
MD5 c3c54349578543d7827d9ebb7fcd146b
BLAKE2b-256 79b97707a9d5513532574597f587069c6366a166a4fd480e1c8afef99567fe8a

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.6.2-cp311-cp311-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 73683445dc96056cb512bacf7a02219d250196f9f9f29cb52799fadf86b2078d
MD5 3b797e7c00224032ec51e3f6edf22494
BLAKE2b-256 58387a10c68261da04a7237650fa8b93c5768ffb4b72a2c941100aeed7e52f32

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.6.2-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.2-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ddcd09dcb1abfbefdb72d478c396bf3f24c79555d8a5db322e2259bb2eb4535c
MD5 b529ac08d7a34c6d945543e9f9ee005e
BLAKE2b-256 ee74ba1a9547ed93fc622bb77f73a7a0bd611e6661e8e197aa62986390df36b6

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.6.2-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.2-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 60005424067e0cac1fda1067a826b24c77fdcedd8cf4f7382be88e7fb816d186
MD5 54e5ce847509e67a409f9d6cf3bcc235
BLAKE2b-256 96326bdfe976d6bd4a56927cf62d63b829e82c5ca2e865bb61fd8766c85b3dcb

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.6.2-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 dc940eb5f97f0017602315ac5cba0ebd69678bc0482f26ffe9284ec6acc68f5b
MD5 557fb86591ad4e5da006c77d1128d16f
BLAKE2b-256 1930af2a8854ddc062f7407433e32b39dd63075757042f6e5389c724c2956a51

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.6.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c88d69fd370b5d1ea27780a305a722714bd0a7779366eb61e86438dbc99b263b
MD5 9af71272de47ea7a893985f0014b0541
BLAKE2b-256 cefc56b007b5277e8e7377840df8434cbdc9c6a2f35b337bd9c5192594f276a9

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.6.2-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8d81bd5f4e6bf930f8b3cd5724f213e3c5efcc9ae1af2318034d8234c11bfdb7
MD5 7418dc5e8f627cdbce9214a867160a2a
BLAKE2b-256 83437c87697fb0c30ce99f59e63f8a0a4206d626d1fe641e71175ab8c5a4c485

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.6.2-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 e563e4ee81608ec72714aea2bde60a5849d8fdc8c20af2ed30294e26c521657b
MD5 4b05ae803b3ea8015d4e819678cdce7c
BLAKE2b-256 ad4c3193ccc90056e04e792b16d7731f999cfb9282df3e725ea4e61486b64d96

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.6.2-cp310-cp310-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 711f33dd86176abd46efa3a3fa7aed5555e5d125b1ae64fed728275bb589817e
MD5 ca925010813e03a83f3ef6d3233edff4
BLAKE2b-256 231e8e1bc38caa965a4a11d0b9e8b9ee1cb38aefb9a8b559f472782cd0952215

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ulid_transform-0.6.2-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.2-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 91104b97b3dac2c85e80ce8c25fda45c5fa63866ebe4497709ecd51e658aa4d8
MD5 9d319b34d87dff63a865945b9db6bf2c
BLAKE2b-256 fc8164d0bda8bdca7e1ed0b2f5102134823207fa79a71166816a007b1b434c96

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.6.2-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.2-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8ac6fee45667ab5989684c0092d9a18c09205e7f08059a41d7ffa17e160d87af
MD5 af106bb61087b8968f01867207a97735
BLAKE2b-256 e93e53dcffffc469a87deae9764f2ec4232c90ba5de6e1aa0ba13b3a0f038e2c

See more details on using hashes here.

Provenance

File details

Details for the file ulid_transform-0.6.2-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.2-cp310-cp310-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 b05c5f73b03a0bd494e9451cd6d361ddbaa788114feff5d6b2a3c3d8c0a514a6
MD5 d64887263a74694647d887ebe3b7a9aa
BLAKE2b-256 4ccf7b6d8b77bc984daeda5a6c8e424cb397e6e88ff834b8914422e1293cf3f6

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ulid_transform-0.6.2-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 2000d2815c0ec5656ae1eacc13746bdecab6fadb59e1c74f9a07dacddddcb307
MD5 d62dfde40b2d18c1106ffb1d937d65b4
BLAKE2b-256 d1567e12a50de33ae9115feff68d21dd3322353d20c143c893fc71d181663ed7

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