Academic literature search and patent retrieval CLI for ScienceRiver (科应开放平台)
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
keying_cli-1.1.0.tar.gz
(23.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file keying_cli-1.1.0.tar.gz.
File metadata
- Download URL: keying_cli-1.1.0.tar.gz
- Upload date:
- Size: 23.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa78984099e91886c84609cf9f98f3e563c468692ae98a3979de67043c1b4100
|
|
| MD5 |
66000c2f37fc89d6e357c3964cd69f2a
|
|
| BLAKE2b-256 |
1516614159022cf59ea42bc739854ab5c1919e0414b794e90f6c0358af744a08
|
File details
Details for the file keying_cli-1.1.0-py3-none-any.whl.
File metadata
- Download URL: keying_cli-1.1.0-py3-none-any.whl
- Upload date:
- Size: 22.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9ea22b83ece053e6f543c77f0dbd33a60077f6d2572eec010244e9216ba69c1
|
|
| MD5 |
5ed9841124e027ae90792c70e79fd8fb
|
|
| BLAKE2b-256 |
657be57fff5ca632340d17ce0edcfc4f38e5856095c09932ad34dba9b465c61a
|