Skip to main content

A modern Python interface to Hunspell, compatible with current Hunspell releases and easy to install across platforms

Project description

myhunspell

A modern, lightweight Python interface to Hunspell, designed to work with current Hunspell versions and to be easy to install across platforms, including macOS.

This project was created as a maintained alternative to pyhunspell, which is no longer actively maintained and does not support newer releases of Hunspell.


Motivation

Hunspell is widely used for spell checking, but existing Python bindings—most notably pyhunspell—have fallen behind:

  • pyhunspell is no longer actively maintained
  • It does not support modern Hunspell versions (≥ 1.7)
  • Installation often fails on newer systems, or requires manual tinkering, especially macOS

This library aims to provide:

  • ✅ Compatibility with current Hunspell versions
  • ✅ Simple installation on macOS, Linux, and other platforms
  • ✅ A clean, Pythonic API
  • ✅ Minimal build complexity

Design

Instead of tightly coupling to Hunspell’s internal C++ headers and build layout, this library relies on the system-installed hunspell command-line tool.

This design choice provides several benefits:

  • No fragile dependency on Hunspell’s internal header structure
  • Works with any Hunspell version available on the system
  • Simplifies installation, especially on macOS
  • Avoids compiler and ABI issues common with native Python extensions

Requirements

  • Python 3.11+
  • Hunspell must be installed and available on your PATH

You can verify Hunspell is available by running:

hunspell -v

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hunspell2-0.2.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hunspell2-0.2.0-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file hunspell2-0.2.0.tar.gz.

File metadata

  • Download URL: hunspell2-0.2.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.12

File hashes

Hashes for hunspell2-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0735d623eeb1f1a8045785d1a19698e4aca6bdc3163bfbdf9bdcb5b199aae6fa
MD5 f52bd1ccfca6e3478c0632eda58b4d72
BLAKE2b-256 533f028663e20496f1ba36243018c8f7aa668decadb81acbadd1da36cbd2dd76

See more details on using hashes here.

File details

Details for the file hunspell2-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: hunspell2-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.12

File hashes

Hashes for hunspell2-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1430b2a8770237b52600bcf6daf93d36829058b733d2067ff741f846f599a7e8
MD5 401b933300a9e3bffd17d9153698ffad
BLAKE2b-256 a3fa20c770ef45bd370a4d9ad0e778a48283ac5b8f9ff1bacb0f62f734097517

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page