Python (Scripting) - Generate Universally Unique IDentifier using uuid

by
Jeremy Canfield |
Updated: June 05 2024
| Python (Scripting) articles
The uuid module can be used to generate a random Universal Unique IDentifier (UUID). For example, like this.
#!/usr/bin/python
import uuid
print(uuid.uuid4())
Something like this should be returned.
3756622d-bd21-4c3c-9127-e92f11007b3a
Did you find this article helpful?
If so, consider buying me a coffee over at