Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Simple generator of unique tokens.

Project Description

“uniqtoken” is DEPRECATED! Please see new version “uqid”:

Old “uniqtoken” usage:

pip install uniqtoken
from uniqtoken import uniqtoken

token1 = uniqtoken()
token2 = uniqtoken()
assert token1 != token2
  • Starts with a sequence random enough to be indexed efficiently when token is used as a hash key.
  • This random sequence is long enough to be hard to guess.
  • Ends with explicit timestamp with precision about 0.01 seconds (system dependent) to be more unique.
  • Is more than 3x faster than standard uuid.uuid4() - see tests in
  • Is ready to be used as a fixed length string token containing exactly 64 safe hex digits.

Release History

This version
History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(1.5 kB) Copy SHA256 Hash SHA256
Source None Feb 3, 2013

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers