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.1

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.1
File Size Uploaded Provenance Actions
xpd-0.7.1.tar.gz 87.2 kB Without provenance Details for xpd-0.7.1.tar.gz

Built distributions (wheels)

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

Total release size: 18.5 MB

Release files / xpd-0.7.1.tar.gz

Download URL xpd-0.7.1.tar.gz
Size 87.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b6ac505572bb07279760e7d413e7c70ee2f11b699c796bef3d8606e5d46df408
BLAKE2b-256 checksum
How to use checksums
0a83a0ca1e563efd78b4a33442d43b3d3a1510c7e9649d31ead6dd47c722a638
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.1-py3-none-win_arm64.whl

Download URL xpd-0.7.1-py3-none-win_arm64.whl
Size 2.2 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
fc0b24bcdb19fa4bdbc553dfa281b7a828df9eaa400f028985bf14a4dcde9130
BLAKE2b-256 checksum
How to use checksums
616791b4b639c6e467aae24f30574d77060f8ca02585ff7fc5f96ecbbda88f41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.1-py3-none-win_amd64.whl

Download URL xpd-0.7.1-py3-none-win_amd64.whl
Size 2.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
d388b2865e1966d83816dc6963927b23271311a282fbbea8deeba2b65042df75
BLAKE2b-256 checksum
How to use checksums
931e25e26c6be381bd60e127384aab6380b8c22bcc2e85b0113af7b5abf582f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.1-py3-none-musllinux_1_2_x86_64.whl

Download URL xpd-0.7.1-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
4b06e06605fc2996049871a7806b15bd14db5c012fb5d5c2473ee41051c854b3
BLAKE2b-256 checksum
How to use checksums
4f70135ca74c3631c16478028f982e64b7352762fc0fd8c469e0a3c116d4b69c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.1-py3-none-musllinux_1_2_aarch64.whl

Download URL xpd-0.7.1-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
cf590a40e0c01765b5d974b2f5b198c40a1ca82646265e6d877067ed35831589
BLAKE2b-256 checksum
How to use checksums
fa277b7f37604715d7242348ce69d4159697f1bcb3a3c83559f2e20bc40ef5eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL xpd-0.7.1-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
baa087836eacae59d2730141c4ecf1977d59ac4ab179a45b1f2ec09e555b458e
BLAKE2b-256 checksum
How to use checksums
6c17b243a7c6d4705c5e2758edab880dc5e47bb93891cd3fd4fb57de8d7062a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL xpd-0.7.1-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
0115eeec780a9a91aa9cf7d2adabefdb0de1e99638ad04358292edc32d2cbd43
BLAKE2b-256 checksum
How to use checksums
d5bfaea96970a9b0f60bb107d44082f60f8c728fa0ad1a8fe26fb3fff21054c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.1-py3-none-macosx_11_0_arm64.whl

Download URL xpd-0.7.1-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
a7f840ab7a241055cdb8c3cb809b497619c0d68c009d2da99f6b5a6f9cc9f299
BLAKE2b-256 checksum
How to use checksums
fc06826cf7492581c1b90b9811be8e895b40c78fa32b3b889ff7c44a62eec119
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.1-py3-none-macosx_10_12_x86_64.whl

Download URL xpd-0.7.1-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
3488101ee8e5ad275bd479d43ec01cb1edcc5ac2b45f67e96dc29e7d86d920c7
BLAKE2b-256 checksum
How to use checksums
934acec31337d708561be843cd6369871021aca2e445dcefcd401a69a0d02a0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.1

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.1 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