Installation

mew is distributed as a CPython 3.11+ package with a small C++ extension (Google Benchmark via nanobind). On supported platforms a pre-built wheel is installed; otherwise the C++ extension is compiled from source — see Building from source for the toolchain requirements.

Using uv

With a [tool.uv.sources] entry in your pyproject.toml:

[tool.uv.sources]
mew = { git = "https://github.com/nicholasjng/mew" }

Simply run:

$ uv add mew

Using pip

$ pip install git+https://github.com/nicholasjng/mew.git

A PyPI release is planned for the future.

Optional extras

The following extras are available for extra CLI features:

Extra

Pulls in

Enables

cpu

pyinstrument

mew run --sample, --sample-html report.html

memory

memray (non-Windows)

mew run --profile-memory, --flamegraph alloc.html

dev

pytest, ruff, pyarrow, duckdb, build deps

Local development and Parquet output

$ uv add 'mew[cpu,memory]'

Verifying

$ mew --version
mew 0.1.0 (Google Benchmark v1.9.0@abcdef12)

The trailing version identifies the last stable version, and which Google Benchmark commit the C++ extension was built against.