Skip to main content

py kits + rs

Project description

kitx-snowflake

PyPI - Version PyPI - Python Version


Family kitx

Member 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


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

If you're not sure about the file name format, learn more about wheel file names.

kitx_snowflake-1.1.0-cp37-abi3-win_amd64.whl (102.7 kB view details)

Uploaded CPython 3.7+Windows x86-64

File details

Details for the file kitx_snowflake-1.1.0-cp37-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for kitx_snowflake-1.1.0-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e4d975d9616fb91277d438b84ac8d5765c8a9c059b75cbbb26662e67b166817b
MD5 be1d14463a5f92bd73590be4ce301655
BLAKE2b-256 5d48d86bccc29d67c4519615dcd6241a103ea55eb701cb881a4773125da45f52

See more details on using hashes here.

Supported by

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