Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jetar-zip-0.0.1.linux-aarch64.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jetar_zip-0.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for jetar-zip-0.0.1.linux-aarch64.tar.gz
Algorithm Hash digest
SHA256 abf18ff9515033844761b6365206eb169463358e348d4963beac823871a5b538
MD5 05b0dc57f5885662ab9ca2a53cfdc916
BLAKE2b-256 5f9338ff7632ec0972dd456082b90a93b835ef37e4d5795fe1504005e3101c8f

See more details on using hashes here.

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

Hashes for jetar_zip-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 147755b5d6e6051fae2b53a1fce938febe05362b72166c305308c9c0f25937b0
MD5 d1bc0012a0f4f1401412783e3ac55ff5
BLAKE2b-256 868bc4889f3015cb7a34686be7a5374ee8a574e041b6e606992269ec0549bb57

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page