{
  "id": "task_libraries:uuid/python",
  "path": "/exapedia/python-uuid-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python UUID libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python UUID libraries generate universally unique identifiers beyond what the standard library's uuid module offers. A time-ordered UUID places a timestamp in its leading bits rather than filling every bit at random. These libraries let apps and databases create sortable identifiers that stay unique across machines."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python UUID libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#uuid-utils",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F123"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F124"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F6"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F127"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F125"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fastuuid",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F140"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#shortuuid",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F155"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F29"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#uuid6",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F54"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#uuidseven-standard",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F189"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "pypi"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#uuid-utils",
          "label": [
            {
              "t": "text",
              "text": "uuid-utils"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F124"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Final-standard time-ordered UUIDs",
            "Bulk random UUID generation",
            "Custom alphabet codec",
            "Explicit time argument"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#uuid-utils",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F123"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fastuuid",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F140"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#shortuuid",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F155"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#uuid6",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#uuidseven-standard",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F189"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "uuid-utils",
          "name": [
            {
              "t": "fact",
              "fact": "F123"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/aminalaee/uuid-utils"
            },
            {
              "label": "pypi",
              "href": "https://pypi.org/project/uuid-utils"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/aminalaee/uuid-utils/readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F11"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F124"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F6"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F126"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F125"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/aminalaee/uuid-utils/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F123"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F12"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/tensorzero/tensorzero",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F138"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def uuid7() -> UUID:\n    \"\"\"\n    Generate a UUIDv7 using the uuid_utils compatibility layer.\n    This ensures type compatibility with the rest of the TensorZero client.\n    \"\"\"\n    return compat.uuid7()",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/tensorzero/tensorzero/blob/62eb8f63e8ec62018d70420dbf1a8c5d1c026315/crates/tensorzero-python/tensorzero/util.py#L6-L11",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F137"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20applications%20using%20uuid-utils%20for%20UUID%20generation%2C%20stable%20stream%20identifiers%2C%20timestamp%20adaptation%20and%20database%20fields&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F123"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import uuid_utils\n\nprint(uuid_utils.uuid4())\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/aminalaee/uuid-utils/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F128"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "fastuuid",
          "name": [
            {
              "t": "fact",
              "fact": "F140"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/thedrow/fastuuid"
            },
            {
              "label": "pypi",
              "href": "https://pypi.org/project/fastuuid"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/thedrow/fastuuid/readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F147"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/thedrow/fastuuid/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F140"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import fastuuid\n\nprint(fastuuid.uuid4())\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/thedrow/fastuuid/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=fastuuid%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F140"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F145"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "shortuuid",
          "name": [
            {
              "t": "fact",
              "fact": "F155"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/skorokithakis/shortuuid"
            },
            {
              "label": "pypi",
              "href": "https://pypi.org/project/shortuuid"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/skorokithakis/shortuuid/readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F34"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F29"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/skorokithakis/shortuuid/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F155"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F35"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F36"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F37"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/django-extensions/django-extensions",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F170"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def create_uuid(self):\n    if not self.version or self.version == 4:\n        return shortuuid.uuid()\n    elif self.version == 1:\n        return shortuuid.uuid()\n    elif self.version == 2:\n        raise UUIDVersionError(\"UUID version 2 is not supported.\")\n    elif self.version == 3:\n        raise UUIDVersionError(\"UUID version 3 is not supported.\")\n    elif self.version == 5:\n        return shortuuid.uuid(name=self.namespace)\n    else:\n        raise UUIDVersionError(\"UUID version %s is not valid.\" % self.version)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/django-extensions/django-extensions/blob/9bdf31556675e795c7c7c4f033f194dc075d5919/django_extensions/db/fields/__init__.py#L633-L645",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F169"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20applications%20using%20shortuuid%20for%20UUID%20generation%2C%20stable%20stream%20identifiers%2C%20timestamp%20adaptation%20and%20database%20fields&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F155"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import shortuuid\n\nprint(shortuuid.uuid())\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/skorokithakis/shortuuid/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F160"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "uuid6",
          "name": [
            {
              "t": "fact",
              "fact": "F172"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/oittaa/uuid6-python"
            },
            {
              "label": "pypi",
              "href": "https://pypi.org/project/uuid6"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/oittaa/uuid6-python/readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F58"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F54"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/oittaa/uuid6-python/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F172"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F59"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F60"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F61"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F62"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/prowler-cloud/prowler",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F187"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def uuid7_range_bound(dt: datetime) -> UUID:\n    \"\"\"\n    Returns the lowest UUIDv7 whose timestamp is the millisecond containing `dt`.\n\n    Partition bounds have to be derived, not generated: two calls for the same\n    instant must give the same literal, and consecutive windows must meet\n    exactly. `datetime_to_uuid7` fills the sequence and node fields with\n    randomness, which is right for an identifier and wrong for a bound -- a\n    bound a millisecond wide with a random tail leaves the values above it in\n    that millisecond outside every partition.\n\n    The millisecond is counted with integer arithmetic rather than through\n    `dt.timestamp() * 1000`: past year 2249 a float second no longer resolves a\n    millisecond, so an instant in the last microsecond of one rounds up into the\n    next, putting the bound a millisecond above the values it exists to include.\n\n    Args:\n        dt: The instant the bound sits at. A naive `dt` is read as local time,\n            the same way `datetime.timestamp()` reads it.\n\n    Returns:\n        UUID: The smallest UUIDv7 in `dt`'s millisecond.\n    \"\"\"\n    since_epoch = dt.astimezone(UTC) - datetime(1970, 1, 1, tzinfo=UTC)\n    timestamp_ms = (since_epoch // timedelta(milliseconds=1)) & 0xFFFFFFFFFFFF\n    # Version 7 in bits 76-79 and variant \"10\" in bits 62-63; every other bit zero.\n    return UUID(int=(timestamp_ms << 80) | (0x7 << 76) | (0x2 << 62))",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/prowler-cloud/prowler/blob/259c2930d04229ac8ef9bf20d70477c486ae1847/api/src/backend/api/uuid_utils.py#L35-L61",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F186"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20applications%20using%20uuid6%20for%20UUID%20generation%2C%20stable%20stream%20identifiers%2C%20timestamp%20adaptation%20and%20database%20fields&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F172"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from uuid6 import uuid7\n\nprint(uuid7())\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/oittaa/uuid6-python/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F177"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "uuidseven-standard",
          "name": [
            {
              "t": "fact",
              "fact": "F189"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/LeoVasanko/uuid7-standard"
            },
            {
              "label": "pypi",
              "href": "https://pypi.org/project/uuid7-standard"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/LeoVasanko/uuid7-standard/readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F196"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/LeoVasanko/uuid7-standard/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F189"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import uuid7\n\nprint(uuid7.create())\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/LeoVasanko/uuid7-standard/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=uuid7-standard%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F189"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F194"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python UUID library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#uuid-utils",
          "label": [
            {
              "t": "text",
              "text": "uuid-utils"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits fast UUID generation, with a compatibility module for frameworks that need standard-library objects. "
        },
        {
          "t": "link",
          "href": "#uuid6",
          "label": [
            {
              "t": "fact",
              "fact": "F172"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits time-ordered identifiers and conversion of legacy time-based UUIDs. "
        },
        {
          "t": "link",
          "href": "#shortuuid",
          "label": [
            {
              "t": "text",
              "text": "shortuuid"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits compact, readable identifiers."
        }
      ]
    },
    {
      "q": "How do I generate time-ordered UUIDs in Python?",
      "a": [
        {
          "t": "link",
          "href": "#uuid6",
          "label": [
            {
              "t": "fact",
              "fact": "F172"
            }
          ]
        },
        {
          "t": "text",
          "text": " generates identifiers ordered by their timestamp. Its time-based generation functions are not thread-safe."
        }
      ]
    },
    {
      "q": "Is uuid-utils compatible with the standard uuid module?",
      "a": [
        {
          "t": "text",
          "text": "Through uuid_utils.compat. That module returns standard-library UUID objects for frameworks that require them."
        }
      ]
    },
    {
      "q": "What is shortuuid?",
      "a": [
        {
          "t": "link",
          "href": "#shortuuid",
          "label": [
            {
              "t": "text",
              "text": "shortuuid"
            }
          ]
        },
        {
          "t": "text",
          "text": " encodes UUIDs as compact strings with an alphabet that removes similar-looking characters. Its encode and decode functions round-trip an existing UUID."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, uuid-utils",
      "display": "uuid-utils",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, uuid-utils",
      "display": "88.9M",
      "asOf": "2026-11-17"
    },
    "F3": {
      "label": "License, uuid-utils",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, uuid-utils",
      "display": "1.2.0, Oct 2026",
      "asOf": "2026-10-26"
    },
    "F5": {
      "label": "Package release date, uuid-utils",
      "display": "Oct 2026",
      "asOf": "2026-10-26"
    },
    "F6": {
      "label": "Repository stars, uuid-utils",
      "display": "375",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Random UUIDs, uuid-utils",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Time-ordered UUIDs, uuid-utils",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Name-based UUIDs, uuid-utils",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Install, uuid-utils",
      "display": "pip install uuid-utils",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "What it does, uuid-utils",
      "display": "Provides Rust-backed UUID generation with an optional standard-library compatibility interface.",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "strengths lead, uuid-utils",
      "display": "Provides random and named identifiers",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths, uuid-utils",
      "display": "Generate random UUIDs or derive them from a name and namespace.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, uuid-utils",
      "display": "Returns standard-library objects through compatibility",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, uuid-utils",
      "display": "Use uuid_utils.compat when a framework requires standard-library UUID objects.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "limitations lead, uuid-utils",
      "display": "Default object types can conflict",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations, uuid-utils",
      "display": "Switch to uuid_utils.compat for frameworks requiring standard-library UUID instances.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "Quickstart, uuid-utils",
      "display": "import uuid_utils as uuid\nuuid.uuid4()\nuuid.uuid7()\nuuid.uuid5(uuid.NAMESPACE_DNS, 'python.org')\nuuid.uuid3(uuid.NAMESPACE_DNS, 'python.org')\n",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "Project function, uuid-utils",
      "display": "def uuid7(nanoseconds: int | None = None) -> UUID:\n    \"\"\"Generate a UUID from a Unix timestamp in nanoseconds and random bits.\n\n    UUIDv7 objects feature monotonicity within a millisecond.\n\n    Args:\n        nanoseconds: Optional ns timestamp. If not provided, uses current time.\n\n    Returns:\n        A UUIDv7 object.\n    \"\"\"\n    # --- 48 ---   -- 4 --   --- 12 ---   -- 2 --   --- 30 ---   - 32 -\n    # unix_ts_ms | version | counter_hi | variant | counter_lo | random\n    #\n    # 'counter = counter_hi | counter_lo' is a 42-bit counter constructed\n    # with Method 1 of RFC 9562, §6.2, and its MSB is set to 0.\n    #\n    # 'random' is a 32-bit random value regenerated for every new UUID.\n    #\n    # If multiple UUIDs are generated within the same millisecond, the LSB\n    # of 'counter' is incremented by 1. When overflowing, the timestamp is\n    # advanced and the counter is reset to a random 42-bit integer with MSB\n    # set to 0.\n\n    # For now, just delegate to the uuid_utils implementation\n    if nanoseconds is None:\n        return _uuid_utils_uuid7()\n    seconds, nanos = _to_timestamp_and_nanos(nanoseconds)\n    return _uuid_utils_uuid7(timestamp=seconds, nanos=nanos)\n",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Project function reference, uuid-utils",
      "display": "uuid.py · uuid7()",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project repository, uuid-utils",
      "display": "langchain-ai/langchain",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project stars, langchain-ai/langchain",
      "display": "149.7K",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project push date, langchain-ai/langchain",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Library name, shortuuid",
      "display": "shortuuid",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Monthly downloads, shortuuid",
      "display": "23.3M",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "License, shortuuid",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Package release, shortuuid",
      "display": "1.0.13, Mar 2024",
      "asOf": "2024-03-11"
    },
    "F28": {
      "label": "Package release date, shortuuid",
      "display": "Mar 2024",
      "asOf": "2024-03-11"
    },
    "F29": {
      "label": "Repository stars, shortuuid",
      "display": "2.2K",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Random UUIDs, shortuuid",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Name-based UUIDs, shortuuid",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "UUID parsing, shortuuid",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Install, shortuuid",
      "display": "pip install shortuuid",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "What it does, shortuuid",
      "display": "Encodes UUIDs as compact strings using a customizable alphabet.",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "strengths lead, shortuuid",
      "display": "Produces compact readable identifiers",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "strengths, shortuuid",
      "display": "The default alphabet removes similar-looking characters.",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "strengths lead, shortuuid",
      "display": "Converts existing UUIDs both ways",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths, shortuuid",
      "display": "Use encode and decode to round-trip an existing UUID.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "limitations lead, shortuuid",
      "display": "Truncation discards identifier information",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "limitations, shortuuid",
      "display": "Shortened strings lose the original UUID’s uniqueness properties.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "limitations lead, shortuuid",
      "display": "Older encodings need legacy decoding",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations, shortuuid",
      "display": "Use legacy=True when decoding strings from the old encoding.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "Quickstart, shortuuid",
      "display": "import shortuuid\nsu = shortuuid.ShortUUID(alphabet=\"01345678\")\nsu.uuid()\nsu.get_alphabet()\nsu.set_alphabet(\"21345687654123456\")\nsu.get_alphabet()\n",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "Project function, shortuuid",
      "display": "def create_uuid(self):\n    if not self.version or self.version == 4:\n        return shortuuid.uuid()\n    elif self.version == 1:\n        return shortuuid.uuid()\n    elif self.version == 2:\n        raise UUIDVersionError(\"UUID version 2 is not supported.\")\n    elif self.version == 3:\n        raise UUIDVersionError(\"UUID version 3 is not supported.\")\n    elif self.version == 5:\n        return shortuuid.uuid(name=self.namespace)\n    else:\n        raise UUIDVersionError(\"UUID version %s is not valid.\" % self.version)\n",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Project function reference, shortuuid",
      "display": "__init__.py · create_uuid()",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project repository, shortuuid",
      "display": "django-extensions/django-extensions",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project stars, django-extensions/django-extensions",
      "display": "6.8K",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project push date, django-extensions/django-extensions",
      "display": "Aug 2026",
      "asOf": "2026-08-31"
    },
    "F49": {
      "label": "Library name, uuid6",
      "display": "uuid6",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Monthly downloads, uuid6",
      "display": "11.0M",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "License, uuid6",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Package release, uuid6",
      "display": "2025.0.1, Jul 2025",
      "asOf": "2025-07-04"
    },
    "F53": {
      "label": "Package release date, uuid6",
      "display": "Jul 2025",
      "asOf": "2025-07-04"
    },
    "F54": {
      "label": "Repository stars, uuid6",
      "display": "182",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Time-ordered UUIDs, uuid6",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "UUID parsing, uuid6",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Install, uuid6",
      "display": "pip install uuid6",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "What it does, uuid6",
      "display": "Generates time-based UUIDs and converts legacy time-based UUIDs to reordered UUIDs.",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "strengths lead, uuid6",
      "display": "Generates time-ordered identifiers",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "strengths, uuid6",
      "display": "Use uuid7 for identifiers ordered by their timestamp.",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "strengths lead, uuid6",
      "display": "Converts legacy UUIDs",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "strengths, uuid6",
      "display": "Use uuid1_to_uuid6 to reorder an existing version-one UUID.",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "limitations lead, uuid6",
      "display": "Generation needs thread coordination",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "limitations, uuid6",
      "display": "Its time-based generation functions are not thread-safe.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "Quickstart, uuid6",
      "display": "import uuid6\n\nmy_uuid = uuid6.uuid6()\nprint(my_uuid)\nassert my_uuid < uuid6.uuid6()\n\nmy_uuid = uuid6.uuid7()\nprint(my_uuid)\nassert my_uuid < uuid6.uuid7()\n\nmy_uuid = uuid6.uuid8()\nprint(my_uuid)\nassert my_uuid < uuid6.uuid8()\n\nimport uuid\n\nmy_uuid = uuid.UUID(hex=\"C232AB00-9414-11EC-B3C8-9E6BDECED846\")\nassert uuid6.uuid1_to_uuid6(my_uuid) == uuid.UUID(hex=\"1EC9414C-232A-6B00-B3C8-9E6BDECED846\")\n",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "Library name, uuid",
      "display": "uuid",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "Monthly downloads, uuid",
      "display": "Standard library",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "License, uuid",
      "display": "PSF License Version 2",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "Package release, uuid",
      "display": "With Python",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "Undated package release, uuid",
      "display": "With Python",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Repository context, uuid",
      "display": "Part of Python",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Random UUIDs, uuid",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Time-ordered UUIDs, uuid",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Name-based UUIDs, uuid",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "UUID parsing, uuid",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Install, uuid",
      "display": "Bundled with Python",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "What it does, uuid",
      "display": "Provides standard-library UUID generation and immutable UUID objects.",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "strengths lead, uuid",
      "display": "Ships with Python",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "strengths, uuid",
      "display": "Generate and parse UUIDs without installing another package.",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "strengths lead, uuid",
      "display": "Supports named identifiers",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "strengths, uuid",
      "display": "Use uuid5 with a namespace and name for name-based UUIDs.",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "limitations lead, uuid",
      "display": "Host-based identifiers reveal network addresses",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "limitations, uuid",
      "display": "uuid1 includes the computer’s network address.",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "limitations lead, uuid",
      "display": "Custom-field UUIDs use insecure defaults",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "limitations, uuid",
      "display": "uuid8 defaults are not cryptographically secure; use uuid4 for secure randomness.",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Quickstart, uuid",
      "display": "import uuid\nuuid.uuid1()\nuuid.uuid3(uuid.NAMESPACE_DNS, 'python.org')\nuuid.uuid4()\nuuid.uuid5(uuid.NAMESPACE_DNS, 'python.org')\nx = uuid.UUID('{00010203-0405-0607-0809-0a0b0c0d0e0f}')\nstr(x)\nx.bytes\nuuid.UUID(bytes=x.bytes)\nuuid.NIL\nuuid.MAX\nuuid.uuid6()\nu = uuid.uuid7()\nu.time\nimport datetime as dt\ndt.datetime.fromtimestamp(u.time / 1000)\nuuid.uuid8(0x12345678, 0x9abcdef0, 0x11223344)\n",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Project function, uuid",
      "display": "async def process_agent_stream_events(\n    async_stream: AsyncIterator[StreamEvent],\n    response_id: str | None = None,\n) -> AsyncGenerator[ResponsesAgentStreamEvent, None]:\n    curr_item_id = str(uuid4())\n    async for event in async_stream:\n        if event.type == \"raw_response_event\":\n            event_data = event.data.model_dump()\n            if response_id is not None:\n                event_data = replace_fake_id(event_data, response_id)\n            if event_data[\"type\"] == \"response.output_item.added\":\n                curr_item_id = str(uuid4())\n                event_data[\"item\"][\"id\"] = curr_item_id\n            elif event_data.get(\"item\") is not None and event_data[\"item\"].get(\"id\") is not None:\n                event_data[\"item\"][\"id\"] = curr_item_id\n            elif event_data.get(\"item_id\") is not None:\n                event_data[\"item_id\"] = curr_item_id\n            yield event_data\n        elif event.type == \"run_item_stream_event\" and event.item.type == \"tool_call_output_item\":\n            yield ResponsesAgentStreamEvent(\n                type=\"response.output_item.done\",\n                item=event.item.to_input_item(),\n            )\n",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Project function reference, uuid",
      "display": "utils.py · process_agent_stream_events()",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "Project repository, uuid",
      "display": "databricks/app-templates",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "Project stars, databricks/app-templates",
      "display": "222",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "Project push date, databricks/app-templates",
      "display": "Nov 2026",
      "asOf": "2026-11-12"
    },
    "F92": {
      "label": "Developer need",
      "display": "Using Python’s built-in identifier API",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "Why choose uuid",
      "display": "the bundled UUID module",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "Developer need in introduction",
      "display": "using Python’s built-in identifier API",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "When to consider shortuuid",
      "display": "a compact display encoding is needed",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Developer need",
      "display": "Converting legacy time-based UUIDs",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Why choose uuid6",
      "display": "the uuid1_to_uuid6 conversion",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Developer need in introduction",
      "display": "converting legacy time-based UUIDs",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Developer need",
      "display": "Meeting framework UUID type requirements",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Why choose uuid-utils",
      "display": "the standard-library compatibility interface",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need in introduction",
      "display": "meeting framework UUID type requirements",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need",
      "display": "Displaying compact identifiers",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Why choose shortuuid",
      "display": "a compact alphabet without similar-looking characters",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need in introduction",
      "display": "displaying compact identifiers",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "When to consider uuid",
      "display": "canonical standard-library UUID objects are preferred",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Page introduction",
      "display": "Python uuid libraries let application developers generate application identifiers.",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "FAQ: Does Python already generate time-ordered UUIDs?",
      "display": "The standard-library uuid7 API generates time-based UUIDs and was added in Python 3.14.",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "FAQ: What should be checked before replacing the standard-library UUID implementation?",
      "display": "Some frameworks require actual standard-library UUID instances; uuid_utils.compat returns those objects.",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "FAQ: Does generating a host-based UUID expose the network address?",
      "display": "The standard uuid1 function embeds the computer’s network address.",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "FAQ: Are custom-field UUID defaults appropriate for secure random generation?",
      "display": "Python states that uuid8 default fields are not produced by a cryptographically secure generator and recommends uuid4 for security-sensitive use.",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "FAQ: How are named UUIDs generated?",
      "display": "The standard uuid5 function derives a UUID from a namespace identifier and name.",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "FAQ: How are named UUIDs generated?",
      "display": "shortuuid accepts a name to produce its compact named UUID representation.",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "FAQ: Can uuid6 convert an existing legacy UUID?",
      "display": "uuid1_to_uuid6 converts a version-one UUID into a version-six UUID.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: Is uuid6 generation thread-safe?",
      "display": "The release README explicitly states that its time-based generation functions are not thread-safe.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Does compact encoding require throwing away UUID data?",
      "display": "shortuuid provides encode and decode for existing UUIDs.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Does compact encoding require throwing away UUID data?",
      "display": "Truncating the resulting string loses the full identifier’s uniqueness properties.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Can shortuuid use different alphabets in different threads?",
      "display": "Use separate ShortUUID instances when different alphabets are needed per thread.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: How are older shortuuid encodings decoded?",
      "display": "Pass legacy=True when decoding strings from the older reversed encoding.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Does time ordering guarantee faster database queries?",
      "display": "uuid6 describes a time-ordered value field derived from the Unix epoch timestamp.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Does time ordering guarantee faster database queries?",
      "display": "Its reordered UUID format targets improved database locality; this is a format property rather than a measured workload comparison.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: What does UUID parsing accept?",
      "display": "The standard-library UUID constructor accepts hexadecimal strings, bytes, field tuples, or an integer.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: What does UUID parsing accept?",
      "display": "shortuuid decode instead handles its compact encoded representation.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "Library name, uuid-utils",
      "display": "uuid-utils",
      "asOf": "2026-11-20"
    },
    "F124": {
      "label": "Monthly downloads, uuid-utils",
      "display": "92.5M",
      "asOf": "2026-11-20"
    },
    "F125": {
      "label": "License, uuid-utils",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F126": {
      "label": "Package release, uuid-utils",
      "display": "1.2.0",
      "asOf": "2026-11-20"
    },
    "F127": {
      "label": "Package release date, uuid-utils",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F128": {
      "label": "Install, uuid-utils",
      "display": "python -m pip install uuid-utils==1.2.0",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "Quickstart, uuid-utils",
      "display": "import uuid_utils\n\nprint(uuid_utils.uuid4())\n",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Final-standard time-ordered UUIDs, uuid-utils",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Bulk random UUID generation, uuid-utils",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Custom alphabet codec, uuid-utils",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Explicit time argument, uuid-utils",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Native interface and best-fit task, uuid-utils",
      "display": "Rust-backed UUID generation/parsing with several UUID versions. Default UUID objects are custom native objects; included uuid_utils.compat returns stdlib UUID objects. Current1.2 explicit-time UUIDv7 parameter is nanoseconds,not the older timestamp/nanos pair.",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Value representation, uuid-utils",
      "display": "Custom native UUID by default; stdlib UUID through included compat API.",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Project function, uuid-utils",
      "display": "def uuid7() -> UUID:\n    \"\"\"\n    Generate a UUIDv7 using the uuid_utils compatibility layer.\n    This ensures type compatibility with the rest of the TensorZero client.\n    \"\"\"\n    return compat.uuid7()",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Project source file, uuid-utils",
      "display": "crates/tensorzero-python/tensorzero/util.py",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Project full_name, uuid-utils",
      "display": "tensorzero/tensorzero",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Project stargazers_count, uuid-utils",
      "display": "11.7K",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Library name, fastuuid",
      "display": "fastuuid",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Monthly downloads, fastuuid",
      "display": "85.4M",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "License, fastuuid",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Package release, fastuuid",
      "display": "0.14.0",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Package release date, fastuuid",
      "display": "Oct 2025",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Install, fastuuid",
      "display": "python -m pip install fastuuid==0.14.0",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Quickstart, fastuuid",
      "display": "import fastuuid\n\nprint(fastuuid.uuid4())\n",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Official description, fastuuid",
      "display": "Provides Python bindings to Rust's UUID library.",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Quickstart source file, fastuuid",
      "display": "README.rst",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Final-standard time-ordered UUIDs, fastuuid",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Bulk random UUID generation, fastuuid",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Custom alphabet codec, fastuuid",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Explicit time argument, fastuuid",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Native interface and best-fit task, fastuuid",
      "display": "Rust-backed UUID objects,generation,and native bulk UUID4/UUID7 functions. Bulk string helpers use undashed simple formatting; str(UUID) uses hyphenated formatting. The native UUID class is distinct from stdlib UUID; its constructor version keyword accepts1–5 even though uuid7() generates version7.",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Value representation, fastuuid",
      "display": "Custom native UUID; separate bulk helpers return lists of UUIDs or undashed strings.",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Library name, shortuuid",
      "display": "shortuuid",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Monthly downloads, shortuuid",
      "display": "24.7M",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "License, shortuuid",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Package release, shortuuid",
      "display": "1.0.13",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Package release date, shortuuid",
      "display": "Mar 2024",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Install, shortuuid",
      "display": "python -m pip install shortuuid==1.0.13",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Quickstart, shortuuid",
      "display": "import shortuuid\n\nprint(shortuuid.uuid())\n",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Final-standard time-ordered UUIDs, shortuuid",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Bulk random UUID generation, shortuuid",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Custom alphabet codec, shortuuid",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Explicit time argument, shortuuid",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Native interface and best-fit task, shortuuid",
      "display": "Creates compact encoded UUIDs and provides a reversible custom-alphabet codec. Native uuid() generation uses random or name-based UUIDs,not UUIDv7; encoding an already existing UUIDv7 is a separate operation. random(length) creates arbitrary tokens and is not treated as UUID generation here.",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Value representation, shortuuid",
      "display": "Compact string by default; decode returns the original stdlib UUID value.",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Project function, shortuuid",
      "display": "def create_uuid(self):\n    if not self.version or self.version == 4:\n        return shortuuid.uuid()\n    elif self.version == 1:\n        return shortuuid.uuid()\n    elif self.version == 2:\n        raise UUIDVersionError(\"UUID version 2 is not supported.\")\n    elif self.version == 3:\n        raise UUIDVersionError(\"UUID version 3 is not supported.\")\n    elif self.version == 5:\n        return shortuuid.uuid(name=self.namespace)\n    else:\n        raise UUIDVersionError(\"UUID version %s is not valid.\" % self.version)",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Project source file, shortuuid",
      "display": "django_extensions/db/fields/__init__.py",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Project full_name, shortuuid",
      "display": "django-extensions/django-extensions",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Project stargazers_count, shortuuid",
      "display": "6.8K",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Library name, uuid6",
      "display": "uuid6",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Monthly downloads, uuid6",
      "display": "11.4M",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "License, uuid6",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Package release, uuid6",
      "display": "2025.0.1",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Package release date, uuid6",
      "display": "Jul 2025",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Install, uuid6",
      "display": "python -m pip install uuid6==2025.0.1",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Quickstart, uuid6",
      "display": "from uuid6 import uuid7\n\nprint(uuid7())\n",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Final-standard time-ordered UUIDs, uuid6",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Bulk random UUID generation, uuid6",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Custom alphabet codec, uuid6",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Explicit time argument, uuid6",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Native interface and best-fit task, uuid6",
      "display": "Pure-Python UUID6/7/8 helpers and a stdlib UUID subclass. uuid7() has no supplied-time argument and advances its module timestamp when the clock repeats or goes backward; this is local generator state,not a distributed monotonicity guarantee.",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Value representation, uuid6",
      "display": "Subclass of Python stdlib UUID.",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Project function, uuid6",
      "display": "def uuid7_range_bound(dt: datetime) -> UUID:\n    \"\"\"\n    Returns the lowest UUIDv7 whose timestamp is the millisecond containing `dt`.\n\n    Partition bounds have to be derived, not generated: two calls for the same\n    instant must give the same literal, and consecutive windows must meet\n    exactly. `datetime_to_uuid7` fills the sequence and node fields with\n    randomness, which is right for an identifier and wrong for a bound -- a\n    bound a millisecond wide with a random tail leaves the values above it in\n    that millisecond outside every partition.\n\n    The millisecond is counted with integer arithmetic rather than through\n    `dt.timestamp() * 1000`: past year 2249 a float second no longer resolves a\n    millisecond, so an instant in the last microsecond of one rounds up into the\n    next, putting the bound a millisecond above the values it exists to include.\n\n    Args:\n        dt: The instant the bound sits at. A naive `dt` is read as local time,\n            the same way `datetime.timestamp()` reads it.\n\n    Returns:\n        UUID: The smallest UUIDv7 in `dt`'s millisecond.\n    \"\"\"\n    since_epoch = dt.astimezone(UTC) - datetime(1970, 1, 1, tzinfo=UTC)\n    timestamp_ms = (since_epoch // timedelta(milliseconds=1)) & 0xFFFFFFFFFFFF\n    # Version 7 in bits 76-79 and variant \"10\" in bits 62-63; every other bit zero.\n    return UUID(int=(timestamp_ms << 80) | (0x7 << 76) | (0x2 << 62))",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Project source file, uuid6",
      "display": "api/src/backend/api/uuid_utils.py",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Project full_name, uuid6",
      "display": "prowler-cloud/prowler",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Project stargazers_count, uuid6",
      "display": "15.3K",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Library name, uuid7-standard",
      "display": "uuid7-standard",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Monthly downloads, uuid7-standard",
      "display": "318.0K",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "License, uuid7-standard",
      "display": "MIT OR Unlicense",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Package release, uuid7-standard",
      "display": "1.1.2",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Package release date, uuid7-standard",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Install, uuid7-standard",
      "display": "python -m pip install uuid7-standard==1.1.2",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Quickstart, uuid7-standard",
      "display": "import uuid7\n\nprint(uuid7.create())\n",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Official description, uuid7-standard",
      "display": "Pure Python UUIDv7 with datetime-based creation and timestamp extraction, filling gaps in stdlib and other implementations.",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Quickstart source file, uuid7-standard",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Final-standard time-ordered UUIDs, uuid7-standard",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Bulk random UUID generation, uuid7-standard",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Custom alphabet codec, uuid7-standard",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Explicit time argument, uuid7-standard",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Native interface and best-fit task, uuid7-standard",
      "display": "Pure-Python final-standard UUIDv7 generation from current time or a supplied datetime,plus a datetime-returning timestamp helper. Uses stdlib UUID. Python’s current stdlib can also extract UUIDv7 milliseconds; the README’s older statement that it cannot is not repeated as a new fact.",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Value representation, uuid7-standard",
      "display": "Python stdlib UUID; time() returns datetime.",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Python UUID libraries uuid uuid6 uuid-utils shortuuid code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
