python-ulid
python-ulid copied to clipboard
Ability to use the lib as a Python module returning a ULID
Like so:
$ python -m ulid
01BTGNYV6HRNK8K8VKZASZCFPE
I guess implementing a __main__ which returns ULID.from_datetime(datetime.now()) by default.
It would ease the generation when calling from a Makefile for instance. My current alternative is the less elegant:
$ python -c 'from ulid import ULID;print(str(ULID()))'