Improve Falcon parser

オープン
#1,079 コメント 7 件 リアクション 2 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@vytas7 がすでに取り組んでいます。

2026年7月22日 から。

  • #1080 @vytas7 による — オープン

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
静か
技術スタック
python
領域
api, backend

調査の方向性

まず Falcon パーサーのコードとヘルパー関数 parse_form_body(...) を読みます。対象を絞る前に、URL-encoded フォーム、メディア処理、Unicode エラー、async AIOHTTP リクエストボディ、ミドルウェア統合に関する未解決の問題を確認します。意図した動作と互換性に関する期待事項について合意され、選択した改善が網羅されれば完了です。

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

説明

Let me first say that it was a privilege to meet @sirosen @ EuroPython '26.
As I also replied on LinkedIn to @InessaPawson, the little BoF session on AI impact (that we participated in) was definitely one of the conference's main highlights for me.

IIRC I offered to help to improve Falcon "parser", but now that I've opened the code, it is not as trivial as I thought.

Main things that I'm unsure about (in progress):

  • Do we want to DRY URL-encoded forms with Falcon's media handling? Do we need to keep the parse_form_body(...) helper for backwards compatibility, or is it considered private? Do we want to silence Unicode errors as it does?
  • How to load media/request body in the async case? Is it properly supported for AIOHTTP?
  • Add a recipe how to integrate this in middleware (in possible).

I will create a Draft PR addressing some of the mundane improvements, the rest needs discussion (since I don't have much experience with webargs).

主要言語
Python
スター
1.4k
フォーク
171
平均マージ
8時間 47分
マージ済み PR(30日)
12

環境構築

はじめの一歩

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

marshmallow-code/webargs のほかの issue

marshmallow-code/webargs の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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