Skip to main content

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


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)

Uploaded Source

Built Distribution

easy_id-1.0.3-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page