openvfs
Project description
OpenVFS
Agent 专用 Markdown 虚拟文件系统中间件,底层基于可热插拔的 Store 后端。
安装
uv add py-key-value-aio
uv add openvfs
快速示例
from openvfs import OpenVfs
myvfs = OpenVfs.init_vfs()
myvfs.create_folder("openvfs://resources/project")
(myvfs
.cd_path("resources", "project")
.create_file("readme.md")
.heading("安装", level=2, id="install")
.block("uv add openvfs", type="code", lang="bash")
.write())
content = myvfs.cd_path("resources", "project").create_file("readme.md").get_block(id="install")
直接导入 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.6.tar.gz
(12.9 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.6-py3-none-any.whl
(20.3 kB
view details)
File details
Details for the file openvfs-0.1.6.tar.gz.
File metadata
- Download URL: openvfs-0.1.6.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbc3f53df3cb6f80caede91d5595c62a9126f685a4c134a73437bb5aa23f91c7
|
|
| MD5 |
dbd36a96b0163773a88c2c437c26a433
|
|
| BLAKE2b-256 |
a2c68c40cb82a023c1a9538434311bc9becd231acbf218d194b3e1495c8dade8
|
File details
Details for the file openvfs-0.1.6-py3-none-any.whl.
File metadata
- Download URL: openvfs-0.1.6-py3-none-any.whl
- Upload date:
- Size: 20.3 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 |
ee472be288604b6d74db28ce61fbf9732b07dfedafb02d13f5fe33b8c0e93712
|
|
| MD5 |
b5c5cb53720d58b9b4d5e50e18a7ed96
|
|
| BLAKE2b-256 |
a2a0ca94b5172705fd37b0d895ff6e1a5cd705bda9745b938f74087ead39e375
|