A zip/tar file saver for cache
Project description
jezip-tar
A package for save zip/tar file in memory buffer(not write in file)
Usage:
from jezt import ZipFile MyZip = ZipFile()
The Type of the ZipFile: MyZip = ZipFile(ZipFile.BZIP)
# BZIP, LZMA, DELATED, STORED(default DEFLATED)
MyZip.add('fn1', 'bytes or str') MyZip.get('fn1')
# 'bytes or str' MyZip.addf('myfile.txt')
MyZip.get('myfile.txt') # The content of the file # Save the zip file
import io
bf = io.BytesIO() # Also can be io.FileIO(filename, 'wb')
MyZip.flush(bf)
# if there's no IO given, return a BytesIO object
bf.getvalue() # The content of the file The TarFile is the same
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for jetar-zip-0.0.3a1.linux-armv7l.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30a8d724dba6df2fb00439614f9f3a4e0ed0b8b0f1e7b7d012e33d245ea2553b |
|
MD5 | f9fbe49e6c7add3f7f6ae5631c1e85c7 |
|
BLAKE2b-256 | 7acbb879a2dd1bd267f7d0d4278d89a993c06c953e22d71268bb6e0d1fb7af66 |
Close
Hashes for jetar_zip-0.0.3a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41e2ccd61f884c319b28b20368c4994b8799f6835e5a79b50cfdc84836aa10f9 |
|
MD5 | 78bca330a7b22e4f6181e26a029ffcb8 |
|
BLAKE2b-256 | 694595379d324e878b87771742caea8c3eb14193ec49de80a7f7e8fef4cfdbbb |