A fast UUID generator for Python using Rust
Project description
ruuid
A fast UUID generator for Python built using Rust. Its a simple wrapper on top of Rust's UUID library.
How to use?
Installation:
pip install ruuid
Usage:
import ruuid
ruuid.uuid4()
'7a1ef475-904c-4d53-8985-528d09d57414'
Performance
Tests ran on an M1 macbook air with 8 GB of RAM and Python 3.9
from ruuid import uuid4
%timeit uuid4()
348 ns ± 0.707 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
from uuid import uuid4
%timeit uuid4()
1.1 µs ± 2.91 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ruuid-0.2.2.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for ruuid-0.2.2-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8391fe4f4e037ffe3e062ffb04b45b793c783835b9ba2f594ff5cef45344659 |
|
MD5 | 531e4d7fda8a7bd40ec86cce10db4ab9 |
|
BLAKE2b-256 | 28a99d7bcf56449f5d2f8359052a3f658ad6b08e7d7d5960c5424a8be10fac47 |