Bootstrap FreeKB - Python (Scripting) - Generate Universally Unique IDentifier using uuid
Python (Scripting) - Generate Universally Unique IDentifier using uuid

Updated:   |  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 Buy Me A Coffee



Comments


Add a Comment


Please enter 55eee6 in the box below so that we can be sure you are a human.