A zero dependency, dead simple version 7 UUID generator.
Just copy the generator.py
file (or the contents) to your project.
from uuid7 import uuid7
import uuid
rand_uuid: uuid.UUID = uuid7()
print(rand_uuid)
- Python 3.8+
pip
Create a virtual environment:
python -m venv venv
source venv/bin/activate
Install dependencies using pip
:
pip install -r requirements.txt
Install the package in editable mode to allow importing from tests or external scripts:
pip install -e .
Tests are written using pytest
. Run tests from the project root:
pytest tests/
WTFPL