Advertisement
rfmonk

uuid_uuid3_repeat.py

Feb 13th, 2014
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3.  
  4. import uuid
  5.  
  6. namespace_types = sorted(n
  7.                          for n in dir(uuid)
  8.                          if n.startswith('NAMESPACE_')
  9.                          )
  10.  
  11. name = 'www.altsci.com'
  12.  
  13. for namespace_type in namespace_types:
  14.     print namespace_type
  15.     namespace_uuid = getattr(uuid, namespace_type)
  16.     print ' ', uuid.uuid3(namespace_uuid, name)
  17.     print ' ', uuid.uuid3(namespace_uuid, name)
  18.     print
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement