Agent 专用 Markdown 文件系统,基于火山云 TOS 存储
Project description
OpenVFS
Agent 专用 Markdown 文件系统,基于火山云 TOS 存储。支持按字段/值快速定位段落,类似数据库按字段查询。
安装
pip install openvfs
配置
环境变量或项目根目录 .env:
TOS_ACCESS_KEY=your-access-key-id
TOS_SECRET_KEY=your-secret-access-key
快速示例
链式 API(推荐):
from openvfs import MindMarkClient
client = MindMarkClient()
# 创建资源路径 → 文档 → 标题 → 内容块(支持 text/code/json/link)→ 写入
(client
.path("resources", "project")
.doc("readme.md")
.heading("安装", level=2, id="install")
.block("pip install openvfs", type="code", lang="bash")
.heading("链接", level=2)
.link("https://example.com", "示例")
.write())
# 按属性获取
content = client.path("resources", "project").doc("readme.md").get_block(id="install")
传统 API:create / read / set_section_by_id / get_section_by_id 等,见 使用说明。
文档
- 使用说明 (docs/USAGE.md):完整 API 与用法
- 设计方案 (docs/DESIGN.md):架构与设计
- 发布到 PyPI (docs/PUBLISHING.md):构建与上传说明
URI 规范
- 格式:
openvfs://{namespace}/{path} - 命名空间:
resources、user、agent - 示例:
openvfs://resources/my_project/docs/api.md
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
openvfs-0.1.0.tar.gz
(45.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
openvfs-0.1.0-py3-none-any.whl
(18.5 kB
view details)
File details
Details for the file openvfs-0.1.0.tar.gz.
File metadata
- Download URL: openvfs-0.1.0.tar.gz
- Upload date:
- Size: 45.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49528ee73d02fd6e9d2c8c45931b0d7c8559050fd9cf2992d4a5bb473e481527
|
|
| MD5 |
a00039f107be0e8041908c3b3168d83e
|
|
| BLAKE2b-256 |
4933646ad1f21c313a7fcf78adf13e4b7b1e7ac339cb9d01b2c9adc12a20e0f9
|
File details
Details for the file openvfs-0.1.0-py3-none-any.whl.
File metadata
- Download URL: openvfs-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
631bdf6b73869ebdb8ffbf210f4782e49517f8e79d26f7acbf8562261c373a20
|
|
| MD5 |
c186d9dbd30be68b4eb090234a8b8a98
|
|
| BLAKE2b-256 |
79506062d94c8de20bb3ba75801da4c77540d47f885a9752dbf4ba89c1cdf25f
|