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.0.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.0.0-cp37-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for kitx_snowflake-1.0.0-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0c9241385d3ea4fcccbaa1cbb4818e81d106c1cc3a0c27fc686fd355b2433b6b
MD5 649b0e1903f2e9d36b153a122ab07c28
BLAKE2b-256 e68eec88c5d672d276af1f4412feb022a6ab4f3aad86a1fefa46c96a431c109a

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