| 1 | Source: python-ulid-transform |
| 2 | Maintainer: Debian Python Team <[email protected]> |
| 3 | Uploaders: |
| 4 | Edward Betts <[email protected]>, |
| 5 | Section: python |
| 6 | Build-Depends: |
| 7 | debhelper-compat (= 13), |
| 8 | dh-sequence-python3, |
| 9 | pybuild-plugin-pyproject, |
| 10 | python3-all, |
| 11 | python3-poetry-core, |
| 12 | python3-pytest <!nocheck>, |
| 13 | python3-pytest-cov <!nocheck>, |
| 14 | python3-setuptools, |
| 15 | Standards-Version: 4.7.4 |
| 16 | Homepage: https://github.com/Bluetooth-Devices/ulid-transform |
| 17 | Vcs-Browser: https://salsa.debian.org/python-team/packages/python-ulid-transform |
| 18 | Vcs-Git: https://salsa.debian.org/python-team/packages/python-ulid-transform.git |
| 19 | |
| 20 | Package: python3-ulid-transform |
| 21 | Architecture: any |
| 22 | Depends: |
| 23 | ${misc:Depends}, |
| 24 | ${python3:Depends}, |
| 25 | ${shlibs:Depends}, |
| 26 | Description: Fast ULID transformations |
| 27 | Provides functionalities for creating and transforming ULIDs (Universally |
| 28 | Unique Lexicographically Sortable Identifiers). Utilises a Cython-based |
| 29 | implementation for optimal performance, with a fallback to pure Python if |
| 30 | Cython is unavailable. |
| 31 | . |
| 32 | Example usage: |
| 33 | . |
| 34 | >>> import ulid_transform |
| 35 | >>> ulid_transform.ulid_hex() |
| 36 | '01869a2ea5fb0b43aa056293e47c0a35' |
| 37 | >>> ulid_transform.ulid_now() |
| 38 | '0001HZX0NW00GW0X476W5TVBFE' |
| 39 | >>> ulid_transform.ulid_at_time(1234) |
| 40 | '000000016JC62D620DGYNG2R8H' |
| 41 | >>> ulid_transform.ulid_to_bytes('0001HZX0NW00GW0X476W5TVBFE') |
| 42 | b'\x00\x00c\xfe\x82\xbc\x00!\xc0t\x877\x0b\xad\xad\xee' |