Skip to content
プロジェクト

概要

Python向けのシンプルで洗練されたパーサーコンビネーターです。ドキュメントも充実しています。

開発ツール

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

parsy

Documentation Status Build Status Codecov Downloads

Parsy is an easy and elegant way to parse text in Python by combining small parsers into complex, larger parsers. If it means anything to you, it's a monadic parser combinator library for LL(infinity) grammars in the spirit of Parsec, Parsnip, and Parsimmon. But don't worry, it has really good documentation and it doesn't say things like that!

For a good example of the kind of clear, declarative code you can create using parsy, see the SQL SELECT statement example or JSON parser.

The project:

  • has zero dependencies outside stdlib.
  • is highly mature and stable, with few-to-none backwards incompatibilities over the past 10 years.
  • is essentially complete, with no rewrites planned. Widely useful improvements that don’t break compatibility will still be considered, however.
  • is implemented in a single module with less than 800LOC, which you could vendor easily if required.

Links:

To contribute, please create a fork and submit a pull request on GitHub, after checking the contributing section of the docs. Thanks!

If you like parsy and think it should be better known, you could:

  • Star this project on GitHub.
  • Vote for it being included on awesome-python.

Parsy was originally written by Jeanine Adkisson, with contributions by other people as can be found in the git commit history.

関連プロジェクトを探す

読み込み中…