OpenVFS
Agent 专用 Markdown 虚拟文件系统中间件,底层基于可热插拔的 Store 后端。
安装
uv add py-key-value-aio
uv add openvfs
快速示例
from openvfs import OpenVfs
myvfs = OpenVfs.init_vfs()
file = myvfs.find_file("resources/project/readme", must_exist=False)
if file is None:
raise RuntimeError("无法创建文件对象")
file.create("# 项目说明\n")
doc = file.as_markdown()
doc.add_cell("安装", "uv add openvfs", attrs={"id": "install", "class": "guide"})
doc.update_cell("@id=install", "uv add openvfs\nuv add py-key-value-aio")
cell = doc.find_cell("@id=install")
content = file.read()
直接导入 Store
from openvfs import MemoryStore, OpenVfs
store = MemoryStore()
myvfs = OpenVfs.init_vfs(store=store)
可选后端示例:
from openvfs import OpenVfs, S3Store
store = S3Store(
bucket_name="my-bucket",
endpoint_url="https://tos-s3-cn-beijing.volces.com",
aws_access_key_id="your-ak",
aws_secret_access_key="your-sk",
)
myvfs = OpenVfs.init_vfs(store=store)
Metadata
Release files for openvfs 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| openvfs-0.1.8.tar.gz | 15.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| openvfs-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.9 kB
Release files / openvfs-0.1.8.tar.gz
| Download URL | openvfs-0.1.8.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9af83e5be355c9494df4453d3210eada867d9f4f253502b0f683d5b5a1f99a63
|
|
BLAKE2b-256 checksum How to use checksums |
c01067f4c230af28b62f7a8b069982051a1223e15db24ad78e210a556dee3777
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Release files / openvfs-0.1.8-py3-none-any.whl
| Download URL | openvfs-0.1.8-py3-none-any.whl |
|---|---|
| Size | 22.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2bd69bba5a70f4698e60513abf21625af68ac557bca9f3b467190e9f990a479
|
|
BLAKE2b-256 checksum How to use checksums |
a1217911414ff726e289cbb8292187420087dd49bf8527de4c95d87366fc60d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|