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"})
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.7.tar.gz
(14.1 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.7-py3-none-any.whl
(21.9 kB
view details)
File details
Details for the file openvfs-0.1.7.tar.gz.
File metadata
- Download URL: openvfs-0.1.7.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a64e2916f7397f5f0a46f0acc642bef7e7ce171f36ad5ba03bcece7496878176
|
|
| MD5 |
fa06e8c15c852d52d3b6715949a1b723
|
|
| BLAKE2b-256 |
0b93ff350d1b86a3f85232e2be614f963380fb89f8c469e521c32afcea25b447
|
File details
Details for the file openvfs-0.1.7-py3-none-any.whl.
File metadata
- Download URL: openvfs-0.1.7-py3-none-any.whl
- Upload date:
- Size: 21.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 |
cc6e38df63a8d7ce684f9e00d50a1e84661d677377fd5495ab76154793fffa15
|
|
| MD5 |
aafeb2ec80c1efef7ef8d3cb0290ec43
|
|
| BLAKE2b-256 |
0a50c9c95771bae89c7b0812b516fb9f4edd17c309825dec6bf644737c39266a
|