Skip to content

Commit

Permalink
Update compat module namespace (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
aminalaee authored May 3, 2024
1 parent 3b0e935 commit cfd7ce5
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion python/uuid_utils/compat/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,38 @@
from uuid import UUID
from uuid import (
NAMESPACE_DNS,
NAMESPACE_OID,
NAMESPACE_URL,
NAMESPACE_X500,
RESERVED_FUTURE,
RESERVED_MICROSOFT,
RESERVED_NCS,
RFC_4122,
UUID,
getnode,
)

import uuid_utils

__all__ = [
"NAMESPACE_DNS",
"NAMESPACE_OID",
"NAMESPACE_URL",
"NAMESPACE_X500",
"RESERVED_FUTURE",
"RESERVED_MICROSOFT",
"RESERVED_NCS",
"RFC_4122",
"UUID",
"getnode",
"uuid1",
"uuid3",
"uuid4",
"uuid5",
"uuid6",
"uuid7",
"uuid8",
]


def uuid1(node=None, clock_seq=None):
"""Generate a UUID from a host ID, sequence number, and the current time.
Expand Down

0 comments on commit cfd7ce5

Please sign in to comment.