Skip to content
/ epyxid Public

Python wrapper around Rust implementation of XID (Globally Unique ID Generator)

License

Notifications You must be signed in to change notification settings

shpaker/epyxid

Repository files navigation

ePyXID

PyPI PyPI

Fast globally unique sortable id generator.

Python wrapper around Rust implementation of xid https://github.com/kazk/xid-rs

Install

pip install epyxid

Usage

from epyxid import XID

xid: XID = XID()
print(xid)
# cnisffq7qo0qnbtbu5gg
print(bytes(xid))
# b'e\xe5\xc7\xbfG\xd6\x01\xab\xaf\xab\xf1a'
print(xid.time)
# 2024-03-04 16:08:15

About

Python wrapper around Rust implementation of XID (Globally Unique ID Generator)

Topics

Resources

License

Stars

Watchers

Forks