uuid-utils 0.8.0__tar.gz → 0.9.0__tar.gz

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 uuid-utils might be problematic. Click here for more details.

Files changed (26) hide show
  1. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/.github/workflows/ci.yml +1 -1
  2. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/Cargo.lock +38 -146
  3. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/Cargo.toml +4 -4
  4. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/PKG-INFO +1 -1
  5. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/src/lib.rs +4 -0
  6. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/.gitignore +0 -0
  7. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/LICENSE.md +0 -0
  8. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/Makefile +0 -0
  9. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/README.md +0 -0
  10. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/benchmarks/README.md +0 -0
  11. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/benchmarks/bench_generator.py +0 -0
  12. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/benchmarks/bench_parser.py +0 -0
  13. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/docs/api.md +0 -0
  14. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/docs/index.md +0 -0
  15. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/mkdocs.yml +0 -0
  16. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/pyproject.toml +0 -0
  17. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/python/uuid_utils/__init__.py +0 -0
  18. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/python/uuid_utils/__init__.pyi +0 -0
  19. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/python/uuid_utils/compat/__init__.py +0 -0
  20. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/python/uuid_utils/compat/__init__.pyi +0 -0
  21. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/python/uuid_utils/py.typed +0 -0
  22. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/requirements.txt +0 -0
  23. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/tests/__init__.py +0 -0
  24. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/tests/test_compat/__init__.py +0 -0
  25. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/tests/test_compat/test_compat.py +0 -0
  26. {uuid_utils-0.8.0 → uuid_utils-0.9.0}/tests/test_uuid.py +0 -0
@@ -63,7 +63,7 @@ jobs:
63
63
  runs-on: ubuntu-latest
64
64
  strategy:
65
65
  matrix:
66
- target: [aarch64, armv7, s390x, ppc64le]
66
+ target: [aarch64, armv7, ppc64le]
67
67
  steps:
68
68
  - uses: actions/checkout@v3
69
69
  - uses: actions/setup-python@v4
@@ -4,9 +4,12 @@ version = 3
4
4
 
5
5
  [[package]]
6
6
  name = "atomic"
7
- version = "0.5.3"
7
+ version = "0.6.0"
8
8
  source = "registry+https://github.com/rust-lang/crates.io-index"
9
- checksum = "c59bdb34bc650a32731b31bd8f0829cc15d24a708ee31559e0bb34f2bc320cba"
9
+ checksum = "8d818003e740b63afc82337e3160717f4f63078720a810b7b903e70a5d1d2994"
10
+ dependencies = [
11
+ "bytemuck",
12
+ ]
10
13
 
11
14
  [[package]]
12
15
  name = "autocfg"
@@ -14,12 +17,6 @@ version = "1.1.0"
14
17
  source = "registry+https://github.com/rust-lang/crates.io-index"
15
18
  checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
16
19
 
17
- [[package]]
18
- name = "bitflags"
19
- version = "1.3.2"
20
- source = "registry+https://github.com/rust-lang/crates.io-index"
21
- checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
22
-
23
20
  [[package]]
24
21
  name = "bitflags"
25
22
  version = "2.5.0"
@@ -35,6 +32,12 @@ dependencies = [
35
32
  "generic-array",
36
33
  ]
37
34
 
35
+ [[package]]
36
+ name = "bytemuck"
37
+ version = "1.16.1"
38
+ source = "registry+https://github.com/rust-lang/crates.io-index"
39
+ checksum = "b236fc92302c97ed75b38da1f4917b5cdda4984745740f153a5d3059e48d725e"
40
+
38
41
  [[package]]
39
42
  name = "cc"
40
43
  version = "1.0.83"
