$npx skillfedfor your agent

pylev

A pure Python Levenshtein implementation that's not freaking GPL'd.

With conditionsPyPI Text ProcessingReleased May 20211.9M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pylev-1.4.0-py2.py3-none-any.whl
v1.4.0 · released 2021-05-30

Yes, if you need a lightweight, dependency-free Levenshtein implementation. The package is stable, permissively licensed, and carries no known vulnerabilities. The abandoned maintenance status is not a blocker for a mature algorithm, but consider alternatives if you need active support or performance-critical use.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction: pure Python with no runtime dependencies and a wheel distribution.
  • Maintenance is abandoned (last commit 2023-04-04, no releases since 2021-05-30), but the package is stable and unlikely to require updates for basic use.

License · maintenance · safety

permissive license (permissive) — Licensed under BSD (permissive), which allows free use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects.

last release 2021-05-30 (1902 days) · last repo commit 2023-04-04 · 99 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,894,735 downloads/mo, #3,455 on PyPI

Verify before relying

import pylev
distance = pylev.levenshtein('kitten', 'sitting')
assert distance == 3
  • Whether the package receives security updates despite the abandoned status
  • Performance characteristics compared to alternative Levenshtein implementations
Same gist for agents: .md · .json

What it is and what it does

pylev is a pure Python implementation of the Levenshtein distance algorithm, which measures how different two strings are by counting the minimum edits (insertions, deletions, substitutions) needed to transform one into the other. It has no external dependencies and works across Python versions. The package is straightforward: you import it, call the levenshtein() function with two strings, and get back an integer distance.

The library is useful for fuzzy matching, spell-checking, and similarity scoring in text processing pipelines. The current version (1.4.0) was released in 2021-05-30. The project is no longer actively maintained, but the algorithm itself is deterministic and unlikely to break.

Use it for

  • Fuzzy string matching in search or autocomplete features to find similar terms despite typos
  • Spell-checking and correction by ranking candidate words by their edit distance from a misspelled input
  • Duplicate detection in datasets by comparing record fields and flagging near-identical entries
  • Name matching across databases where entries may have minor variations in spelling or formatting

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need a lightweight, dependency-free Levenshtein implementation.

The package is stable, permissively licensed, and carries no known vulnerabilities. The abandoned maintenance status is not a blocker for a mature algorithm, but consider alternatives if you need active support or performance-critical use.

Install

pylev on PyPI

Before you install

Low friction: pure Python with no runtime dependencies and a wheel distribution. Maintenance is abandoned (last commit 2023-04-04, no releases since 2021-05-30), but the package is stable and unlikely to require updates for basic use.

License in practice

Licensed under BSD (permissive), which allows free use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects.

Quickstart

import pylev
distance = pylev.levenshtein('kitten', 'sitting')
assert distance == 3

Verify before relying

  • Whether the package receives security updates despite the abandoned status
  • Performance characteristics compared to alternative Levenshtein implementations

Package facts

Licensepermissive license permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAbandoned 1,902 days since the last release
Last repo commit
First released
Downloads1,894,735 / month, #3,455 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3

Evidence: pylev-1.4.0-py2.py3-none-any.whl

Tags

Capabilities
levenshtein distancestring similarityedit distancestring matchingtext similarity metricfuzzy string comparisoncharacter edit distance
Topics
string-algorithmstext-similarity

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “character edit distance”

  • pylevComputes the Levenshtein distance between two strings—the minimum…
  • edlibEdlib calculates edit distance (Levenshtein distance) between two…
  • strsimpyImplements a dozen string similarity and distance algorithms…

Give your agent the search over MCP, or paste the wish link into any chat.

More Text Processing packages

regex Worth it
PyPI · Python Modules · released Jul 2026

A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.

Apache-2.0 AND CNRI-Pythoncompiled wheel · 3.10+
437.7Mdownloads / mo
pyparsing Worth it
PyPI · Text Processing · released Jan 2026

pyparsing provides a library for building text parsers directly in Python code using composable grammar classes, handling quoted strings, whitespace variation, and embedded comments without regex or lex/yacc.

Install it if you need to parse text or define grammars programmatically.

MITpure Python · 3.9+
412.7Mdownloads / mo
fonttools Worth it
PyPI · Text Processing · released May 2026

fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.

Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.

permissive licensepure Python · 3.10+
235.9Mdownloads / mo
docutils With conditions
PyPI · Software Development · released May 2026

Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.

BSD-3-Clausepure Python · 3.9+
225.6Mdownloads / mo
RapidFuzz Worth it
PyPI · Text Processing · released Apr 2026

RapidFuzz provides fast fuzzy string matching using Levenshtein Distance and related metrics, implemented mostly in C++ with Python bindings for rapid similarity scoring and approximate string matching.

Install it if you need fuzzy string matching; it's a solid replacement for FuzzyWuzzy with better licensing and performance.

MITcompiled wheel · 3.10+
184.2Mdownloads / mo
tinycss2 Worth it
PyPI · Text Processing · released Nov 2025

tinycss2 parses CSS strings into token and block objects, and generates CSS strings from those objects, following the CSS Syntax Level 3 specification without enforcing specific properties or values.

Install it if your project requires CSS tokenization or syntax manipulation.

BSD-3-Clausepure Python · 3.10+
113.2Mdownloads / mo

See also editdistance · python-Levenshtein · Levenshtein · textdistance · strsimpy · Distance · editdistpy · polyleven · fuzzywuzzy · pyjarowinkler