An easy to use suite of configurable id generators
Project description
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())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
easy_id-1.0.3.tar.gz
(3.3 kB
view hashes)