#repr #rustpython #part #literals #superseded #ruff #unparse

rustpython-literal

Common literal handling utilities mostly useful for unparse and repr

3 unstable releases

0.4.0 Aug 6, 2024
0.3.1 Apr 6, 2024
0.3.0 Aug 29, 2023

#1773 in Parser implementations

Download history 1497/week @ 2025-10-15 1600/week @ 2025-10-22 1719/week @ 2025-10-29 2161/week @ 2025-11-05 3695/week @ 2025-11-12 2073/week @ 2025-11-19 2059/week @ 2025-11-26 2719/week @ 2025-12-03 2511/week @ 2025-12-10 2260/week @ 2025-12-17 612/week @ 2025-12-24 826/week @ 2025-12-31 2072/week @ 2026-01-07 2378/week @ 2026-01-14 2036/week @ 2026-01-21 2423/week @ 2026-01-28

9,115 downloads per month
Used in 25 crates (4 directly)

MIT license

27KB
704 lines

RustPython parser as a library

This project is forked from RustPython project. The parser was one of the core parts of RustPython and the Ruff project. Now it is superseded by https://github.com/astral-sh/ruff/tree/v0.4.10/crates/ruff_python_parser

We try to keep these crates as a well-packaged library for more potential users.

Projects

  • RustPython is a Python interpreter
  • Ruff is an extremely fast Python linter
  • Pylyzer is a static code analyzer / language server for Python
  • Baembal is a Python package to accelerate ast.parse

Dependencies

~2MB
~37K SLoC