Skip to main content

messpy

Catch maintainability problems in Python before they calcify: oversized functions and classes, tangled dependencies, dead private code, muddy naming, and other mess that reviews keep rediscovering.

messpy is a local CLI. It reads source as text, never imports or runs your project, and needs no project dependencies installed. Python 3.11+.

Quick start

python -m pip install messpy
messpy src text python --ignore-tests

That scans src with the recommended low-noise policy and prints findings on stdout. Exit 0 is clean, 2 means findings, 1 means the tool or a source file failed.

Common next steps:

messpy src text python,opinionated --ignore-tests
messpy src sarif python --ignore-tests --reportfile reports/messpy.sarif
messpy src github python --ignore-tests

Full command syntax, options, and discovery: docs/usage.md. What each rule checks: docs/rules.md. Machine-readable report shapes: docs/reports.md.

Install

With Homebrew (standalone executable; Python is not required):

brew install quality-gates/tap/messpy
messpy --version

Or install the Python package:

python -m pip install messpy
# or: pipx install messpy
# or: uv tool install messpy
messpy --version

Tune the gate

Start with python. Add opinionated when you want the stricter checks the recommended set leaves out. Point at a custom XML ruleset when thresholds or membership need to live in the repo:

<ruleset name="team policy">
  <rule ref="python">
    <exclude name="DevelopmentCodeFragment" />
  </rule>
  <rule ref="LongVariable">
    <priority>2</priority>
    <properties>
      <property name="maximum" value="50" />
    </properties>
  </rule>
</ruleset>
messpy src text path/to/team-policy.xml --ignore-tests

Suppress one intentional exception

# messpy-disable-next-line RuleName
value = deliberate_exception()

Region form: messpy-disable / messpy-enable. Names are case-insensitive. --strict keeps suppressed findings visible in the report.

Drop it into CI

# GitHub Actions
- run: pip install messpy
- run: messpy src github python --ignore-tests
# GitLab Code Quality
script: messpy src gitlab python --reportfile gl-code-quality-report.json
artifacts:
  reports:
    codequality: gl-code-quality-report.json

Maintainers

Release process: docs/releasing.md. Fuzzing: docs/fuzzing.md. Exploratory testing feedback: docs/exploratory-testing/.

The installed-artifact check, python scripts/verify_self_analysis.py MESSPY, requires zero production structural and onion findings. It also checks explicitness report validity, selected production owners, and a short literal behavior matrix through the installed CLI. The shared explicitness corpus checks broader classification behavior. The CLI's real I/O and opaque operations are expected to produce explicitness findings; those findings are preserved.

Metadata

Release files for messpy 0.1.22

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

Source distribution (sdist)

Source distribution for messpy 0.1.22
File Size Uploaded Provenance Actions
messpy-0.1.22.tar.gz 341.3 kB With provenance Details for messpy-0.1.22.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for messpy 0.1.22
File Interpreter ABI Platform Actions
messpy-0.1.22-py3-none-any.whl Python 3 none any Details for messpy-0.1.22-py3-none-any.whl

Total release size: 442.6 kB

Release files / messpy-0.1.22.tar.gz

Download URL messpy-0.1.22.tar.gz
Size 341.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4391a19657ed307c981a13e37636d3f0bb57bbd080e97270cf1ed2116701ad2b
BLAKE2b-256 checksum
How to use checksums
9295f0d3e0563a1ed947f1803f2c68522a51ba11c65d846eac9dcdc8e8fdd439
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / messpy-0.1.22-py3-none-any.whl

Download URL messpy-0.1.22-py3-none-any.whl
Size 101.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49a82496f63b0b6e6c1816d4cdd989be4e7b6dfff002abd87ba5297092758046
BLAKE2b-256 checksum
How to use checksums
98b2d97f97b7cc1a26d77acb67c3fd34b9580131f23eee0a663d3b834c4f8c0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Security for messpy 0.1.22

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for messpy-0.1.22.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

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.

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