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.3.linux-armv7l.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2bc5d1e7f191e8d176eeaaa75d34ad27e1a007567148135fbb9d3cfd9732aff |
|
MD5 | c2fea11b5f9c66a898fac71d76514ece |
|
BLAKE2b-256 | 2e5f13bc20e19596a50823f5406f7283f2ff65692939f596831184caa3ff5504 |
Close
Hashes for jetar_zip-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51aab368f153f22ca3c6746a42fab04cf7ca6d1c2e45b8e7b44e5c2bde5984b0 |
|
MD5 | e02ab70ff7c312122ee22ad8683a4723 |
|
BLAKE2b-256 | aa5ce5ad7566fc5229f5dc238e6943aeaf251269fbe6ff631726bf17357843d9 |