A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

57 linhas
1.6 KiB

  1. MWParserFromHell v\ |version| Documentation
  2. ===========================================
  3. :mod:`mwparserfromhell` (the *MediaWiki Parser from Hell*) is a Python package
  4. that provides an easy-to-use and outrageously powerful parser for MediaWiki_
  5. wikicode. It supports Python 3.9+.
  6. Developed by Earwig_ with contributions from `Σ`_, Legoktm_, and others.
  7. Development occurs on GitHub_.
  8. .. _MediaWiki: https://www.mediawiki.org
  9. .. _Earwig: https://en.wikipedia.org/wiki/User:The_Earwig
  10. .. _Σ: https://en.wikipedia.org/wiki/User:%CE%A3
  11. .. _Legoktm: https://en.wikipedia.org/wiki/User:Legoktm
  12. .. _GitHub: https://github.com/earwig/mwparserfromhell
  13. Installation
  14. ------------
  15. The easiest way to install the parser is from `PyPI`_; you can install the
  16. latest release with ``pip install mwparserfromhell``.
  17. Alternatively, get the latest development version::
  18. git clone https://github.com/earwig/mwparserfromhell.git
  19. cd mwparserfromhell
  20. uv sync
  21. uv run python -c 'import mwparserfromhell; print(mwparserfromhell.__version__)'
  22. The comprehensive test suite can be run with ``pytest``. If using ``uv``, pass
  23. ``--reinstall-package`` so updates to the extension module are properly tested::
  24. uv run --reinstall-package mwparserfromhell pytest
  25. .. _PyPI: https://pypi.org/project/mwparserfromhell/
  26. .. _pytest: https://docs.pytest.org/
  27. Contents
  28. --------
  29. .. toctree::
  30. :maxdepth: 2
  31. usage
  32. limitations
  33. integration
  34. changelog
  35. API Reference <api/modules>
  36. Indices and tables
  37. ------------------
  38. * :ref:`genindex`
  39. * :ref:`modindex`
  40. * :ref:`search`