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.12.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.12.0
File
harper_cli-2.12.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
harper_cli-2.12.0-py3-none-manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
harper_cli-2.12.0-py3-none-manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
harper_cli-2.12.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
harper_cli-2.12.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details

Total release size: 56.0 MB

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

Download URL harper_cli-2.12.0-py3-none-win_amd64.whl
Size 12.7 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
c913194c2a8924b8d840083b257ae4cf4c6e7d669af07494ac8f23bd10e8e96f
BLAKE2b-256 checksum
How to use checksums
4d94060465d45d33cfb4e8ff79857fecebc88dec0aa321a3255588c59097242f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","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.12.0-py3-none-manylinux2014_x86_64.whl

Download URL harper_cli-2.12.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
98fc7443ce6e6bcae50082fb92ccac08dc4b94c5db924104a0d1d9f40cfd1c88
BLAKE2b-256 checksum
How to use checksums
7a80fdbe999047fa02a58175facd1f79eaf273e23b654f53e64c727834fcf387
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","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.12.0-py3-none-manylinux2014_aarch64.whl

Download URL harper_cli-2.12.0-py3-none-manylinux2014_aarch64.whl
Size 8.8 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
bd8cf7d2f4d23bf9b8c32733a618ce7b41de10d75a929b7285463887c4393d2a
BLAKE2b-256 checksum
How to use checksums
920e8deb132317e0d28514567823f554ab3fe0513ac6e61d335e197c7c562850
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","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.12.0-py3-none-macosx_11_0_arm64.whl

Download URL harper_cli-2.12.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
545bbd5f3e68dc51608e13fa1100f9cc742dbdc24bb4f58fcc1d7f8bde1a6852
BLAKE2b-256 checksum
How to use checksums
fb0a109dc4a299263442fa5f03e1483769bec886db188915bcd1f6256c932776
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","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.12.0-py3-none-macosx_10_12_x86_64.whl

Download URL harper_cli-2.12.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
38087912d3b7e63c05960fa4f813d7eb9ecdf4eb57f839ec9987243552364458
BLAKE2b-256 checksum
How to use checksums
c2522b05c58348e9e1a1a0c397fb7006cf2943c0137febacc8ead7f8b056ba2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","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

This release

2.12.0 This release

5 release files

2.11.0

5 release files

2.10.0

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