Feature: get the encoded data ready for sending (for async interop)
まだ誰も着手していません。
評価
調査の方向性
Start by reading pywebpush.WebPusher and the functions that currently accept curl=True, focusing on how the push request is encoded and sent. Define an official way to return the endpoint, encoded data, and headers so callers can use another HTTP library, then verify that existing sending behavior remains intact.
索引モデルが issue の本文から書いたものです。
説明
Hello,
It would be nice to be able to just get the encoded push request so we could use another http library for sending the request. Our motivation is to do this in an async framework, but there could be others.
Now we do this by monkeypatching the library:
import pywebpush
pywebpush.WebPusher.as_curl = lambda self, endpoint, data, headers: {'endpoint': endpoint, 'data': data, 'headers': headers}
then we can just pass curl=True to any function and get the data we want. But it would be nicer to do this in an official way.
- 主要言語
- Python
- スター
- 380
- フォーク
- 61
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
web-push-libs/pywebpush のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
web-push-libs/pywebpush#190 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
web-push-libs/pywebpush#175 · コメント 3 件 ·
-
Async Send Functionオープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
web-push-libs/pywebpush#150 · コメント 1 件 · リアクション 4 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
web-push-libs/pywebpush#149 · コメント 4 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
web-push-libs/pywebpush#147 · コメント 8 件 ·
web-push-libs/pywebpush の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
MIT-LCP/wfdb-python#590 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
pollen-robotics/reachy_mini#1517 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
NRLMMD-GEOIPS/pluginify#41 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
scverse/spatialdata#1293 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
UKGovernmentBEIS/inspect_evals#2788 ·
メンテナーはふだん 1 日以内に返信