semvec/pypi-packages huggingface dataset:
kitx-snowflake 1.1.1
kits: kitx-snowflake; snowflake id algorithm; sometimes one millis can’t use up 4096 ID; 雪花id生成器， 每毫秒最大生成4096个id
License: MIT
Requires Python: >=3.7
Keywords: kitx-snowflake, kitx, snowflake

# kitx-snowflake

[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/kitx.svg)](https://pypi.org/project/kitx)

-----

[Family kitx](https://pypi.org/project/kitx/)

## CN
雪花id生成器， 每毫秒最大生成4096个id

## EN
snowflake id algorithm ，sometimes one millis can’t use up 4096 ID

## Installation

```console
pip install kitx
```
or
```console
pip install kitx_snowflake
```

```console
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)
```console
from kitx.kitx_snowflake import fn_snowflake
 
print(fn_snowflake(1, 2))
```
## License

`kitx` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.