Skip to main content

SymSpellCppPy

Fast Unicode spelling correction and word segmentation for Python. SymSpellCppPy uses the Symmetric Delete algorithm in C++20 and exposes it through nanobind.

PyPI CI Documentation

Install

python -m pip install SymSpellCppPy

The project targets CPython 3.10–3.15. The release workflow builds wheels for Linux x86-64 and arm64, Windows x64, and macOS Intel and Apple Silicon. Source builds require CMake 3.26 or newer and a C++20 compiler.

Correct a word

from SymSpellCppPy import SymSpell, Verbosity

spell = SymSpell(max_dictionary_edit_distance=1)
spell.create_dictionary_entry("damen", 42)
spell.create_dictionary_entry("receive", 100)

suggestion, = spell.lookup("dämen", Verbosity.TOP)
print(suggestion.term, suggestion.distance)  # damen 1

suggestion, = spell.lookup("Recieve", Verbosity.TOP, transfer_casing=True)
print(suggestion.term)  # Receive

The package includes English unigram and bigram dictionaries. The runnable quickstart shows how to load them and use word lookup, compound correction, and segmentation. See the usage guides and API reference for custom dictionaries, Unicode, and binary snapshots.

SymSpell compatibility

The compatibility guide tracks the C# reference through SymSpell 6.7.3. It covers the 6.7 segmentation changes, the 6.7.1 dictionary update, and remaining differences with the reference and symspellpy.

Development

python -m pip install -e '.[test,docs]'
python -m pytest
python -m sphinx -W -b html docs/source build/docs
python -m sphinx -W -b doctest docs/source build/doctest

Native tests use Catch2 and CTest.

cmake -S . -B build/native -DBUILD_FOR_TEST=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build/native --config Release
ctest --test-dir build/native -C Release --output-on-failure

Set the release version in pyproject.toml. The installed package exposes the same version as SymSpellCppPy.__version__.

  1. Push a matching tag such as v0.1.0 to build and test the wheels and source distribution. GitHub Actions stores them as artifacts for review.
  2. Publish a GitHub release from that tag. The release run rebuilds and tests the distributions, then uploads them to PyPI.

Benchmarks

See benchmark results and reproduction commands. Run python benchmark.py to measure the installed extension. Install .[benchmark] and pass --implementation python to run the shared workloads against symspellpy.

Acknowledgements

Metadata

Release files for SymSpellCppPy 0.1.0

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

Source distribution (sdist)

Source distribution for SymSpellCppPy 0.1.0
File Size Uploaded Provenance Actions
symspellcpppy-0.1.0.tar.gz 5.5 MB Without provenance Details for symspellcpppy-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for SymSpellCppPy 0.1.0
File Actions
symspellcpppy-0.1.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for symspellcpppy-0.1.0-cp312-abi3-win_amd64.whl
symspellcpppy-0.1.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for symspellcpppy-0.1.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
symspellcpppy-0.1.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details for symspellcpppy-0.1.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
symspellcpppy-0.1.0-cp312-abi3-macosx_11_0_x86_64.whl CPython 3.12 abi3 macOS 11.0+ x86-64 Details for symspellcpppy-0.1.0-cp312-abi3-macosx_11_0_x86_64.whl
symspellcpppy-0.1.0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for symspellcpppy-0.1.0-cp312-abi3-macosx_11_0_arm64.whl
symspellcpppy-0.1.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for symspellcpppy-0.1.0-cp311-cp311-win_amd64.whl
symspellcpppy-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for symspellcpppy-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
symspellcpppy-0.1.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details for symspellcpppy-0.1.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
symspellcpppy-0.1.0-cp311-cp311-macosx_11_0_x86_64.whl CPython 3.11 CPython 3.11 macOS 11.0+ x86-64 Details for symspellcpppy-0.1.0-cp311-cp311-macosx_11_0_x86_64.whl
symspellcpppy-0.1.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for symspellcpppy-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
symspellcpppy-0.1.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for symspellcpppy-0.1.0-cp310-cp310-win_amd64.whl
symspellcpppy-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for symspellcpppy-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
symspellcpppy-0.1.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.26+ ARM64, Linux glibc 2.28+ ARM64 Details for symspellcpppy-0.1.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
symspellcpppy-0.1.0-cp310-cp310-macosx_11_0_x86_64.whl CPython 3.10 CPython 3.10 macOS 11.0+ x86-64 Details for symspellcpppy-0.1.0-cp310-cp310-macosx_11_0_x86_64.whl
symspellcpppy-0.1.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for symspellcpppy-0.1.0-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 49.1 MB

Release files / symspellcpppy-0.1.0.tar.gz

Download URL symspellcpppy-0.1.0.tar.gz
Size 5.5 MB
Tags Source
SHA-256 checksum
How to use checksums
2d01d4259355c85e94790084c55ad752ee2230bfbb1ba3cb00644e2f98f4fdb5
BLAKE2b-256 checksum
How to use checksums
ce434eef26d70cc09cca33efb614de1ccd074395f362fcf836141b6a1e5b4958
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / symspellcpppy-0.1.0-cp312-abi3-win_amd64.whl

Download URL symspellcpppy-0.1.0-cp312-abi3-win_amd64.whl
Size 3.1 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
fb6eb799b3fbc99c699aa89b6f328537c9a622a391e478a29c32f83646ddcec6
BLAKE2b-256 checksum
How to use checksums
58ccbb64396e9b0f5d5618f9051a617dac759a936f3e39bc9e358fe76008b5bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / symspellcpppy-0.1.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL symspellcpppy-0.1.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 2.9 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
1864c6a2d0f3266174295ace01287688aef6243f658a7664e73ecab433342f7f
BLAKE2b-256 checksum
How to use checksums
bc169895d2f25293367234b82c71f99cb26fbfe5b685664381bc337c2beaf39a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / symspellcpppy-0.1.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL symspellcpppy-0.1.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 2.9 MB
Tags CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
d556a345f0702a9d2f3b75eed2e1750e8bb1bb1e602664f4711beed27d9afb61
BLAKE2b-256 checksum
How to use checksums
3679e53839103530fec25e0be21924b62b2e61d9880e943f09e98bffc9437a33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / symspellcpppy-0.1.0-cp312-abi3-macosx_11_0_x86_64.whl

