#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

#1697 in Parser implementations

Download history 2724/week @ 2025-09-18 1911/week @ 2025-09-25 1230/week @ 2025-10-02 1415/week @ 2025-10-09 1436/week @ 2025-10-16 1593/week @ 2025-10-23 1698/week @ 2025-10-30 2379/week @ 2025-11-06 3527/week @ 2025-11-13 2223/week @ 2025-11-20 2128/week @ 2025-11-27 2709/week @ 2025-12-04 2689/week @ 2025-12-11 1743/week @ 2025-12-18 498/week @ 2025-12-25 1123/week @ 2026-01-01

6,529 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