Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Multi-purpose virtual file system inside single file

Project Description


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.


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'testfile','w') as file: #Create and open new file for writing in SVFS.
 file.write('write test') #Write string into file
t ='testfile','r') #Open same file for reading
print #Read entire file and print data
t.close() #Close file
s.CloseSVFS() #Close SVFS

That code outputs:

write test

Which means it works correctly.


Version 2.0.0:

Initial release


This module is maintained by Andrew Stolberg <>. If you have any questions or want to help, email me.

Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
SVFS-2.0.0.tar.gz (13.1 kB) Copy SHA256 Checksum SHA256 Source Jul 19, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting