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.3a2.linux-armv7l.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 257aedd973adb067be125211dac23608cfe8317340208447c9c592e48d4c7be9 |
|
MD5 | 3177d19d85f9851d5a0645c9a5c9ff97 |
|
BLAKE2b-256 | 410ad6dd91cfc3b763527e79a999e85316efb4be70e7aa4df97437a35528962b |
Close
Hashes for jetar_zip-0.0.3a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef7dd5eb9d44bf8f09845c2bca6f0ab9beeaaf6ad4426e89955beed9d8f9b4c3 |
|
MD5 | 681a9965125493b12657066209c7ce37 |
|
BLAKE2b-256 | a64e86f4117ab04c5e13c2219b75125629d1bfcaaad408ab59d177d23e41038c |