首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > 多用途的虚拟文件系统里面的单个文件

多用途的虚拟文件系统里面的单个文件

资 源 简 介

Simple Virtual File System v2 for Python 2 Overview SVFS allows to create virtual filesystem inside file on real filesystem. It can be used to store multiple files inside single file (with directory structure). Unlike archives, SVFS allows to modify files in-place. SVFS files use file-like interface, so they can be used (pretty much) like regular Python file objects. Finally, it"s implemented in pure python and doesn"t use any 3rd party modules, so it should be very portable. Tests show write speed to be around 10-12 MB/s and read speed to be around 26-28 MB/s. Example Following code creates SVFS, opens file in it, writes string and reads it back: ``` from SVFS import SVFS #Import SVFS class s = SVFS() #Create instance of SVFS class s.CreateSVFS("test.svfs","testvolume",100,100,100) #Create SVFS with 100 inodes and 100 blocks of 100 bytes. s.OpenSVFS("test.svfs") #Open created SVFS with s.open("testfile","w") as fil

文 件 列 表

SVFS-2.0.0
README.txt
SVFS.py
PKG-INFO
setup.py
VIP VIP
0.179891s