Generate a UUID on the command line with Python
Sometimes I want to manually generate a UUID for some test or example data.
It’s handy to have this Python snippet in Bash history to quickly do that:
python -c 'import uuid; print(uuid.uuid4())'
Sometimes I want to manually generate a UUID for some test or example data.
It’s handy to have this Python snippet in Bash history to quickly do that:
python -c 'import uuid; print(uuid.uuid4())'
I'm a software developer working in London. I also write about learning Chinese and East Asian Studies, and run a 3D pop-up cards shop.
You can subscribe via RSS, if you like.