Unique user ID in the Pylons web application

What is the best way to create a unique user ID in Python using a UUID ?

+3
source share
1 answer

I would go with uuid

from uuid import uuid4
def new_user_id():
    return uuid4().hex
+8
source

Source: https://habr.com/ru/post/1741314/


All Articles