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.1.tar.gz (15.5 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.1-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hunspell2-0.2.1.tar.gz
Algorithm Hash digest
SHA256 cceee908c00e63528ecf45be0915390f45120b9791a3b152dccd38d6412ca723
MD5 4eea61e2e02765742cff98026b82fc08
BLAKE2b-256 6718dfbe6bdae01acc401d58b5da3caf9189abf0cbb8de4959e7d616aaed341d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hunspell2-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1a899c88ac4db50eb6f5e37ddefd6717072b82e88470bb506f9455d6b883dd23
MD5 f518c1d918bb58f17f572389a093fa62
BLAKE2b-256 ee003a82f7d34926c6e5862c236ccb29efc490f90a14b557c7b22728e51e62ba

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