Skip to main content

xpd

xpd is a fast, opinionated linter for Python library habits that make code slow or wrong, starting with pandas and scikit-learn. Each library gets one set of rules, written for its current version. It fixes what it can, and it is built to run after every edit a coding agent makes.

$ xpd check samples/bad.py
samples/bad.py:5:15: warning [pandas/row-loop] A loop over rows runs Python once per row. Compute on whole columns instead, such as df["a"] * df["w"].
samples/bad.py:6:5: error [pandas/chained-assignment] Chained assignment writes to a copy under copy-on-write, so the frame keeps its old values. Assign to df.loc[i, "a"] instead.
samples/bad.py:7:1: warning [pandas/no-inplace] inplace=True gives no speedup and blocks chaining. Reassign instead.
samples/bad.py:8:5: warning [pandas/merge-without-validate] merge without validate= can silently duplicate rows.
samples/bad.py:11:11: warning [pandas/concat-in-loop] Concatenating inside a loop is quadratic. Collect frames in a list, concat once.
xpd: 5 issues, 2 more with --fix --unsafe-fixes

Install

uv tool install xpd   # or: uvx xpd check .

Before version 0.7.0 the package was pdx-lint and the command was pdx.

Use

Command What it does
xpd check [paths] Lint files and folders. Exit 1 on any error, 2 if xpd can't run.
xpd check --fix Apply safe fixes, then lint. Add --unsafe-fixes to apply the rest.
xpd profile data.csv Show dtypes, nulls, unique counts and memory per column. Needs pandas.
xpd equiv old.py new.py Check that two scripts leave an equal result. Needs pandas.
xpd graph features.py Print the dataflow of step code or Apache Hamilton modules: what reads what, and what does not connect.
xpd hook Lint the file a Claude Code edit touched.
xpd skill Print the agent skill for this version.

Run xpd -h for every flag.

Documentation

The full guide, including the Claude Code hook setup and how to write a rule, lives at https://snestra.github.io/xpd/.

License

MIT or Apache-2.0, at your choice.

Metadata

Release files for xpd 0.7.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xpd 0.7.2
File Size Uploaded Provenance Actions
xpd-0.7.2.tar.gz 87.9 kB Without provenance Details for xpd-0.7.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for xpd 0.7.2
File Actions
xpd-0.7.2-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for xpd-0.7.2-py3-none-win_arm64.whl
xpd-0.7.2-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for xpd-0.7.2-py3-none-win_amd64.whl
xpd-0.7.2-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for xpd-0.7.2-py3-none-musllinux_1_2_x86_64.whl
xpd-0.7.2-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for xpd-0.7.2-py3-none-musllinux_1_2_aarch64.whl
xpd-0.7.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for xpd-0.7.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
xpd-0.7.2-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for xpd-0.7.2-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
xpd-0.7.2-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for xpd-0.7.2-py3-none-macosx_11_0_arm64.whl
xpd-0.7.2-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for xpd-0.7.2-py3-none-macosx_10_12_x86_64.whl

Total release size: 18.5 MB

Release files / xpd-0.7.2.tar.gz

Download URL xpd-0.7.2.tar.gz
Size 87.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d6428d37b3262930c0bee9651844726deef358666d4001b7223150b8f9fb984e
BLAKE2b-256 checksum
How to use checksums
b3cf67881def04eb1ceb82f4873466b80c7f5c6fdda7b138b3cb557654e8ce89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / xpd-0.7.2-py3-none-win_arm64.whl

Download URL xpd-0.7.2-py3-none-win_arm64.whl
Size 2.2 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
1c587de6ec3307a52b6736d31b097620e7f84f8cd9d37498ea5f59dafb7bab74
BLAKE2b-256 checksum
How to use checksums
8e59f79b06d9cd50f184a5d0de937615b904a3ed18b089c43a7924307a5c8811
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / xpd-0.7.2-py3-none-win_amd64.whl

Download URL xpd-0.7.2-py3-none-win_amd64.whl
Size 2.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
1af74538b3654195a28b8cf8edf6552732d2751b6718af24a2f3f8f7406621de
BLAKE2b-256 checksum
How to use checksums
8ce2b14e166155e289eaaacf8745e23448c33d0e3db89c82957177cb2f3e82eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / xpd-0.7.2-py3-none-musllinux_1_2_x86_64.whl

Download URL xpd-0.7.2-py3-none-musllinux_1_2_x86_64.whl
Size 2.4 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
82e25804139132b3d7ff4397f000d4367d29d45e8f95892388cf423280a90e63
BLAKE2b-256 checksum
How to use checksums
098a7705cbb56f65ee40aa13c8e29d963eda5a2fbc27e0d76751c339f61a9d7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / xpd-0.7.2-py3-none-musllinux_1_2_aarch64.whl

Download URL xpd-0.7.2-py3-none-musllinux_1_2_aarch64.whl
Size 2.2 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
7c4d6c6a22549f1571881ab2acb028e18157a7ebdc2f47f9a8c1f8db6dc5a029
BLAKE2b-256 checksum
How to use checksums
d1039069a1ed141914ab5e957aa63ab8b47800d81412252007da578e44fa4920
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / xpd-0.7.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL xpd-0.7.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 2.4 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
f54915a0965b114822dc2827a0a990d4c9a1af3aa50ed2a6d0eba3d7b88c9d12
BLAKE2b-256 checksum
How to use checksums
5e533ea64a8ad730791ecd4a0a3ec7b8bafb9ddf5ba501254082538a724b2553
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / xpd-0.7.2-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL xpd-0.7.2-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 2.2 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
db597850b8d14cb95fb1266b6571e6925888e3d2d59a1bf5bce38932aa230bcb
BLAKE2b-256 checksum
How to use checksums
480ee5c8698197ac8820114e0e8a3755d0f2f2bc15d5b72e6f39815f8eb2242f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / xpd-0.7.2-py3-none-macosx_11_0_arm64.whl

Download URL xpd-0.7.2-py3-none-macosx_11_0_arm64.whl
Size 2.2 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
185c9514b90a297eb2ba1d8bceb2bfb71de0291b7b2ab07ac04c182c1e60beb0
BLAKE2b-256 checksum
How to use checksums
505d73a0508ec17e9743f2a6a7f31d341fef5c5ded4d00e3fe12e097ebb29334
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / xpd-0.7.2-py3-none-macosx_10_12_x86_64.whl

Download URL xpd-0.7.2-py3-none-macosx_10_12_x86_64.whl
Size 2.3 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
4e7c34625e1114e07967d85693fa7c846fca3c89df5728c2385d4f9a230f46df
BLAKE2b-256 checksum
How to use checksums
687c4b0008c8303e19b514be3b412d4d951319c1fc7e13efe905a29f9addccf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for xpd 0.7.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.7.2 This release

9 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page