Consider using wrapt with decorators

オープン
#168 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python

調査の方向性

@api_call デコレーターから始め、BaseObject.get の文書化された動作と、リンク先のドキュメントで説明されているイントロスペクションの問題を比較してください。参照されている wrapt の資料を読み、イントロスペクションを保持することが SDK の潜在的なパフォーマンスコストに見合うかどうか、またドキュメント用とターミナルでの使用用で動作を変えるべきかどうかを判断してください。

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

説明

enhancement question

Now that we're using @api_call with all of our methods, they no longer can be introspected properly. For example, see http://box-python-sdk.readthedocs.io/en/latest/boxsdk.object.html#boxsdk.object.base_object.BaseObject.get .

We could potentially use wrapt (https://pypi.python.org/pypi/wrapt) to fix this. See https://github.com/GrahamDumpleton/wrapt/tree/develop/blog for more info.

Though this would potentially slow down the SDK code, so it might or might not be worth it. Perhaps it can be enabled when generating docs or using the terminal, but disabled otherwise.

主要言語
Python
スター
460
フォーク
223
平均マージ
14時間 18分
マージ済み PR(30日)
21

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

box/box-python-sdk のほかの issue

box/box-python-sdk の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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