Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active February 3, 2026 20:21
Show Gist options
  • Select an option

  • Save dacr/13c4fb1152e21e93f8b89abc048c0e2f to your computer and use it in GitHub Desktop.

Select an option

Save dacr/13c4fb1152e21e93f8b89abc048c0e2f to your computer and use it in GitHub Desktop.
Simple script to generate an UUID using python / published by https://github.com/dacr/code-examples-manager #ef84b67e-40e1-4c8a-bbf9-84dab343e73b/e03c74cb6b092162d761dac39a5b2f734b6a2ade
#!/usr/bin/env python3
## summary : Simple script to generate an UUID using python
## keywords : scala, uuid, @testable
## publish : gist
## authors : David Crosson
## license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
## id : ef84b67e-40e1-4c8a-bbf9-84dab343e73b
## created-on : 2022-03-31T08:02:37+02:00
## managed-by : https://github.com/dacr/code-examples-manager
## run-with : python3 $file
import uuid
uuid = uuid.uuid4()
print(str(uuid))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment