Provide convenience method for adding a client-id header
评估
调研方向
从现有的 token 和 bearer_token 方法旁边的 Query 类开始,然后检查 python_cmr 包的版本是如何公开的。当 client_id 便捷方法能够按照所要求的默认值或版本后缀行为设置 Client-Id,并覆盖用户提供的 ID 和默认 ID 时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
The Headers section of the CMR Search API documentation describes the Client-Id header as follows:
Client-Id- Indicates a name for the client using the CMR API. Specifying this helps Operations monitor query performance per client. It can also make it easier for them to identify your requests if you contact them for assistance.
Given that there are token and bearer_token methods in the Query class for conveniently setting the Authorization header, providing a client_id method would be convenient for supplying the Client-Id header.
Further, I recommend the following:
- When the user does not invoke the
client_idmethod to specify their own chosen ID for identification for assistance, a default should be set. I recommend something like this:python_cmr-vX.Y.Z, whereX.Y.Zis the version ofpython_cmr - When the user does invoke the
client_idmethod, the following suffix should be added to the value specified by the user:(python_cmr-vX.Y.Z), with a space character between the user-supplied value and the suffix.
- 主要语言
- Python
- 星标
- 29
- 派生
- 32
- 平均合并
- 19 小时 6 分钟
- 30 天内合并 PR
- 1
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nasa/python_cmr 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
nasa/python_cmr#108 ·
-
难度 3/5 1-2 天 新手友好度 52/100
nasa/python_cmr#104 ·
-
enhancement
难度 3/5 1-2 天 新手友好度 38/100
nasa/python_cmr#95 · 1 条评论 ·
-
enhancement
难度 3/5 1-2 天 新手友好度 45/100
nasa/python_cmr#94 ·
-
chore
难度 3/5 1-2 天 新手友好度 45/100
nasa/python_cmr#93 ·
相似的 Issue
-
bug priority:low
难度 2/5 1-3 小时 新手友好度 76/100
CyberAgent/psd2svg#436 ·
-
area/install-update comp/cli comp/desktop P3 sweeper:risk-compatibility type/bug
难度 2/5 1-3 小时 新手友好度 86/100
NousResearch/hermes-agent#122386 · 1 条评论 ·
-
ai-generated
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 78/100
vllm-project/production-stack#1105 ·
-
难度 2/5 1-3 小时 新手友好度 88/100