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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file easy_id-1.0.3.tar.gz.
File metadata
- Download URL: easy_id-1.0.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95a652a6527e78fd465716c34147120742a445eb4261072ac4f24d0e2cab2154
|
|
| MD5 |
5b36b6a10a9885f78d1257d83d03df92
|
|
| BLAKE2b-256 |
d0fc44594116534043ed463e7da04ba45e187c980123bacf8200d592a2aea04c
|
File details
Details for the file easy_id-1.0.3-py3-none-any.whl.
File metadata
- Download URL: easy_id-1.0.3-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27b06a74f9179a84942ee2bcfedce880865b02528fbb36e038d5a5c9e0b1d3a4
|
|
| MD5 |
20c0cd164e1bc7d3d3c4eb0956131dce
|
|
| BLAKE2b-256 |
1d9b35dbe901a4ed2413054044f9f3e8ebc5c242f47d80b4a80a783a25200356
|