openvfs
Project description
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)
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.8.tar.gz
(15.0 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.8-py3-none-any.whl
(22.9 kB
view details)
File details
Details for the file openvfs-0.1.8.tar.gz.
File metadata
- Download URL: openvfs-0.1.8.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9af83e5be355c9494df4453d3210eada867d9f4f253502b0f683d5b5a1f99a63
|
|
| MD5 |
be9434aab7b873cc534933a793c6ba8a
|
|
| BLAKE2b-256 |
c01067f4c230af28b62f7a8b069982051a1223e15db24ad78e210a556dee3777
|
File details
Details for the file openvfs-0.1.8-py3-none-any.whl.
File metadata
- Download URL: openvfs-0.1.8-py3-none-any.whl
- Upload date:
- Size: 22.9 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 |
c2bd69bba5a70f4698e60513abf21625af68ac557bca9f3b467190e9f990a479
|
|
| MD5 |
d5307709405986de8e388350c68192ec
|
|
| BLAKE2b-256 |
a1217911414ff726e289cbb8292187420087dd49bf8527de4c95d87366fc60d4
|