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.3b1.linux-armv7l.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b21400acce261464523df242927c894f6b6e73e35e1521fbad77bee1bd40460 |
|
MD5 | ee9dbe5993a4a7265eef39c238c4c660 |
|
BLAKE2b-256 | e1087b58c69e2a7d44b0f87941c47bdc51611003fc62202c138cb4254d4fec5f |
Close
Hashes for jetar_zip-0.0.3b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b6708eea2d2b53ead7a27b602f72c23bf9942f2ba66419ee473d4eb61c2b9bf |
|
MD5 | 920446ae96519e11ff143e9142bfb383 |
|
BLAKE2b-256 | 4a499c0e006d068680a57709b7e5b8446656a0fdd97748976c178139588ed533 |