lastuuid 0.1.1__cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl → 0.1.2__cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.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.
Potentially problematic release.
This version of lastuuid might be problematic. Click here for more details.
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: lastuuid
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Classifier: License :: OSI Approved :: MIT License
|
|
5
5
|
Classifier: Programming Language :: Python :: 3
|
|
6
6
|
Classifier: Programming Language :: Rust
|
|
@@ -22,6 +22,8 @@ Project-URL: Changelog, https://github.com/mardiros/lastuuid/blob/main/CHANGELOG
|
|
|
22
22
|
UUID type is awesome, but, at the moment, the UUID type in the standard library
|
|
23
23
|
does not support the uuid7 format.
|
|
24
24
|
|
|
25
|
+
This is where lastuuid library is usefull.
|
|
26
|
+
|
|
25
27
|
## Usage
|
|
26
28
|
|
|
27
29
|
### UUID7
|
|
@@ -65,9 +67,15 @@ $ python -m timeit "from uuid import uuid4; uuid4()"
|
|
|
65
67
|
200000 loops, best of 5: 1.82 usec per loop
|
|
66
68
|
```
|
|
67
69
|
|
|
68
|
-
### Testing with uuid without brain
|
|
70
|
+
### Testing with uuid without a brain
|
|
71
|
+
|
|
72
|
+
The uuidgen method is not made for production code, it is not suited to be
|
|
73
|
+
fast, it is here to generate uuid has autoincrement or as redictable ids,
|
|
74
|
+
because UUID are made to create an identifier before it's saved into a
|
|
75
|
+
database.
|
|
76
|
+
|
|
69
77
|
|
|
70
|
-
Autoincrement your uuid in a test suite avoid some brain pain
|
|
78
|
+
Autoincrement your uuid in a test suite avoid some brain pain:
|
|
71
79
|
|
|
72
80
|
```python
|
|
73
81
|
>>> from lastuuid.dummies import uuidgen
|
|
@@ -77,14 +85,17 @@ UUID('00000000-0000-0000-0000-000000000001')
|
|
|
77
85
|
UUID('00000000-0000-0000-0000-000000000002')
|
|
78
86
|
```
|
|
79
87
|
|
|
80
|
-
Or
|
|
81
|
-
|
|
88
|
+
Or even more usefull:
|
|
89
|
+
|
|
90
|
+
UUID predicted, where only the first bunch of bytes needs to be read; or a few,
|
|
91
|
+
to arrange some object ids.
|
|
92
|
+
|
|
82
93
|
|
|
83
94
|
```python
|
|
84
95
|
>>> from lastuuid.dummies import uuidgen
|
|
85
96
|
>>> uuidgen(1)
|
|
86
97
|
UUID('00000001-0000-0000-0000-000000000000')
|
|
87
|
-
>>> uuidgen(1,2,3,4,5)
|
|
98
|
+
>>> uuidgen(1, 2, 3, 4, 5)
|
|
88
99
|
UUID('00000001-0002-0003-0004-000000000005')
|
|
89
100
|
```
|
|
90
101
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
lastuuid-0.1.2.dist-info/METADATA,sha256=_TXvSJNDq2ZdkWZgY8WYwU5PZJKFxK--2ZlPROyLE54,2789
|
|
2
|
+
lastuuid-0.1.2.dist-info/WHEEL,sha256=m_Z_Pi3O2BT79VAoag1m5m0_bHs_OFBtCJ7Vl6mHHDg,129
|
|
3
|
+
lastuuid/__init__.py,sha256=J0y-_0o53066oeP1gXBC2MmmBFj0EeETiskPnY4SqKc,49
|
|
4
|
+
lastuuid/dummies.py,sha256=4ekFj4XZ3LsCUr7dxnnEoQUo8mydox8aso6Vp89V1is,497
|
|
5
|
+
lastuuid/lastuuid.pyi,sha256=PJe_XMTEAMFtsfRfo4HNWHTwPdtMl_hSTQJU6jNIKfY,183
|
|
6
|
+
lastuuid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
+
lastuuid/lastuuid.cpython-313-arm-linux-gnueabihf.so,sha256=XuWCLbg8Gvv1btC1-D1RC2jx0gZ84l04I0npw_oTPfw,507248
|
|
8
|
+
lastuuid-0.1.2.dist-info/RECORD,,
|
lastuuid-0.1.1.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
lastuuid-0.1.1.dist-info/METADATA,sha256=aNObGTSbwFTdlW45XWcGMmRGMnK_5FsEwwHqJEk27kc,2460
|
|
2
|
-
lastuuid-0.1.1.dist-info/WHEEL,sha256=pi804JJnOcO7nrHchQ1k8RNdVsgQ-jk1yzjX6TpcbiA,129
|
|
3
|
-
lastuuid/__init__.py,sha256=J0y-_0o53066oeP1gXBC2MmmBFj0EeETiskPnY4SqKc,49
|
|
4
|
-
lastuuid/dummies.py,sha256=4ekFj4XZ3LsCUr7dxnnEoQUo8mydox8aso6Vp89V1is,497
|
|
5
|
-
lastuuid/lastuuid.pyi,sha256=PJe_XMTEAMFtsfRfo4HNWHTwPdtMl_hSTQJU6jNIKfY,183
|
|
6
|
-
lastuuid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
-
lastuuid/lastuuid.cpython-313-arm-linux-gnueabihf.so,sha256=2YwosyuMfMxlOhNA0m-9B_8iAc-3VLUBN-mw5qG8dDA,508828
|
|
8
|
-
lastuuid-0.1.1.dist-info/RECORD,,
|