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

Fast, scalable unique ID generation

Project Description

# cuid.py

Implementation of https://github.com/ericelliott/cuid in Python.

A cuid is a portable and sequentially-ordered unique identifier designed for horizontal scalability and speed – this version is ported from the reference implementation in Javascript.

Tested on CPython 2.7 and 3.4 as well as PyPy.

Rough benchmarks on my machine (2.2GHz i7, 2012 Macbook Pro): - Python 3.4: 19.38μs per cuid - Python 2.7: 17.58μs per cuid - PyPy 2.6: 4.28μs per cuid

Note: For now, this has no dependencies outside the standard library – in time this may change, to provide better random numbers and / or performance.

Release History

Release History

This version
History Node

0.2

History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
cuid.py-0.2.tar.gz (3.1 kB) Copy SHA256 Checksum SHA256 Source Sep 3, 2015

Supported By

WebFaction WebFaction Technical Writing 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 Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting