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 !

Changelog

v0.2.0

  • Add support for libarchive's ARCHIVE_FAILED error
  • use PyMem_Malloc & PyMem_Free instead of alloca

v0.1.1

  • Fix binary wheels for macOS

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.2.0.tar.gz (52.2 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686

archi-0.2.0-cp38-cp38-macosx_10_9_x86_64.whl (418.3 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

archi-0.2.0-cp37-cp37m-manylinux2010_x86_64.whl (990.9 kB view details)

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

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

Uploaded CPython 3.7m manylinux: glibc 2.12+ i686

archi-0.2.0-cp37-cp37m-macosx_10_6_intel.whl (450.6 kB view details)

Uploaded CPython 3.7m macOS 10.6+ intel

archi-0.2.0-cp36-cp36m-manylinux2010_x86_64.whl (989.9 kB view details)

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

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

Uploaded CPython 3.6m manylinux: glibc 2.12+ i686

archi-0.2.0-cp36-cp36m-macosx_10_6_intel.whl (452.3 kB view details)

Uploaded CPython 3.6m macOS 10.6+ intel

archi-0.2.0-cp35-cp35m-manylinux2010_x86_64.whl (990.1 kB view details)

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

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

Uploaded CPython 3.5m manylinux: glibc 2.12+ i686

archi-0.2.0-cp35-cp35m-macosx_10_6_intel.whl (449.9 kB view details)

Uploaded CPython 3.5m macOS 10.6+ intel

File details

Details for the file archi-0.2.0.tar.gz.

File metadata

  • Download URL: archi-0.2.0.tar.gz
  • Upload date:
  • Size: 52.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for archi-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cfe3f18be03e2797aa3f59409ef3c10324b21734f1938c65d9690f5273f3980a
MD5 4e762819ff84b3230818abfdc5452436
BLAKE2b-256 8c54a944385b5814addb0bd186350c440bd3e9c6536a087347ba7161119f981f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.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/2.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.5

File hashes

Hashes for archi-0.2.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d14d735dae51c5fe2ae3f8cb355d2631205b3566275b8f310ff384e7c36daea7
MD5 bd6d466a01b303157345dd87da2adb92
BLAKE2b-256 dcbdf080a30644e7fc4bd992f8466d84e4b970d262290f408f6d107f29be011a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.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/2.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.5

File hashes

Hashes for archi-0.2.0-cp38-cp38-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 104cf92b977a20d78ab725eee77a33bfe70e7420abedb1c6ea1a86bb7647502f
MD5 6cf6ca118b70be2fae44542602caee90
BLAKE2b-256 829cc324bd547f3f2e5bad728664ca50792f2522a38c2fd428588ddabf96e6a6

See more details on using hashes here.

File details

Details for the file archi-0.2.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: archi-0.2.0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 418.3 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.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.5

File hashes

Hashes for archi-0.2.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 487e9df13dbb8ec3b1d1b81033b3e79713946f8f894ed49bfcbc437455837ab2
MD5 65b7e16c4fe7546983bfa05686230659
BLAKE2b-256 dda50eb07544f62a4f142d0c4c94966159a28c397af338e12f05c71a3eef80f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.0-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 990.9 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.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.5

File hashes

Hashes for archi-0.2.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 73851b7ecc6925bfe3b353d795690ef24626264842f06ab048e274c4a2e2074b
MD5 5bcd466752423ae915dc2a613293375f
BLAKE2b-256 2f424c712eeb2b362bc4214fd2d608b0710b1a4f10f880b8a06e9de2857a9480

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.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/2.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.5

File hashes

Hashes for archi-0.2.0-cp37-cp37m-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 dd44a89968ba741eaed7b6011b7f2eb43810bb9f062303a3e9c56bcc121c0607
MD5 509bdd83840ce21319013c6fa23dd506
BLAKE2b-256 6aa4c8350741ecac6fb9dcf0359530e4bc875f5175816837cc2c28acf9f9aeac

See more details on using hashes here.

File details

Details for the file archi-0.2.0-cp37-cp37m-macosx_10_6_intel.whl.

File metadata

  • Download URL: archi-0.2.0-cp37-cp37m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 450.6 kB
  • Tags: CPython 3.7m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.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.5

File hashes

Hashes for archi-0.2.0-cp37-cp37m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 51db505c9c6afcd1b96eb40283ad46602f6f5820938e8aadfd5ab7fc4bf1462e
MD5 b203d7efb450ccd9cdc12b7abd0d5c69
BLAKE2b-256 1a849154625c1473c9a68cdc9439c3ab9596afc287b7a98de2a1e68c900fdcb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.0-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 989.9 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.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.5

File hashes

Hashes for archi-0.2.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c97ddbcaf76d1cc76f0c088d08c3ad650458fecb5ac98a8408dd3803db9200b8
MD5 be67abb17e45cc4e704b65ae4a9a3461
BLAKE2b-256 6325783e604631cde785449dcfa11753c7d5e2bf446206fd1f92a11f49fd265b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.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/2.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.5

File hashes

Hashes for archi-0.2.0-cp36-cp36m-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 00cec14c99dc4ad93555d47c151d374ed81241fb59cded3e1875acffbb548d89
MD5 12e12643fddb2daeea634533fabb42a9
BLAKE2b-256 166dc8db7abbd699d709c61cae333bcf33acc6c2bb317e522d89327b43c03afe

See more details on using hashes here.

File details

Details for the file archi-0.2.0-cp36-cp36m-macosx_10_6_intel.whl.

File metadata

  • Download URL: archi-0.2.0-cp36-cp36m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 452.3 kB
  • Tags: CPython 3.6m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.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.5

File hashes

Hashes for archi-0.2.0-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 248696f537c65d13e60828c6224a490b4ce709a5a9eba8ba0c55cbc9cf8fef3a
MD5 b9591adb865f5491121dba22980b6e4c
BLAKE2b-256 2f8c7a45a4d93cc3e6174bf1f1226e2117cf72074679a3bb07eb5ddbe71b2493

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.0-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 990.1 kB
  • Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.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.5

File hashes

Hashes for archi-0.2.0-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b65a379422c5a23fbbe964a065bfc543155c244a7e506879e4d1239e64ed4ef2
MD5 460d8f914f554f2bce61ed64a7636d53
BLAKE2b-256 1fb473fbd3f6e4b71143a17803c67d2d33f56870adaee4a0bfd2a0d12fd87d42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.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/2.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.5

File hashes

Hashes for archi-0.2.0-cp35-cp35m-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 a0d1bbe36ec27d592daaa7c668a1896c86eddbf1bbaec4a1f7206aae16217380
MD5 307ba9318a3e161fb6081206859cbb9c
BLAKE2b-256 9e83342c379a87df10562596cd6787e55379cb3616724f7fda2e1b388682c7aa

See more details on using hashes here.

File details

Details for the file archi-0.2.0-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

  • Download URL: archi-0.2.0-cp35-cp35m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 449.9 kB
  • Tags: CPython 3.5m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.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.5

File hashes

Hashes for archi-0.2.0-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 a64a8adb9dfccb2710431f7164b384f9a883cd8ee495c0aa3a27978654ad3c69
MD5 a081bf4688e2c4f159c47f0919cc9a2e
BLAKE2b-256 5b350e995cdfd6ba5e4ec63e57eaba5248bb7a493c6daf3fdd954bf9477c154a

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