读咚咚 (Read DongDong) - 个人知识数据层的命令行接口
Project description
读咚咚 (Read) - 个人知识数据层
读咚咚是个人知识数据层的 Python 库,提供 CLI、SDK 和 MCP Server 等多种访问方式。
本地、私有、可编程的个人知识基础设施。
简介
读咚咚 是一个个人知识数据层,以 Core Library 为核心资产,支持多种客户端访问。
当你看到一句有启发的话、一篇好文章,快速存下来。CLI、浏览器插件、Agent 都可以访问这些数据。
核心特点
- 数据层优先 - Core Library 是核心,CLI/插件/SDK 都是客户端
- 本地私有 - 数据存放在
~/.dong/read/read.db,不上云、不同步、不追踪 - Agent 友好 - JSON 输出 + Python SDK + MCP Server
- 极简核心 - 只做收集,不做整理
安装
方式一:从 PyPI 安装(推荐)
pipx install dong-read
方式二:从源码安装
git clone https://github.com/gudong/read.git
cd read
pip install -e .
初始化
dong-read init
快速开始
# 添加摘录
dong-read add "开始,就是最好的时机"
# 收藏文章
dong-read add --url "https://mp.weixin.qq.com/s/xxx"
# 列出所有
dong-read list
# 搜索
dong-read search "AI"
# 删除
dong-read delete 123 --force
项目结构
read/
├── src/read/ # CLI 源码
├── docs/ # 文档
├── tests/ # 测试
├── pyproject.toml # Python 包配置
└── README.md # 本文件
Python SDK
from read import Client
client = Client()
# 添加
item = client.add("开始,就是最好的时机")
# 列出
items = client.list(limit=10)
# 搜索
results = client.search("AI")
命令参考
| 命令 | 说明 |
|---|---|
dong-read init |
初始化数据库 |
dong-read add "内容" |
添加摘录 |
dong-read add --url "..." |
收藏链接 |
dong-read list |
列出所有 |
dong-read search "关键词" |
搜索 |
dong-read get 123 |
获取单条 |
dong-read delete 123 |
删除 |
架构设计
┌─────────────────────────────────────────────────────────┐
│ 客户端层 │
├──────────────┬──────────────┬──────────────┬────────────┤
│ CLI │ Browser │ Python SDK │ MCP Server │
│ (dong-read add) │ Extension │ (import) │ (Agent) │
└──────────────┴──────────────┴──────────────┴────────────┘
│
┌────────▼────────┐
│ Core Library │
│ (read.core.Client)│
└────────┬────────┘
│
┌────────▼────────┐
│ SQLite DB │
│ ~.dong/read/read.db │
└─────────────────┘
路线图
| 版本 | 核心资产 | 客户端 | 状态 |
|---|---|---|---|
| v0.5 | Core Library v0.1 | CLI + Python SDK | ✅ 完成 |
| v0.6 | Core Library v0.1 | MCP Server | 🚧 开发中 |
| v0.7 | Core Library v0.1 | Python SDK 增强 | 📋 计划中 |
| v0.8 | Core Library v0.1 | Browser Extension | 📋 计划中 |
文档
License
作者
让 AI 看见你的知识。
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
dong_read-0.7.3.tar.gz
(36.7 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
dong_read-0.7.3-py3-none-any.whl
(24.3 kB
view details)
File details
Details for the file dong_read-0.7.3.tar.gz.
File metadata
- Download URL: dong_read-0.7.3.tar.gz
- Upload date:
- Size: 36.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d60c831084c53cb1bebdc424c66558fa0cb61ee3c2bbb71be61a1a3d918dd2fe
|
|
| MD5 |
1d07ef84987f585e4990415a3b08cadd
|
|
| BLAKE2b-256 |
d5cdd01482ce629a0ca2bbc6b3c5d0f21b7532ca16aa092193a2aef0a94bc6be
|
File details
Details for the file dong_read-0.7.3-py3-none-any.whl.
File metadata
- Download URL: dong_read-0.7.3-py3-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f181777d29e08abf45de42600fe2f472829868cfcf4175f9250446bab3228b6e
|
|
| MD5 |
b0bb6914002ddbfb1bc10796f9c1ef15
|
|
| BLAKE2b-256 |
d8a7cbf95d8159662b9c7e72fc60b40f96b32e7c9ffc3b746ebf8b7843d4b34e
|