@@ -99,9 +102,9 @@ dependencies = [
99
102
 
100
103
  [[package]]
101
104
  name = "heck"
102
- version = "0.4.1"
105
+ version = "0.5.0"
103
106
  source = "registry+https://github.com/rust-lang/crates.io-index"
104
- checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
107
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
105
108
 
106
109
  [[package]]
107
110
  name = "indoc"
@@ -115,21 +118,11 @@ version = "0.2.154"
115
118
  source = "registry+https://github.com/rust-lang/crates.io-index"
116
119
  checksum = "ae743338b92ff9146ce83992f766a31066a91a8c84a45e0e9f21e7cf6de6d346"
117
120
 
118
- [[package]]
119
- name = "lock_api"
120
- version = "0.4.10"
121
- source = "registry+https://github.com/rust-lang/crates.io-index"
122
- checksum = "c1cc9717a20b1bb222f333e6a92fd32f7d8a18ddc5a3191a11af45dcbf4dcd16"
123
- dependencies = [
124
- "autocfg",
125
- "scopeguard",
126
- ]
127
-
128
121
  [[package]]
129
122
  name = "mac_address"
130
- version = "1.1.6"
123
+ version = "1.1.7"
131
124
  source = "registry+https://github.com/rust-lang/crates.io-index"
132
- checksum = "5aa12182b93606fff55b70a5cfe6130eaf7407c2ea4f2c2bcc8b113b67c9928f"
125
+ checksum = "8836fae9d0d4be2c8b4efcdd79e828a2faa058a90d005abf42f91cac5493a08e"
133
126
  dependencies = [
134
127
  "nix",
135
128
  "winapi",
@@ -160,7 +153,7 @@ version = "0.28.0"
160
153
  source = "registry+https://github.com/rust-lang/crates.io-index"
161
154
  checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4"
162
155
  dependencies = [
163
- "bitflags 2.5.0",
156
+ "bitflags",
164
157
  "cfg-if",
165
158
  "cfg_aliases",
166
159
  "libc",
@@ -173,29 +166,6 @@ version = "1.18.0"
173
166
  source = "registry+https://github.com/rust-lang/crates.io-index"
174
167
  checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
175
168
 
176
- [[package]]
177
- name = "parking_lot"
178
- version = "0.12.1"
179
- source = "registry+https://github.com/rust-lang/crates.io-index"
180
- checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
181
- dependencies = [
182
- "lock_api",
183
- "parking_lot_core",
184
- ]
185
-
186
- [[package]]
187
- name = "parking_lot_core"
188
- version = "0.9.8"
189
- source = "registry+https://github.com/rust-lang/crates.io-index"
190
- checksum = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447"
191
- dependencies = [
192
- "cfg-if",
193
- "libc",
194
- "redox_syscall",
195
- "smallvec",
196
- "windows-targets",
197
- ]
198
-
199
169
  [[package]]
200
170
  name = "portable-atomic"
201
171
  version = "1.6.0"
@@ -210,24 +180,24 @@ checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
210
180
 
211
181
  [[package]]
212
182
  name = "proc-macro2"
213
- version = "1.0.67"
183
+ version = "1.0.86"
214
184
  source = "registry+https://github.com/rust-lang/crates.io-index"
215
- checksum = "3d433d9f1a3e8c1263d9456598b16fec66f4acc9a74dacffd35c7bb09b3a1328"
185
+ checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
216
186
  dependencies = [
217
187
  "unicode-ident",
218
188
  ]
219
189
 
220
190
  [[package]]
221
191
  name = "pyo3"
222
- version = "0.21.2"
192
+ version = "0.22.0"
223
193
  source = "registry+https://github.com/rust-lang/crates.io-index"
224
- checksum = "a5e00b96a521718e08e03b1a622f01c8a8deb50719335de3f60b3b3950f069d8"
194
+ checksum = "1962a33ed2a201c637fc14a4e0fd4e06e6edfdeee6a5fede0dab55507ad74cf7"
225
195
  dependencies = [
226
196
  "cfg-if",
227
197
  "indoc",
228
198
  "libc",
229
199
  "memoffset",
230
- "parking_lot",
200
+ "once_cell",
231
201
  "portable-atomic",
232
202
  "pyo3-build-config",
233
203
  "pyo3-ffi",
@@ -237,9 +207,9 @@ dependencies = [
237
207
 
238
208
  [[package]]
239
209
  name = "pyo3-build-config"
240
- version = "0.21.2"
210
+ version = "0.22.0"
241
211
  source = "registry+https://github.com/rust-lang/crates.io-index"
242
- checksum = "7883df5835fafdad87c0d888b266c8ec0f4c9ca48a5bed6bbb592e8dedee1b50"
212
+ checksum = "ab7164b2202753bd33afc7f90a10355a719aa973d1f94502c50d06f3488bc420"
243
213
  dependencies = [
244
214
  "once_cell",
245
215
  "python3-dll-a",
@@ -248,9 +218,9 @@ dependencies = [
248
218
 
249
219
  [[package]]
250
220
  name = "pyo3-ffi"
251
- version = "0.21.2"
221
+ version = "0.22.0"
252
222
  source = "registry+https://github.com/rust-lang/crates.io-index"
253
- checksum = "01be5843dc60b916ab4dad1dca6d20b9b4e6ddc8e15f50c47fe6d85f1fb97403"
223
+ checksum = "c6424906ca49013c0829c5c1ed405e20e2da2dc78b82d198564880a704e6a7b7"
254
224
  dependencies = [
255
225
  "libc",
256
226
  "pyo3-build-config",
@@ -258,9 +228,9 @@ dependencies = [
258
228
 
259
229
  [[package]]
260
230
  name = "pyo3-macros"
261
- version = "0.21.2"
231
+ version = "0.22.0"
262
232
  source = "registry+https://github.com/rust-lang/crates.io-index"
263
- checksum = "77b34069fc0682e11b31dbd10321cbf94808394c56fd996796ce45217dfac53c"
233
+ checksum = "82b2f19e153122d64afd8ce7aaa72f06a00f52e34e1d1e74b6d71baea396460a"
264
234
  dependencies = [
265
235
  "proc-macro2",
266
236
  "pyo3-macros-backend",
@@ -270,9 +240,9 @@ dependencies = [
270
240
 
271
241
  [[package]]
272
242
  name = "pyo3-macros-backend"
273
- version = "0.21.2"
243
+ version = "0.22.0"
274
244
  source = "registry+https://github.com/rust-lang/crates.io-index"
275
- checksum = "08260721f32db5e1a5beae69a55553f56b99bd0e1c3e6e0a5e8851a9d0f5a85c"
245
+ checksum = "dd698c04cac17cf0fe63d47790ab311b8b25542f5cb976b65c374035c50f1eef"
276
246
  dependencies = [
277
247
  "heck",
278
248
  "proc-macro2",
@@ -292,9 +262,9 @@ dependencies = [
292
262
 
293
263
  [[package]]
294
264
  name = "quote"
295
- version = "1.0.33"
265
+ version = "1.0.36"
296
266
  source = "registry+https://github.com/rust-lang/crates.io-index"
297
- checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae"
267
+ checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"
298
268
  dependencies = [
299
269
  "proc-macro2",
300
270
  ]
@@ -329,38 +299,17 @@ dependencies = [
329
299
  "getrandom",
330
300
  ]
331
301
 
332
- [[package]]
333
- name = "redox_syscall"
334
- version = "0.3.5"
335
- source = "registry+https://github.com/rust-lang/crates.io-index"
336
- checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29"
337
- dependencies = [
338
- "bitflags 1.3.2",
339
- ]
340
-
341
- [[package]]
342
- name = "scopeguard"
343
- version = "1.2.0"
344
- source = "registry+https://github.com/rust-lang/crates.io-index"
345
- checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
346
-
347
302
  [[package]]
348
303
  name = "sha1_smol"
349
304
  version = "1.0.0"
350
305
  source = "registry+https://github.com/rust-lang/crates.io-index"
351
306
  checksum = "ae1a47186c03a32177042e55dbc5fd5aee900b8e0069a8d70fba96a9375cd012"
352
307
 
353
- [[package]]
354
- name = "smallvec"
355
- version = "1.11.1"
356
- source = "registry+https://github.com/rust-lang/crates.io-index"
357
- checksum = "942b4a808e05215192e39f4ab80813e599068285906cc91aa64f923db842bd5a"
358
-
359
308
  [[package]]
360
309
  name = "syn"
361
- version = "2.0.43"
310
+ version = "2.0.68"
362
311
  source = "registry+https://github.com/rust-lang/crates.io-index"
363
- checksum = "ee659fb5f3d355364e1f3e5bc10fb82068efbf824a1e9d1c9504244a6469ad53"
312
+ checksum = "901fa70d88b9d6c98022e23b4136f9f3e54e4662c3bc1bd1d84a42a9a0f0c1e9"
364
313
  dependencies = [
365
314
  "proc-macro2",
366
315
  "quote",
@@ -369,9 +318,9 @@ dependencies = [
369
318
 
370
319
  [[package]]
371
320
  name = "target-lexicon"
372
- version = "0.12.11"
321
+ version = "0.12.14"
373
322
  source = "registry+https://github.com/rust-lang/crates.io-index"
374
- checksum = "9d0e916b1148c8e263850e1ebcbd046f333e0683c724876bb0da63ea4373dc8a"
323
+ checksum = "e1fc403891a21bcfb7c37834ba66a547a8f402146eba7265b5a6d88059c9ff2f"
375
324
 
376
325
  [[package]]
377
326
  name = "typenum"
@@ -393,9 +342,9 @@ checksum = "c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce"
393
342
 
394
343
  [[package]]
395
344
  name = "uuid"
396
- version = "1.8.0"
345
+ version = "1.9.1"
397
346
  source = "registry+https://github.com/rust-lang/crates.io-index"
398
- checksum = "a183cf7feeba97b4dd1c0d46788634f6221d87fa961b305bed08c851829efcc0"
347
+ checksum = "5de17fd2f7da591098415cff336e12965a28061ddace43b59cb3c430179c9439"
399
348
  dependencies = [
400
349
  "atomic",
401
350
  "getrandom",
@@ -406,7 +355,7 @@ dependencies = [
406
355
 
407
356
  [[package]]
408
357
  name = "uuid-utils"
409
- version = "0.8.0"
358
+ version = "0.9.0"
410
359
  dependencies = [
411
360
  "mac_address",
412
361
  "pyo3",
@@ -447,60 +396,3 @@ name = "winapi-x86_64-pc-windows-gnu"
447
396
  version = "0.4.0"
448
397
  source = "registry+https://github.com/rust-lang/crates.io-index"
449
398
  checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
450
-
451
- [[package]]
452
- name = "windows-targets"
453
- version = "0.48.5"
454
- source = "registry+https://github.com/rust-lang/crates.io-index"
455
- checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
456
- dependencies = [
457
- "windows_aarch64_gnullvm",
458
- "windows_aarch64_msvc",
459
- "windows_i686_gnu",
460
- "windows_i686_msvc",
461
- "windows_x86_64_gnu",
462
- "windows_x86_64_gnullvm",
463
- "windows_x86_64_msvc",
464
- ]
465
-
466
- [[package]]
467
- name = "windows_aarch64_gnullvm"
468
- version = "0.48.5"
469
- source = "registry+https://github.com/rust-lang/crates.io-index"
470
- checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
471
-
472
- [[package]]
473
- name = "windows_aarch64_msvc"
474
- version = "0.48.5"
475
- source = "registry+https://github.com/rust-lang/crates.io-index"
476
- checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
477
-
478
- [[package]]
479
- name = "windows_i686_gnu"
480
- version = "0.48.5"
481
- source = "registry+https://github.com/rust-lang/crates.io-index"
482
- checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
483
-
484
- [[package]]
485
- name = "windows_i686_msvc"
486
- version = "0.48.5"
487
- source = "registry+https://github.com/rust-lang/crates.io-index"
488
- checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
489
-
490
- [[package]]
491
- name = "windows_x86_64_gnu"
492
- version = "0.48.5"
493
- source = "registry+https://github.com/rust-lang/crates.io-index"
494
- checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
495
-
496
- [[package]]
497
- name = "windows_x86_64_gnullvm"
498
- version = "0.48.5"
499
- source = "registry+https://github.com/rust-lang/crates.io-index"
500
- checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
501
-
502
- [[package]]
503
- name = "windows_x86_64_msvc"
504
- version = "0.48.5"
505
- source = "registry+https://github.com/rust-lang/crates.io-index"
506
- checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "uuid-utils"
3
- version = "0.8.0"
3
+ version = "0.9.0"
4
4
  edition = "2021"
5
5
 
6
6
  [lib]
@@ -8,7 +8,7 @@ name = "uuid_utils"
8
8
  crate-type = ["cdylib"]
9
9
 
10
10
  [dependencies]
11
- mac_address = "1.1.6"
12
- pyo3 = { version = "0.21.2", features = ["extension-module", "generate-import-lib"] }
11
+ mac_address = "1.1.7"
12
+ pyo3 = { version = "0.22.0", features = ["extension-module", "generate-import-lib"] }
13
13
  rand = "0.8.5"
14
- uuid = { version = "1.8.0", features = ["v1", "v3", "v4", "v5", "v6", "v7", "v8", "fast-rng"]}
14
+ uuid = { version = "1.9.1", features = ["v1", "v3", "v4", "v5", "v6", "v7", "v8", "fast-rng"]}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: uuid_utils
3
- Version: 0.8.0
3
+ Version: 0.9.0
4
4
  Classifier: Development Status :: 3 - Alpha
5
5
  Classifier: Programming Language :: Python
6
6
  Classifier: Programming Language :: Python :: 3
@@ -48,6 +48,7 @@ impl UUID {
48
48
  };
49
49
 
50
50
  #[new]
51
+ #[pyo3(signature = (hex=None, bytes=None, bytes_le=None, fields=None, int=None, version=None))]
51
52
  fn new(
52
53
  hex: Option<&str>,
53
54
  bytes: Option<&Bound<'_, PyBytes>>,
@@ -308,6 +309,7 @@ impl UUID {
308
309
  }
309
310
 
310
311
  #[pyfunction]
312
+ #[pyo3(signature = (node=None, clock_seq=None))]
311
313
  fn uuid1(node: Option<u64>, clock_seq: Option<u64>) -> PyResult<UUID> {
312
314
  let node = match node {
313
315
  Some(node) => node.to_ne_bytes(),
@@ -356,6 +358,7 @@ fn uuid5(namespace: &UUID, name: StringOrBytes) -> PyResult<UUID> {
356
358
  }
357
359
 
358
360
  #[pyfunction]
361
+ #[pyo3(signature = (node=None, timestamp=None, nanos=None))]
359
362
  fn uuid6(node: Option<u64>, timestamp: Option<u64>, nanos: Option<u32>) -> PyResult<UUID> {
360
363
  let node = match node {
361
364
  Some(node) => node.to_ne_bytes(),
@@ -377,6 +380,7 @@ fn uuid6(node: Option<u64>, timestamp: Option<u64>, nanos: Option<u32>) -> PyRes
377
380
  }
378
381
 
379
382
  #[pyfunction]
383
+ #[pyo3(signature = (timestamp=None, nanos=None))]
380
384
  fn uuid7(timestamp: Option<u64>, nanos: Option<u32>) -> PyResult<UUID> {
381
385
  let uuid = match timestamp {
382
386
  Some(timestamp) => {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes