All Projects → rahulunair → ruuid

rahulunair / ruuid

Licence: BSD-3-Clause license
A fast uuid generator in Python using Rust

Programming Languages

rust
11053 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to ruuid

Session Token
Secure, efficient, simple random session token generation
Stars: ✭ 12 (-36.84%)
Mutual labels:  uuid, random
secrets.clj
A library designed to generate cryptographically strong random numbers.
Stars: ✭ 64 (+236.84%)
Mutual labels:  uuid, random
Kirby3 Autoid
Automatic unique ID for Pages, Files and Structures including performant helpers to retrieve them. Bonus: Tiny-URL.
Stars: ✭ 58 (+205.26%)
Mutual labels:  uuid, random
Uniuri
Go package uniuri generates random strings good for use in URIs to identify unique objects.
Stars: ✭ 336 (+1668.42%)
Mutual labels:  uuid, random
Nanoid
A tiny, secure, URL-friendly, unique string ID generator for Rust
Stars: ✭ 188 (+889.47%)
Mutual labels:  uuid, random
rs-nuid
NATS unique identifiers
Stars: ✭ 19 (+0%)
Mutual labels:  uuid
uuids
UUID library for Nim
Stars: ✭ 28 (+47.37%)
Mutual labels:  uuid
Foodish
A Node.js/Express.js REST API to GET a random picture of food dishes.
Stars: ✭ 55 (+189.47%)
Mutual labels:  random
prvhash
PRVHASH - Pseudo-Random-Value Hash. Hash functions, PRNG with unlimited period, randomness extractor. (Codename Gradilac/Градилак)
Stars: ✭ 194 (+921.05%)
Mutual labels:  random
RNG
A simple state-of-the-art C++ random number generator
Stars: ✭ 19 (+0%)
Mutual labels:  random
random
Random data generator AKA faker
Stars: ✭ 14 (-26.32%)
Mutual labels:  random
colossal-squuid
Library for generating sequential UUIDs, or SQUUIDs
Stars: ✭ 52 (+173.68%)
Mutual labels:  uuid
uuid
A decentralized favorites and bookmarks based on Git hosting
Stars: ✭ 70 (+268.42%)
Mutual labels:  uuid
datagen
Java lib that generates random data (numbers, strings, dates) - mostly to facilitate Randomized Testing.
Stars: ✭ 56 (+194.74%)
Mutual labels:  random
rocRAND
RAND library for HIP programming language
Stars: ✭ 68 (+257.89%)
Mutual labels:  random
go-ulid
Universally Unique Lexicographically Sortable Identifier (ULID) in Go - Please use https://github.com/oklog/ulid
Stars: ✭ 31 (+63.16%)
Mutual labels:  uuid
uid
Provides an object-oriented API to generate and represent UIDs.
Stars: ✭ 315 (+1557.89%)
Mutual labels:  uuid
golden-colors
Generate random colors using Golden ratio conjugate
Stars: ✭ 16 (-15.79%)
Mutual labels:  random
Random-Mouse-Clicker
Randomly auto-clicks inside of a drawn region
Stars: ✭ 19 (+0%)
Mutual labels:  random
flutter fortune wheel
Visualize random selections with Flutter widgets like the wheel of fortune.
Stars: ✭ 60 (+215.79%)
Mutual labels:  random

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].