keying CLI
科应开放平台(ScienceRiver)学术文献检索命令行工具。
安装
pip install keying-cli
安装后获得 keying 命令:
keying --version
keying search 'TIAB=battery' -n 20
keying semantic 'battery safety in EVs' -n 20
keying evolution "量子点能量转移" --stream
keying research "cGAS-STING通路激活与自身免疫性疾病的关系" --stream
配置
需要设置科应开放平台的 API 凭证:
export SCIENCERIVER_APP_ID="your_app_id"
export SCIENCERIVER_APP_SECRET="your_app_secret"
建议写入 ~/.bashrc 或 ~/.zshrc 持久化。
核心功能
- 表达式检索:字段限定布尔检索(
TI=,AB=,TIAB=,AND/OR/NOT) - 语义检索:自然语言相似度匹配
- 文献调研:AI 驱动的学术问答(
research) - 文献详情:SRID/DOI 查询、PDF 直链、专利法律信息
- 会话管理:自动缓存检索会话,支持续用
- 自动分页:
-n > 20时自动循环翻页 - 多格式输出:
human/json/jsonl/agent
快速示例
# 表达式检索
keying search 'TIAB=("red fluorescent protein" OR mCherry) AND TIAB=phototoxicity' -n 40
# 语义检索
keying semantic 'RAG hallucination in medical diagnosis' -n 40
# 文献调研(流式)
keying research "quantum dot energy transfer mechanism" --stream
# 获取文献详情
keying info <srid> --pdf
keying info --doi 10.1186/1471-2091-3-7
# 管理会话
keying sessions
keying search '...' --session s1
keying search '...' --new-session
依赖
纯 Python 标准库,无需额外依赖。Python ≥ 3.8。
开源协议
MIT
Metadata
Release files for keying-cli 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| keying_cli-1.1.0.tar.gz | 23.3 kB | Without provenance | Details for keying_cli-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| keying_cli-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for keying_cli-1.1.0-py3-none-any.whl |
Total release size: 45.7 kB
Release files / keying_cli-1.1.0.tar.gz
| Download URL | keying_cli-1.1.0.tar.gz |
|---|---|
| Size | 23.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa78984099e91886c84609cf9f98f3e563c468692ae98a3979de67043c1b4100
|
|
BLAKE2b-256 checksum How to use checksums |
1516614159022cf59ea42bc739854ab5c1919e0414b794e90f6c0358af744a08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / keying_cli-1.1.0-py3-none-any.whl
| Download URL | keying_cli-1.1.0-py3-none-any.whl |
|---|---|
| Size | 22.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9ea22b83ece053e6f543c77f0dbd33a60077f6d2572eec010244e9216ba69c1
|
|
BLAKE2b-256 checksum How to use checksums |
657be57fff5ca632340d17ce0edcfc4f38e5856095c09932ad34dba9b465c61a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for keying-cli 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.