Skip to main content

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")

传统 APIcreate / read / set_section_by_id / get_section_by_id 等,见 使用说明

文档

URI 规范

  • 格式:openvfs://{namespace}/{path}
  • 命名空间:resourcesuseragent
  • 示例: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.2.tar.gz (45.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openvfs-0.1.2-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file openvfs-0.1.2.tar.gz.

File metadata

  • Download URL: openvfs-0.1.2.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

Hashes for openvfs-0.1.2.tar.gz
Algorithm Hash digest
SHA256 250e990f1596aeaf70d4825819ceacd980b3b7b620d63f1878a81e6bafe0f893
MD5 e3885e96eeece0ec6eced7b0789bd3bd
BLAKE2b-256 6a2720660a4fcd7dc29bd5bebaf63d0702f91b9e8c9ded34f21108cc9e93db12

See more details on using hashes here.

File details

Details for the file openvfs-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: openvfs-0.1.2-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

Hashes for openvfs-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 79505d25f13649b25adb1c45541b4b0d642e9e4152c3090755fc13cdc20fb9cb
MD5 0ef1328385be83eaa83212f905fd5b17
BLAKE2b-256 2acb0b3d30785cc1bcae0ed71526972ee8e0d19507db1c1d6f541d75f336d603

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page