Repository navigation
Support UUIDv6, UUIDv7, and UUIDv8 from RFC 9562 #89083
Copy link
Copy link
Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Description
| BPO | 44920 |
|---|---|
| Nosy | @serhiy-storchaka, @loganasherjones, @stevesimmons |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = None
created_at = <Date 2021-08-15.17:26:05.956>
labels = ['type-feature', 'library', '3.11']
title = 'Support UUIDv6, UUIDv7, and UUIDv8 from the new version of RFC4122'
updated_at = <Date 2021-08-17.00:36:53.563>
user = 'https://github.com/stevesimmons'bugs.python.org fields:
activity = <Date 2021-08-17.00:36:53.563>
actor = 'loganasherjones'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2021-08-15.17:26:05.956>
creator = 'stevesimmons'
dependencies = []
files = []
hgrepos = []
issue_num = 44920
keywords = []
message_count = 2.0
messages = ['399624', '399647']
nosy_count = 3.0
nosy_names = ['serhiy.storchaka', 'loganasherjones', 'stevesimmons']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue44920'
versions = ['Python 3.11']Linked PRs
- gh-89083: add support for UUID version 6 (RFC 9562) #120650
- gh-89083: support UUID version 7 (monotonous version) (RFC 9562) [abandoned proposal] #120830
- gh-89083: add support for UUID version 7 (RFC 9562) #121119
- gh-89083: add support for UUID version 8 (RFC 9562) #123224
- gh-89083: small docs fixup for UUIDv8 #126857
- gh-89083: improve UUIDv8 uniqueness tests #128149
- gh-89083: Attaching RFC links in UUID docs #135684
- [3.14] gh-89083: add links to RFC 9562 sections in UUID docs (GH-135684) #135747
- gh-89083: Add CLI tests for
UUIDv{6,7,8}#136548 - [3.14] gh-89083: Add CLI tests for
UUIDv{6,7,8}(GH-136548) #136576 - gh-137847: Add typical usage for uuid 6,7,8 in
/lib/uuid.py#137801
Related
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Activity
stevesimmons commentedon Aug 15, 2021
Three new types of UUIDs have been proposed in the latest draft of the next version of RFC4122. Full text of that draft is in [1] (published 21 April 2021; draft period ends 21 Oct 2021).
Support for these should be included in uuid.py for Python 3.11, with backport for 3.9 and 3.10. The timetable for Python 3.11 should fit with the end of the IETF draft period.
Implementation should be similar to the existing UUID classes in uuid.py, the prototypes in [2], or even parts of my own uuid6 version [3].
[1] https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format
[2] https://github.com/uuid6/prototypes/tree/main/python
[3] https://github.com/stevesimmons/pyuuid6/blob/main/uuid6.py
serhiy-storchaka commentedon Aug 16, 2021
It is a new feature, and we usually do not backport new features to old Python versions, so it can only be included in Python 3.11 (backports can be provided by third-party libraries). Do you want to create a PR?
freundTech commentedon Sep 8, 2022
Is there anyone currently working on this?
If not I'd like to have a look at implementing this.
ambv commentedon Oct 15, 2023
Note: the spec for UUIDv5 - UUIDv8 is still a draft, it's still being revised:
https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis
Therefore, it is too early to add this to the Python standard library.
62 remaining items
vstinner commentedon Mar 4, 2025
I suggest to open a new issue for your feature request.
gh-89083: add links to RFC 9562 sections in UUID docs (#135684)
pythongh-89083: add links to RFC 9562 sections in UUID docs (pythonGH…
[3.14] gh-89083: add links to RFC 9562 sections in UUID docs (GH-135684…
gh-89083: Add CLI tests for `UUIDv{6,7,8}` (#136548)
pythongh-89083: Add CLI tests for `UUIDv{6,7,8}` (pythonGH-136548)
[3.14] gh-89083: Add CLI tests for `UUIDv{6,7,8}` (GH-136548) (#136576)
pythongh-89083: add links to RFC 9562 sections in UUID docs (python#1…
pythongh-89083: Add CLI tests for `UUIDv{6,7,8}` (python#136548)
pythongh-89083: Add CLI tests for `UUIDv{6,7,8}` (python#136548)
pythongh-89083: add links to RFC 9562 sections in UUID docs (python#1…
pythongh-89083: Add CLI tests for `UUIDv{6,7,8}` (python#136548)
pythongh-89083: add links to RFC 9562 sections in UUID docs (python#1…
pythongh-89083: Add CLI tests for `UUIDv{6,7,8}` (python#136548)
[3.14] pythongh-89083: Add CLI tests for `UUIDv{6,7,8}` (pythonGH-136548