Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active April 2, 2023 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dacr/13c4fb1152e21e93f8b89abc048c0e2f to your computer and use it in GitHub Desktop.
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/5fd459fc8bee33ff6c53dc37bf87795bb3d296fb
#!/usr/bin/env python3
## summary : Simple script to generate an UUID using python
## keywords : scala, uuid, @testable
## publish : gist
## authors : David Crosson
## license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
## 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