Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 483 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 483 Bytes

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)