A zip tar file saver in cache
Project description
python 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.1.linux-aarch64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | abf18ff9515033844761b6365206eb169463358e348d4963beac823871a5b538 |
|
MD5 | 05b0dc57f5885662ab9ca2a53cfdc916 |
|
BLAKE2b-256 | 5f9338ff7632ec0972dd456082b90a93b835ef37e4d5795fe1504005e3101c8f |
Close
Hashes for jetar_zip-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 147755b5d6e6051fae2b53a1fce938febe05362b72166c305308c9c0f25937b0 |
|
MD5 | d1bc0012a0f4f1401412783e3ac55ff5 |
|
BLAKE2b-256 | 868bc4889f3015cb7a34686be7a5374ee8a574e041b6e606992269ec0549bb57 |