Skip to main content

harper-cli

A PyPI package that bundles the pre-built harper-cli binary from Automattic/harper so it can be installed with pip/uv. Automattic authors and builds the binary; this repository only handles fetching/packaging it for distribution on PyPI.

This project is not affiliated with, endorsed by, or an official mirror of Automattic/harper.

Installation

Install from PyPI with pip:

pip install harper-cli

or with uv:

uv add harper-cli

Usage

Run harper lint on one or more files, or pipe text through standard input. See harper --help and harper lint --help for the full set of options (output format, dialect, ignore/only rules, etc.) exposed by the underlying harper-cli binary.

As a one-off tool, without installing

uvx --from harper-cli harper lint README.md

Inside a project virtual environment

If harper-cli is a project dependency (installed via pip install/uv add above), run it directly once the venv is active:

harper lint README.md

Or, without activating the venv, via uv run:

uv run harper lint README.md

As a pre-commit hook

Since this package only wraps a binary, there's no dedicated pre-commit hook repo to point to. Declare it as a local hook instead:

# .pre-commit-config.yaml
repos:
  - repo: local
    hooks:
      - id: harper-lint
        name: harper lint
        entry: uvx --from harper-cli harper lint
        language: system
        types: [markdown,python]

License

See LICENSE and NOTICE for full attribution details. In short: the bundled harper-cli binary is Copyright 2024 Elijah Potter and licensed under Apache-2.0 by the Automattic/harper project. The packaging code in this repository is separately Copyright 2026 Thierry Jean, also under Apache-2.0.

Metadata

Release files for harper-cli 2.10.0

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

Built distributions (wheels)

Table of built distributions (wheels) for harper-cli 2.10.0
File
harper_cli-2.10.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
harper_cli-2.10.0-py3-none-manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
harper_cli-2.10.0-py3-none-manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
harper_cli-2.10.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
harper_cli-2.10.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details

Total release size: 55.8 MB

Release files / harper_cli-2.10.0-py3-none-win_amd64.whl

Download URL harper_cli-2.10.0-py3-none-win_amd64.whl
Size 12.6 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
f1782593692c41b5304edc4fd4782420936886d7a86e4ff72bf06f52126f7348
BLAKE2b-256 checksum
How to use checksums
efdaa171df4ba16045e41aa2aea2ab9ade862953218da282c7fad8c537d631ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.12 {"installer":{"name":"uv","version":"0.12.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / harper_cli-2.10.0-py3-none-manylinux2014_x86_64.whl

Download URL harper_cli-2.10.0-py3-none-manylinux2014_x86_64.whl
Size 13.2 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
2b6f4137910c741ff18888e42baba24275d8c6dde359d1bd6f062667efeb9e4d
BLAKE2b-256 checksum
How to use checksums
3ba67a897366d7755ffe2172226ac16ba2b26aa3de81d1b9256845bb17078e53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.12 {"installer":{"name":"uv","version":"0.12.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / harper_cli-2.10.0-py3-none-manylinux2014_aarch64.whl

Download URL harper_cli-2.10.0-py3-none-manylinux2014_aarch64.whl
Size 8.7 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
c537bb54d5c2436881e257e122cebd449cd6030809521a2611d78f1e1f162ae4
BLAKE2b-256 checksum
How to use checksums
966cce5dbb65bb8cabec826d92a91efd11b091fa599a234705f7cf7a408fa2d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.12 {"installer":{"name":"uv","version":"0.12.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / harper_cli-2.10.0-py3-none-macosx_11_0_arm64.whl

Download URL harper_cli-2.10.0-py3-none-macosx_11_0_arm64.whl
Size 8.6 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e624eb3ba6999f9ab533635ec2d354a468f60bba7e5596d0b9e8af01e00f9b4c
BLAKE2b-256 checksum
How to use checksums
d5743185604ec99dc4e26e691719569f3c8c17dc819f0ad13da62b54e286fe69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.12 {"installer":{"name":"uv","version":"0.12.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / harper_cli-2.10.0-py3-none-macosx_10_12_x86_64.whl

Download URL harper_cli-2.10.0-py3-none-macosx_10_12_x86_64.whl
Size 12.7 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
686c4f3e4a2f8d31eb4b33e2f58d2aa08b1e8524aed89d4340b0a9c71452436f
BLAKE2b-256 checksum
How to use checksums
c1ac8454caa39afd26d97ebfe7798b41e33dbb6fb4634d08caa67da60dc9ecea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.12 {"installer":{"name":"uv","version":"0.12.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

2.11.0

5 release files

This release

2.10.0 This release

5 release files

2.9.1

5 release files

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