Skip to main content

kits: kitx-snowflake; snowflake id algorithm; sometimes one millis can’t use up 4096 ID; 雪花id生成器, 每毫秒最大生成4096个id

Project description

kitx-snowflake

PyPI - Python Version


Family kitx

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 Distributions

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

kitx_snowflake-1.1.1-cp37-abi3-win_amd64.whl (102.6 kB view details)

Uploaded CPython 3.7+Windows x86-64

kitx_snowflake-1.1.1-cp37-abi3-manylinux_2_28_aarch64.whl (236.3 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.28+ ARM64

kitx_snowflake-1.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (235.3 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ x86-64

File details

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

File metadata

File hashes

Hashes for kitx_snowflake-1.1.1-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f6d168cdcf68c942bd60b489ed7e62ba7a9f208c9f270f8c35ce1ee234b6dd6a
MD5 b452cb0556bd7a9df9b68a923922945b
BLAKE2b-256 d8013fb89db6efcf7ee8891b6c79894549840f81768c2315edc0ad3cf66a44f6

See more details on using hashes here.

File details

Details for the file kitx_snowflake-1.1.1-cp37-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for kitx_snowflake-1.1.1-cp37-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f4b5b9b5b6d9b2a35ce9c0412fcb8853b4bd78bbe99fbddd51e8b7f3262265ad
MD5 b9a5607b02e82cbca68dbadaf4e8590c
BLAKE2b-256 1874baea3c6a6a1b0c41bf0af722eccaa432f07d948e85ffb71482ed2fb0d528

See more details on using hashes here.

File details

Details for the file kitx_snowflake-1.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for kitx_snowflake-1.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 286623483262505dc475d13e51fbbd42c4e656a1ff28449bba45b5bc63cc1623
MD5 7921c719606ba24a848be20911888149
BLAKE2b-256 0198336698675a9430fa35539324f5e8d001ff36916606200ceee3fd0a9a0002

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