eui48-bit-distance documentation

eui48-bit-distance

Status: Beta Release PyPI Supported Python versions

License: Apache-2.0 Codecov CodeQL Typed

Calculate bit distance between EUI-48 identifiers.

Developing locally

Installing dependencies (using venv and pip):

python -m venv .venv
.venv/bin/pip install --upgrade pip --uploaded-prior-to P7D
.venv/bin/pip install --group dev --uploaded-prior-to P7D

[!TIP] You can also activate the virtual environment manually, or use something like direnv to do it automatically. The rest of the recipes here just keep showing the required path to run the commands.

Running all tests using the default local Python version:

.venv/bin/tox -e test

Running a subset of tests (see tool.tox.env_base.test config) across many Pythons:

.venv/bin/tox run-parallel -m test

Running benchmarks across specific Pythons:

.venv/bin/tox -f 3.11 -f pypy3.11 -- tests/test_benchmark.py

Linting (targeting the default local Python version):

.venv/bin/tox -e lint

Building HTML documentation:

.venv/bin/tox -e docs

Building distribution files:

.venv/bin/tox -e build