Skip to main content

雪花id生成器-解决时钟回拨问题

Project description

uidgenerator-snowflakeid

根据经典的雪花id算法,实现python的本地ip地址滚动映射到5+5位centerid和worerid,并解决时钟回拨问题。

[!IMPORTANT]

使用方法

from aimframe_uidgenerator.uidgenerator.usnowflake import USnowflake

def snowflakeid():
 snowflake = USnowflake.Default()
 return snowflake.NextId()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aimframe_uidgenerator-1.0.3.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

aimframe_uidgenerator-1.0.3-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file aimframe_uidgenerator-1.0.3.tar.gz.

File metadata

  • Download URL: aimframe_uidgenerator-1.0.3.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for aimframe_uidgenerator-1.0.3.tar.gz
Algorithm Hash digest
SHA256 0544999d018c68b4f2ddff85950b18f1e3bf61b2186be550479b29851c77529a
MD5 d5a7e328b959475a9007066f2fbd79ab
BLAKE2b-256 5f76a5f88286cbf1a3f3c07f7af9f7cb04fd70d07ba5fb1c2fc55fc4b79cbb87

See more details on using hashes here.

File details

Details for the file aimframe_uidgenerator-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for aimframe_uidgenerator-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f4eb3ca3f2ff7a8fcdfa5c0340e9c13d69ec752ad076ff8b17b1ff4c6eb88109
MD5 dea35245024509be99a7dd1fe91067eb
BLAKE2b-256 fc7aecf37d3ebe6adccdb5016713ca9753c9a96c25db10d29a03e7c408632bdd

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