Catalog PyPI
PACKAGE EXPLORERView in registry

aimframe-uidgenerator

PyPI

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

Versions collected1
Direct dependencies0From release 1.0.3
Last observed21 Oct, 11:18 UTC

README

Version 1.0.3 documentation

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()

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.316 Jul 20240

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:18 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:5921e21dcb625b905e391c6a55cf4c1dbff96d78b990879a87bbf006bb571017