box / box/box-python-sdk

Consider using wrapt with decorators

未关闭
#168 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement question
主要语言
Python
星标
459
派生
223
平均合并
8 小时 57 分钟
30 天内合并 PR
13

描述

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.

贡献指南

打开贡献指南

调研方向

从 @api_call 装饰器开始,将文档中记录的 BaseObject.get 行为与链接文档中描述的内省问题进行比较。阅读所引用的 wrapt 资料,然后确定保留内省是否值得 SDK 可能产生的性能成本,以及文档使用和终端使用的行为是否应有所不同。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
developer-experience, documentation
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。