Skip to content

A simple distributed id generator for the lazy. It's a Python module written in Rust.

Notifications You must be signed in to change notification settings

faruken/usimpleflake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

usimpleflake

A simple distributed id generator for the lazy. It's a simple Python module written in Rust based on SawdustSofware's.

Usage

import usimpleflake
    
def print_key() -> None:
    distributed_id: int = usimpleflake.simpleflake()
    print(distributed_id)
    
def print_key_with_time() -> None:
    from time import time
    distributed_id: int = usimpleflake.simpleflake(time())
    print(distributed_id)

About

A simple distributed id generator for the lazy. It's a Python module written in Rust.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published