https://github.com/mattonit/python-snowflake
Lightweight library to generate unique IDs
https://github.com/mattonit/python-snowflake
Last synced: 5 months ago
JSON representation
Lightweight library to generate unique IDs
- Host: GitHub
- URL: https://github.com/mattonit/python-snowflake
- Owner: mattonit
- Created: 2021-02-14T20:22:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-15T07:00:13.000Z (over 5 years ago)
- Last Synced: 2025-09-05T00:45:01.663Z (9 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Snowflake
**A super lightweight library to generate instagram-like unique IDs**
Python Snowflake is a super-light library that generates unique, Instagram-like IDs. I like the look of these IDs, and I
often use them on my project. After I wrote the same code for another project, I decided to create a public library for
that. Don't get too excited about this library. There are only 3 lines that generate uuid4 cut to 6 characters but do we
really need to write tons of code to make such a simple functionality?
## Installation Guide
Installation is super-easy. Just run the following command to install Python Snowflake from the PyPi repository
```
$ pip install python-snowflake
```
## Usage
```
>>> from snowflake import snowflake
>>> snowflake()
'4a82a1'
```