Download URL symspellcpppy-0.1.0-cp312-abi3-macosx_11_0_x86_64.whl
Size 2.8 MB
Tags CPython 3.12 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
0c4f7c304d4be420a8e708fe1e5a29da7dfc88fd4a547e476cb4eb30814edeee
BLAKE2b-256 checksum
How to use checksums
f1408fcc5df8df0e2d53a1be52e0c38c35f6b487441625f3d3a4c5ef5a98dfc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / symspellcpppy-0.1.0-cp312-abi3-macosx_11_0_arm64.whl

Download URL symspellcpppy-0.1.0-cp312-abi3-macosx_11_0_arm64.whl
Size 2.8 MB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4c1ad1984a420a92b0eefeac2fd76f59065b9b23d818a4c00c79c4f715f0f3d6
BLAKE2b-256 checksum
How to use checksums
13c8e27f6d310eaafbf55cb8aba230635233645fb84fe8862df7ffc20d248b2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / symspellcpppy-0.1.0-cp311-cp311-win_amd64.whl

Download URL symspellcpppy-0.1.0-cp311-cp311-win_amd64.whl
Size 3.1 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
38fe11437d0c88150abaf61a6e04945fbacf0b41060f016d52110473c56a90df
BLAKE2b-256 checksum
How to use checksums
4e4467330c8665e51b0bed818a6c845c080752cdb8188f4d3bba1e9fc921955a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / symspellcpppy-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL symspellcpppy-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 2.9 MB
Tags CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f6ced3476f2c18518321d789f00e669c75dfa5ef21de164513b98f95c888d171
BLAKE2b-256 checksum
How to use checksums
9b00b51a3c5ff15f00796c25d8f1cdfc0cfb71b2c25033cf43745eb8a72d7c23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / symspellcpppy-0.1.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL symspellcpppy-0.1.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 2.9 MB
Tags CPython 3.11 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
1d962cf47845488927135b93006b892e8d73db0dc9190f141925d5c7ce52c14c
BLAKE2b-256 checksum
How to use checksums
0ac48c2d51a1aee2f50d266ac8b76374c3425c5ab31dfae9c4d0b60bfb05939a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / symspellcpppy-0.1.0-cp311-cp311-macosx_11_0_x86_64.whl

Download URL symspellcpppy-0.1.0-cp311-cp311-macosx_11_0_x86_64.whl
Size 2.8 MB
Tags CPython 3.11 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
9afc53fa8b4840b77bb9b504121947b9d246d60a3742d5e363eb36e02acde54c
BLAKE2b-256 checksum
How to use checksums
2bc2926152e81cae1705c7d6fb62ad02c918c12e901e9544715e62476aba537f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / symspellcpppy-0.1.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL symspellcpppy-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Size 2.8 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d2cbc91027f345b49b26cd60baffd287d52f67dd80bffa04c01893bbc64bbfa6
BLAKE2b-256 checksum
How to use checksums
662048ac8b476b92785abc95b366840314b1d5bcd3f014aba48d4fd8861ea746
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / symspellcpppy-0.1.0-cp310-cp310-win_amd64.whl

Download URL symspellcpppy-0.1.0-cp310-cp310-win_amd64.whl
Size 3.1 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
cd3d28b57d265e5cc01fa8421e28a618da4fcfb9dd92262580e6af87b25fa835
BLAKE2b-256 checksum
How to use checksums
67093f75f7e32f4ea7bbed059dc313dac797d05b78776e4d70306306faea4e77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / symspellcpppy-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL symspellcpppy-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 2.9 MB
Tags CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b8d096c7ccce952c63991403651ed7cd51f1527d91237a6af3d626694d186d2a
BLAKE2b-256 checksum
How to use checksums
08e6c4545946f47e8b2c8bc97d6e6d327a920f5b0a902b80f0f7e31750afc1a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / symspellcpppy-0.1.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL symspellcpppy-0.1.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 2.9 MB
Tags CPython 3.10 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
580a86e84e2c366f74c4328cbefb439b8db145266bc788f449fc3fbd445e13d5
BLAKE2b-256 checksum
How to use checksums
f6dce46ce207c495ff4d7d2f2a5374fd744cd8032d49fb121ea1c5a4e9f3947f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / symspellcpppy-0.1.0-cp310-cp310-macosx_11_0_x86_64.whl

Download URL symspellcpppy-0.1.0-cp310-cp310-macosx_11_0_x86_64.whl
Size 2.8 MB
Tags CPython 3.10 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
289e3d466a1580ae3c7674bac353e6495d04d62b752d45abe4dd7c9351d6d013
BLAKE2b-256 checksum
How to use checksums
8761a6ea9f272a0b2335826264edb0c8636ccfd216f1d7f9feea8348de87fc60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / symspellcpppy-0.1.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL symspellcpppy-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Size 2.8 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
719a5d28c76072f4b8a9dea6a0682178b51c495772f56878c545c6a0d59bd437
BLAKE2b-256 checksum
How to use checksums
5c22525a2245da102186861122cac480bebe9872144f4450d2c11c7d144f6b64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for SymSpellCppPy 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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