Skip to main content

Multi-format archive library based on libarchive

Project description

Archi

Build Status

Multi-format archive library based on libarchive . Forked from pyarchive

Usage

import archi

with open("test.tgz", "rb") as f:
    archive = archi.Archive(f)
for file in archive:
    print(file.filename)
    print(file.read())

Keep in mind that you can't store Entrys, they're freed as soon as the loop moves on to the next or ends. So this won't do:

archi = archi.Archive('file.zip')
files = [f for f in archi]
files[0].filename # Address boundary error !

TODO

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

archi-0.1.0.zip (54.4 kB view details)

Uploaded Source

Built Distributions

archi-0.1.0-cp38-cp38-manylinux2010_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

archi-0.1.0-cp38-cp38-manylinux2010_i686.whl (1.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686

archi-0.1.0-cp37-cp37m-manylinux2010_x86_64.whl (986.9 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

archi-0.1.0-cp37-cp37m-manylinux2010_i686.whl (1.0 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ i686

archi-0.1.0-cp36-cp36m-manylinux2010_x86_64.whl (986.2 kB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

archi-0.1.0-cp36-cp36m-manylinux2010_i686.whl (1.0 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ i686

archi-0.1.0-cp35-cp35m-manylinux2010_x86_64.whl (985.8 kB view details)

Uploaded CPython 3.5m manylinux: glibc 2.12+ x86-64

archi-0.1.0-cp35-cp35m-manylinux2010_i686.whl (1.0 MB view details)

Uploaded CPython 3.5m manylinux: glibc 2.12+ i686

File details

Details for the file archi-0.1.0.zip.

File metadata

  • Download URL: archi-0.1.0.zip
  • Upload date:
  • Size: 54.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.1

File hashes

Hashes for archi-0.1.0.zip
Algorithm Hash digest
SHA256 01441fd848122742c0e31ec1df1a0ff314d09937bf95636804a5ecf0c7586bf9
MD5 7aea96d814def80570b593221557ee6d
BLAKE2b-256 7f04dbb52f6a6b5a7dc6233874dde501bb663dccc5ea7d7a62f91b76ca488e04

See more details on using hashes here.

File details

Details for the file archi-0.1.0-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: archi-0.1.0-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.1

File hashes

Hashes for archi-0.1.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 dd7b7b19dfc9ab563a51c7caf7e7981780d7754ac2be71b3f31c3258c0a59796
MD5 64b5f70ff3b2826331594542667f6ee6
BLAKE2b-256 b2ec67012c4a8106174a17f057a24adec05549282d157af5fca939ef53107d7e

See more details on using hashes here.

File details

Details for the file archi-0.1.0-cp38-cp38-manylinux2010_i686.whl.

File metadata

  • Download URL: archi-0.1.0-cp38-cp38-manylinux2010_i686.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.1

File hashes

Hashes for archi-0.1.0-cp38-cp38-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 3b78aa44b552e747b0b8ad313dbe8846bc3392324c9446e85f3b08be0c577b11
MD5 61f7794c469bb62d6c45d91acee2a4eb
BLAKE2b-256 5cd77e3bdcec4aabacd46ebd67e66ec635d7a4f451c16fb6f01b9caca7114f28

See more details on using hashes here.

File details

Details for the file archi-0.1.0-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: archi-0.1.0-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 986.9 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.1

File hashes

Hashes for archi-0.1.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 fb2263e30d31c06ccec5a61b614801c0c17719caeccbbcea084b8b9b845f45fb
MD5 f2914fb2628777dd9e098bdf98aaf6db
BLAKE2b-256 17d6b14b7956dcd7e01ca49111806a86080ef127d96491e6d963157b19dd4cfa

See more details on using hashes here.

File details

Details for the file archi-0.1.0-cp37-cp37m-manylinux2010_i686.whl.

File metadata

  • Download URL: archi-0.1.0-cp37-cp37m-manylinux2010_i686.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.1

File hashes

Hashes for archi-0.1.0-cp37-cp37m-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 90c270ce6ad7da8e830d8d84cc8157f3abe4138215463342b1ac9de9f2b1ca34
MD5 835400f5d782429cef2fb004f22a3bb7
BLAKE2b-256 23b26f146c342aff77ed405b216f5b5ccfc2aed6bae64265c2354cb44addc64d

See more details on using hashes here.

File details

Details for the file archi-0.1.0-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: archi-0.1.0-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 986.2 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.1

File hashes

Hashes for archi-0.1.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e3518dbc4d5150725ad9389d99d747c301a7db7aa86f7ba31d90959cb0e33f8d
MD5 07e49fb423a8b3c63d2f90966220f828
BLAKE2b-256 00695c52e667a6eb58d08372a6147fdd08011c00b90231c34d55429ec64c21b4

See more details on using hashes here.

File details

Details for the file archi-0.1.0-cp36-cp36m-manylinux2010_i686.whl.

File metadata

  • Download URL: archi-0.1.0-cp36-cp36m-manylinux2010_i686.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.1

File hashes

Hashes for archi-0.1.0-cp36-cp36m-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 dbc0b8d04fadb9fe41434049ffca1f5108fc8e41cd4b0b0f8f0aca23a9d20de2
MD5 36a6cd44ba0609b0e834e42664da9f70
BLAKE2b-256 45b4e30cda46d1e1757a0cf81ddbdaffb9ce7a08ee893637c29c7dd2a5965ca5

See more details on using hashes here.

File details

Details for the file archi-0.1.0-cp35-cp35m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: archi-0.1.0-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 985.8 kB
  • Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.1

File hashes

Hashes for archi-0.1.0-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 61d4e8be541eb9138da47d7926b802380cd33ca75706c46f489b2070a8a21654
MD5 ab31a16490b8a1a89551e6c1a84fddd9
BLAKE2b-256 ef3e0c2b2235a1b92434c9d60a23afa390970c81c88d95468ac89cd4b06d5d1b

See more details on using hashes here.

File details

Details for the file archi-0.1.0-cp35-cp35m-manylinux2010_i686.whl.

File metadata

  • Download URL: archi-0.1.0-cp35-cp35m-manylinux2010_i686.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.5m, manylinux: glibc 2.12+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.1

File hashes

Hashes for archi-0.1.0-cp35-cp35m-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 bee16e55baf67fc4c2ed899aeec3604212b1dcf33a9d268c93b02d611b1a05b8
MD5 3bd67dc5ee6aec6181034aef6a092fde
BLAKE2b-256 e91d1019f2e9567b3c5cdd72871543dea554132c89fbec1fe3d62986c18c47e9

See more details on using hashes here.

Supported by

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