py kits + rs
Project description
kitx-snowflake
CN
雪花id生成器, 每毫秒最大生成4096个id
EN
snowflake id algorithm ,sometimes one millis can’t use up 4096 ID
Installation
pip install kitx
or
pip install kitx_snowflake
from kitx.kitx_snowflake import fn_snowflake
print(fn_snowflake())
Use machine_id and node_id
Please make sure that machine_id and node_id is small than 32(2^5)
from kitx.kitx_snowflake import fn_snowflake
print(fn_snowflake(1, 2))
License
kitx is distributed under the terms of the MIT license.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 kitx_snowflake-1.1.0-cp37-abi3-win_amd64.whl.
File metadata
- Download URL: kitx_snowflake-1.1.0-cp37-abi3-win_amd64.whl
- Upload date:
- Size: 102.7 kB
- Tags: CPython 3.7+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4d975d9616fb91277d438b84ac8d5765c8a9c059b75cbbb26662e67b166817b
|
|
| MD5 |
be1d14463a5f92bd73590be4ce301655
|
|
| BLAKE2b-256 |
5d48d86bccc29d67c4519615dcd6241a103ea55eb701cb881a4773125da45f52
|