suou.snowflake

Utilities for Snowflake-like identifiers.

Here for applications who benefit from their use. I (sakuragasaki46) recommend using SIQ (.iding) when applicable; there also utilities to convert snowflakes into SIQ’s in .migrate.

Classes

Snowflake

Representation of a Snowflake as an integer.

SnowflakeGen(epoch[, local_id, shard_id, ...])

Implements a generator Snowflake ID's (i.e. the ones in use at Twitter / Discord).