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.3.0.tar.gz
(2.5 kB
view hashes)
Built Distributions
Close
Hashes for ruuid-0.3.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | beeb56e5be3bbae992c4ac8fc3c4e7cf8b462146aac12419cc6ce931d255c435 |
|
MD5 | 1134ba145f2e5a8af7fa82b028ff64dd |
|
BLAKE2b-256 | 38896588af47a9512f6579aaf3aea570ec6959317b27181a4bbd8e421ac1dd9b |
Close
Hashes for ruuid-0.3.0-cp36-abi3-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee2d49904ba070cb184e6f0e7bde2588b1dc4f5d86fd3c022ff3e0bb058a0c26 |
|
MD5 | 92aa30e516a846c4a728ee198325b192 |
|
BLAKE2b-256 | d7c9d3476408efd0cbfd8efab05dfed42279e3b06ce87774bfc196a8ca326e31 |