$npx skillfedfor your agent

wikitextparser

A simple parsing tool for MediaWiki's wikitext markup.

Worth itPyPI Text ProcessingReleased Jul 2026127.2K downloads / mocopyleft licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — wikitextparser-1.0.3-py3-none-any.whl
v1.0.3 · released 2026-07-31 · Python >=3.8 · 2 runtime deps: regex, wcwidth

Yes. The package is actively maintained, has low install friction, no security issues, and fills a specific need for MediaWiki wikitext parsing. The GPLv3 copyleft license is a hard constraint only if you need proprietary distribution; for open-source projects, wiki automation, or data extraction, it is a straightforward choice.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.8 or later.
  • Low install friction with a pure-Python wheel distribution.
  • Actively maintained with a recent release (14 days ago) and steady commit activity.

License · maintenance · safety

copyleft license (copyleft) — Licensed under GPLv3 (copyleft). Any derivative work or distribution must also be open-source under GPLv3; proprietary applications cannot incorporate this code without releasing their own source.

last release 2026-07-31 (14 days) · last repo commit 2026-08-04 · 328 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 127,237 downloads/mo, #11,749 on PyPI

Verify before relying

pip install wikitextparser

import wikitextparser as wtp
parsed = wtp.parse('{{template|arg=value}}')
print(parsed.templates)
  • Whether the library handles all edge cases and malformed HTML robustly (documentation notes it is not a fully-fledged HTML parser).
  • Performance characteristics on very large wikitext documents or deeply nested template structures.
Same gist for agents: .md · .json

What it is and what it does

WikiTextParser is a library for parsing and manipulating MediaWiki's wikitext syntax. It lets you extract structured elements—templates, parameters, wikilinks, tables, sections, lists, and HTML tags—from raw wiki markup and modify them programmatically. The library handles nested templates, colspan/rowspan in tables, category detection, and section hierarchy, making it suitable for bulk editing, data extraction, or automated wiki maintenance tasks.

The package depends on regex and wcwidth for pattern matching and text width calculation. It is actively maintained, supports modern Python versions (3.8+), and has no known security vulnerabilities. The GPLv3 license means any code using it must also be open-source under the same license.

Use it for

  • Extract template arguments and parameter values from Wikipedia or MediaWiki dumps for data analysis.
  • Bulk clean up or refactor wiki markup—remove duplicate template arguments, rename sections, or update wikilinks.
  • Parse and validate wikitext structure before uploading edits to a wiki via API.
  • Build wiki bots that read, modify, and rewrite wikitext without corrupting nested markup.
  • Convert or normalize wiki markup (e.g., change list types or reformat table structure).

Worth the install?

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

Worth it

Yes.

The package is actively maintained, has low install friction, no security issues, and fills a specific need for MediaWiki wikitext parsing. The GPLv3 copyleft license is a hard constraint only if you need proprietary distribution; for open-source projects, wiki automation, or data extraction, it is a straightforward choice.

Install

wikitextparser on PyPI

Before you install

Low install friction with a pure-Python wheel distribution. Actively maintained with a recent release (14 days ago) and steady commit activity. Two lightweight runtime dependencies (regex and wcwidth) add minimal overhead.

Requires Python 3.8 or later.

License in practice

Licensed under GPLv3 (copyleft). Any derivative work or distribution must also be open-source under GPLv3; proprietary applications cannot incorporate this code without releasing their own source.

Quickstart

pip install wikitextparser

import wikitextparser as wtp
parsed = wtp.parse('{{template|arg=value}}')
print(parsed.templates)

Verify before relying

  • Whether the library handles all edge cases and malformed HTML robustly (documentation notes it is not a fully-fledged HTML parser).
  • Performance characteristics on very large wikitext documents or deeply nested template structures.

Package facts

Licensecopyleft license copyleft
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
regexwcwidth
MaintenanceActively maintained 14 days since the last release
Last repo commit
First released
Downloads127,237 / month, #11,749 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: GNU General Public License v3 (GPLv3)Programming Language :: PythonTopic :: Text Processing

Evidence: wikitextparser-1.0.3-py3-none-any.whl

Tags

Capabilities
mediawiki wikitext parserextract templates from wiki markupparse wikitext pythonwiki markup manipulationwikilink extractionmediawiki template parserwikitext section extraction
Topics
mediawikiwiki-automationmarkup-parsing
PyPI keywords
MediaWikiwikitextparser

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 › “mediawiki wikitext parser”

  • wikitextparserParses and manipulates MediaWiki wikitext markup, extracting and…
  • mwparserfromhellParses MediaWiki wikicode into a queryable syntax tree, allowing you…
  • mwtypesProvides standardized Python classes for MediaWiki data types,…

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 mwparserfromhell · wikipedia · mwcli · mwxml · pywikibot · jira2markdown · ada-url · mkdocs-embed-external-markdown · mwclient · py-partiql-parser