Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

youtube-like UUIDs

Project description



This is a simple script that generates a 64bit UUID and encodes it in base62 thus generating a secure unique 11 char string that are similar to the beloved youtube video ids


Our 64 bit string is composed with the following method

10 bits are random 12 bits are a hash from machine id 42 bits are unixtime till milliseconds

they are all concatenated in the mentioned order


pip install yuid


>>> from yuid import yuid
>>> yuid()

Project details

Download files

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

Files for yuid, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size yuid-0.1.1-py3-none-any.whl (3.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size yuid-0.1.1.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page