On this page
uuid.main
Prev: uuid.int_ | Up: uuid | Next: uuid.SafeUUID
Rel: uuid.bytes_, uuid.Enum, uuid.getnode, uuid.int_
Ref: docs.python.org — uuid.main
Tags: #public #python3 #stdlib #uuid
Import
import uuid
from uuid import main
Signature & Overview
uuid.main()
Run the uuid command line interface.
Usage
import uuid
# CLI entry point for `python3 -m uuid` (Python 3.12+)
assert hasattr(uuid, 'main') or True
Gotchas
- Requires Python 3.12+: Run
python3 -m uuidin a terminal to generate fresh UUIDs.
REPL Inspect
from uuid import main
help(main)
Linked from
Related notes
- tuts/python3/stdlib_module/uuid/bytes_ Linked here; links to this page; shared tags: #stdlib, #uuid
- tuts/python3/stdlib_module/uuid/Enum Linked here; links to this page; shared tags: #stdlib, #uuid
- tuts/python3/stdlib_module/uuid/getnode Linked here; links to this page; shared tags: #stdlib, #uuid
- tuts/python3/stdlib_module/uuid/int_ Linked here; links to this page; shared tags: #stdlib, #uuid
- tuts/python3/stdlib_module/uuid/SafeUUID Linked here; links to this page; shared tags: #stdlib, #uuid
- tuts/python3/stdlib_module/uuid/UUID Linked here; shared tags: #stdlib, #uuid
- tuts/python3/stdlib_module/uuid links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/uuid/uuid1 shared tags: #stdlib, #uuid
- tuts/python3/stdlib_module/uuid/uuid3 shared tags: #stdlib, #uuid
- tuts/python3/stdlib_module/uuid/uuid4 shared tags: #stdlib, #uuid