Skip to content

An easy to use suite of configurable id generators

License

Notifications You must be signed in to change notification settings

RadenTheFolf/easy_id

Repository files navigation

EasyID


Installation

pip install easy-id


Basic Usage

from easy_id import *

if __name__ == "__main__":
    generator = EasyID(EasyIdType.NANOID)
    print(generator.generate())

Advanced Usage

from easy_id import *

config = {
    "epoch": 1543392060,
    "machine_id": 0,
}

if __name__ == "__main__":
    generator = EasyID(EasyIdType.SNOWFLAKE, config)
    print(generator.generate())

About

An easy to use suite of configurable id generators

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages