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

Uploaded Python 3

File details

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

File metadata

  • Download URL: hunspell2-0.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 2eca407195e5133c6e4d94ffe080b41699add880336f052dd88c43e9394062a6
MD5 436decc791fcae10a547530d71d31204
BLAKE2b-256 9077b99cce34079a55f77ab0c792250e5f5f90cd502c468c1a9472e40964aeba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hunspell2-0.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a6882812b712b516a93577ece7bf1d63d6017739cebb4ac8a010a26cb2a11e5
MD5 16a5eec85bc0d1e46851025ad9b7bcb5
BLAKE2b-256 49fe8156244a1ceb49fdc34b74e24b996af5f6670341116562ea760b8fabe55f

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