Skip to content

RayID for Python

Generate short, readable IDs for logs, events, requests, and traces.

RayID is a tiny helper around a character set and a length. You pick the alphabet (digit, lower, upper, or all), then call gen(length).

from rayid import RayID

ray = RayID("digit")
print(ray.gen(16))  # e.g. 4829103756120483
PyPI pypi.org/project/rayid
Source GitLab
RayID for Js npm rayid ยท docs

Next