What is the best way to create a unique user ID in Python using a UUID ?
I would go with uuid
from uuid import uuid4 def new_user_id(): return uuid4().hex
Source: https://habr.com/ru/post/1741314/More articles:С# - доступ к элементам коллекции, унаследованной от List - collectionsJava: String compare library that returns diff value as int? - javaShould the web service allow the user to create and update, or just save? - architectureКонтроль нескольких gen_servers с тем же модулем/разными аргументами - erlangHow expensive is synchronization? - javaarrange keywords by frequency in PHP mySql - sqlHow can I split email address into different parts of php? - javascriptAccess to SQL query Circular reference error - sqlJunit test that creates other tests - javaOptional sql server parameters: syntax between conditions - sql-serverAll Articles