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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jetar-zip-0.0.1.linux-aarch64.tar.gz.
File metadata
- Download URL: jetar-zip-0.0.1.linux-aarch64.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.1.0.post20201221 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abf18ff9515033844761b6365206eb169463358e348d4963beac823871a5b538
|
|
| MD5 |
05b0dc57f5885662ab9ca2a53cfdc916
|
|
| BLAKE2b-256 |
5f9338ff7632ec0972dd456082b90a93b835ef37e4d5795fe1504005e3101c8f
|
File details
Details for the file jetar_zip-0.0.1-py3-none-any.whl.
File metadata
- Download URL: jetar_zip-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.1.0.post20201221 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
147755b5d6e6051fae2b53a1fce938febe05362b72166c305308c9c0f25937b0
|
|
| MD5 |
d1bc0012a0f4f1401412783e3ac55ff5
|
|
| BLAKE2b-256 |
868bc4889f3015cb7a34686be7a5374ee8a574e041b6e606992269ec0549bb57
|