Would you consider adding syntax format to the tutorial?

オープン 初心者向け
#401 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
65/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
documentation

調査の方向性

https://jmespath.org/tutorial.html のチュートリアルを読み、各セクションを issue で提案されている構文の概要と比較してください。リポジトリ内の既存のチュートリアルのソースとドキュメントの作業手順を確認し、これらのセクションがどこで管理されているかを調べてください。チュートリアルで関連する構文と射影の境界が明確に説明され、例が JMESPath の構文に沿っていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

https://jmespath.org/tutorial.html

I think it would be good to add syntax summaries to each section, something looking like below. I'm new so this example may not be correct. It need not be long, but the issue I have right now was, although I can eventually find out exactly what the syntax is when I've seen enough examples, a language tutorial surely oughta mention exactly what the syntax is. When the syntax is distinct for each operation it's easy to tell but a lot of the syntax uses [] and it was't immediately obvious where the operator was exactly. Maybe I'm just not prerequisitely familiar or that my learning style does not suit the interactive examples.

It may also be good to show exactly where the LHS ends and RHS begins for projections, like LHS 'obj.*' RHS '.exp', though only the obj looks a little ambiguous. Sorry if I seem harsh or ungrateful, it must be a lot of work maintaining projects.

key, select key
key.key.key.key, select key
list_element, select list element
list[], flatten list/remove list of each element
list[*], select any/wildcard
list[*].exp, list projection
list[n:n:n].exp, slice list projection
list[].exp, flatten list projection
obj.*.exp, object to list projection
list[?key=='value'].exp, filter list projection
list[?@=='value'].exp, filter list projection
list[*].exp | [n], pipe expression on any projection type
obj.*.exp | [n], pipe expression on any projection type
list[*].exp | function(@), pipe expression on any projection type
list[].[exp, exp], mutiselect list on any projection type
list[].{key:value, key:value}, mutiselect list dictionary on any projection type

主要言語
Python
スター
2.5k
フォーク
231
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

jmespath/jmespath.py のほかの issue

jmespath/jmespath.py の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。