Skip to main content

ruuid

A fast UUID generator for Python built using Rust. Its a simple wrapper on top of Rust's UUID crate.

How to use?

Installation:

pip3 install ruuid==0.3.0 --force --no-cache

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, simple

%timeit simple()
327 ns ± 0.442 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)

%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)

Available functions

  • uuid4() - random UUID4 string
  • simple() - formatted simple string of UUID4
  • hyphenated() - hyphenated UUID4 string
  • nil() - a uuid with all zeros
  • urn() - uuid4 as a URN string

Metadata

Release files for ruuid 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ruuid 0.3.1
File Size Uploaded Provenance Actions
ruuid-0.3.1.tar.gz 4.2 kB Without provenance Details for ruuid-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ruuid 0.3.1
File Interpreter ABI Platform Actions
ruuid-0.3.1-cp36-abi3-manylinux2010_x86_64.whl CPython 3.6 abi3 Linux glibc 2.12+ x86-64 Details for ruuid-0.3.1-cp36-abi3-manylinux2010_x86_64.whl

Total release size: 171.6 kB

Release files / ruuid-0.3.1.tar.gz

Download URL ruuid-0.3.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fb09b1605f7f91b2140e2cef3f7375d0b9badc2728bb745c18ef40992f252b3b
BLAKE2b-256 checksum
How to use checksums
adb3b9844c063be3d5cd48bcfaca0bd8661aef017d5bde16b7fa59fc34d56549
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.9.1

Release files / ruuid-0.3.1-cp36-abi3-manylinux2010_x86_64.whl

Download URL ruuid-0.3.1-cp36-abi3-manylinux2010_x86_64.whl
Size 167.4 kB
Tags CPython 3.6 Linux glibc 2.12+ x86-64 abi3
SHA-256 checksum
How to use checksums
128bb30ddde0a1ca8ed149544f2b7559a37f5212037183bf14e45b307105548a
BLAKE2b-256 checksum
How to use checksums
06fa93d21cb17c6df70882b964a75da5e5e894fd6fe70b766c4b66e0281cb008
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.9.1

Security for ruuid 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page