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 file: #Create and open new file for writing in SVFS.
file.write('write test') #Write string into file
t = s.open('testfile','r') #Open same file for reading
print t.read() #Read entire file and print data
t.close() #Close file
s.CloseSVFS() #Close SVFS
That code outputs:
write test
Which means it works correctly.
Changelog
Version 2.0.0:
Initial release
Contact
This module is maintained by Andrew Stolberg <andrewstolberg@gmail.com>. If you have any questions or want to help, email me.
Metadata
Release files for SVFS 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| SVFS-2.0.0.tar.gz | 13.1 kB | Without provenance | Details for SVFS-2.0.0.tar.gz |
Release files / SVFS-2.0.0.tar.gz
| Download URL | SVFS-2.0.0.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd1ab674730a7b6f56281e1b94e094a7e091baeb43546cdb9e951085a6153cae
|
|
BLAKE2b-256 checksum How to use checksums |
ecbf165bdd2fe89754c1cdcd05214edaaa25b9cb1935cbfeb4ab17912fde457d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for SVFS 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.