You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support UUIDv6, UUIDv7, and UUIDv8 from RFC 9562 #89083
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=Noneclosed_at=Nonecreated_at=<Date2021-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=<Date2021-08-17.00:36:53.563>user='https://github.com/stevesimmons'
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].
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?
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