aioflake

Unique id generator inspired by twitter's snowflake.


License
MIT
Install
pip install aioflake==0.1.2

Documentation

aioflake

Build Status Python Version Version Format License

Unique id generator inspired by twitter's snowflake.

Usage

import asyncio
import aioflake


async def go():
    flake = aioflake.Flake()
    ident = await flake.next()
    print(ident)
    idstr = aiflake.urlsafe(ident)
    print(idstr)


loop = asyncio.get_event_loop()
loop.run_until_complete(go())
loop.close()