Would you consider adding syntax format to the tutorial?

Đang mở Phù hợp với người mới
#401 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
65/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
documentation

Hướng nghiên cứu

Đọc hướng dẫn tại https://jmespath.org/tutorial.html và so sánh các mục của hướng dẫn với những phần tóm tắt cú pháp được đề xuất trong issue. Kiểm tra mã nguồn hướng dẫn hiện có và quy trình tài liệu trong repository để tìm nơi duy trì các mục đó. Công việc hoàn tất khi hướng dẫn giải thích rõ các ranh giới cú pháp và phép chiếu liên quan, với các ví dụ phù hợp với cú pháp JMESPath.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Python
Star
2.5k
Fork
231
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của jmespath/jmespath.py

Tất cả issue của jmespath/jmespath.py

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.