ulid-transform 1.3.0__cp313-cp313-musllinux_1_2_aarch64.whl → 1.5.2__cp313-cp313-musllinux_1_2_aarch64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ulid_transform/__init__.py +1 -1
- ulid_transform/_py_ulid_impl.py +6 -3
- ulid_transform/_ulid_impl.cpython-313-aarch64-linux-musl.so +0 -0
- ulid_transform/ulid_struct.hh +185 -618
- ulid_transform/ulid_uint128.hh +211 -420
- ulid_transform/ulid_wrapper.cpp +67 -54
- ulid_transform/ulid_wrapper.h +1 -1
- {ulid_transform-1.3.0.dist-info → ulid_transform-1.5.2.dist-info}/METADATA +6 -5
- ulid_transform-1.5.2.dist-info/RECORD +16 -0
- {ulid_transform-1.3.0.dist-info → ulid_transform-1.5.2.dist-info}/WHEEL +1 -1
- ulid_transform.libs/{libgcc_s-69c45f16.so.1 → libgcc_s-2d945d6c.so.1} +0 -0
- ulid_transform.libs/{libstdc++-1f1a71be.so.6.0.33 → libstdc++-85f2cd6d.so.6.0.33} +0 -0
- ulid_transform/ulid.hh +0 -17
- ulid_transform-1.3.0.dist-info/RECORD +0 -17
- {ulid_transform-1.3.0.dist-info → ulid_transform-1.5.2.dist-info/licenses}/LICENSE +0 -0
ulid_transform/__init__.py
CHANGED
ulid_transform/_py_ulid_impl.py
CHANGED
|
@@ -268,7 +268,8 @@ _DECODE = array.array(
|
|
|
268
268
|
|
|
269
269
|
|
|
270
270
|
def ulid_hex() -> str:
|
|
271
|
-
"""
|
|
271
|
+
"""
|
|
272
|
+
Generate a ULID in lowercase hex that will work for a UUID.
|
|
272
273
|
|
|
273
274
|
This ulid should not be used for cryptographically secure
|
|
274
275
|
operations.
|
|
@@ -281,7 +282,8 @@ def ulid_hex() -> str:
|
|
|
281
282
|
|
|
282
283
|
|
|
283
284
|
def ulid_at_time_bytes(timestamp: float) -> bytes:
|
|
284
|
-
"""
|
|
285
|
+
"""
|
|
286
|
+
Generate an ULID as 16 bytes that will work for a UUID.
|
|
285
287
|
|
|
286
288
|
uuid.UUID(bytes=ulid_bytes)
|
|
287
289
|
"""
|
|
@@ -301,7 +303,8 @@ def ulid_now() -> str:
|
|
|
301
303
|
|
|
302
304
|
|
|
303
305
|
def ulid_at_time(timestamp: float) -> str:
|
|
304
|
-
"""
|
|
306
|
+
"""
|
|
307
|
+
Generate a ULID.
|
|
305
308
|
|
|
306
309
|
This ulid should not be used for cryptographically secure
|
|
307
310
|
operations.
|
|
Binary file
|