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.1

  • (wheels) Upgrade bundled libarchive to v3.4.1

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.1.zip (55.4 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686

archi-0.2.1-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.1-cp37-cp37m-manylinux2010_x86_64.whl (991.7 kB view details)

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

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

Uploaded CPython 3.7m manylinux: glibc 2.12+ i686

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

Uploaded CPython 3.7m macOS 10.6+ intel

archi-0.2.1-cp36-cp36m-manylinux2010_x86_64.whl (990.8 kB view details)

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

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

Uploaded CPython 3.6m manylinux: glibc 2.12+ i686

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

Uploaded CPython 3.6m macOS 10.6+ intel

archi-0.2.1-cp35-cp35m-manylinux2010_x86_64.whl (991.0 kB view details)

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

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

Uploaded CPython 3.5m manylinux: glibc 2.12+ i686

archi-0.2.1-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.1.zip.

File metadata

  • Download URL: archi-0.2.1.zip
  • Upload date:
  • Size: 55.4 kB
  • Tags: Source
  • 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.1.zip
Algorithm Hash digest
SHA256 b72d37312e7d4f0e6ce185b20ae503e60cded581068c04319ab6a30b8fe0d71e
MD5 e80a9983dd86257da5fa0c209bdcbd5e
BLAKE2b-256 cdda62287c8896758c4a2a7375d1c3569b52547e7d905f9efd156827e757ddfa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.1-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.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9af2110ad2e68b8162c38a8775c7b294d6c28a25b0fa5e284a12fdfe894a0eee
MD5 2ec1b218cc49453d1e78013edf9a2feb
BLAKE2b-256 b5ecaad05ccc2a80d87f650a80109f2e868f576fe26629dae283e08c9e940dc6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.1-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.1-cp38-cp38-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 c7c4caac2d0b53af3860a57a2450dbdc9ed82fbf5c8704541fdfa26880f8e046
MD5 4fffee65e8867e90fbe0e7b7327a4f90
BLAKE2b-256 11e18078c21741c3a3d5d267f8f43e5fd1f9efdb9878e2c5b072fc2dcb20a58c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.1-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.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 435835315375a607bbb071cdc2a6d9e375371d9e0e4466d707aaa90309680374
MD5 47f5829e540c5c3865ad004b9f491728
BLAKE2b-256 fbeb5888ebf7f2cfdaf44c271920080577c4c9457d0fa2b9f197ed33e9b773d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.1-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 991.7 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.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 f54d68301f2853b99a84fee85fd9b96e2552cbf1b8f6c4b10cd2c762acc6f171
MD5 6ecd13227ebbdca44d1647d8f6028e4e
BLAKE2b-256 cb772c1ee925a940c20da9a80fd7c6cbc911b8016056bda16df929f4c59d448d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.1-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.1-cp37-cp37m-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 a726b5e0361cce8ff512cb8955ee4a1a155ddc572cd0120a6cda4c7cd705a571
MD5 78b7e59c854b2c11913de52c7e6910a9
BLAKE2b-256 049201840d4e11c2279834d84091f386a8c60dc2fcd5462b1d4b4fd80cf80959

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.1-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.1-cp37-cp37m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 a7f6c27e86d745c2587aa6454993d253dec954a88f757060345babfc02676dbe
MD5 b98e52f17ee2aa0d3c327ba1d6b84308
BLAKE2b-256 2a44b92f2d77662ae6b62883e3da851ee177eefb8530b068ff44fc8f41783a0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.1-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 990.8 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.1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 3137f3fd18a447ad3c8461af0afa09385d05a725f8cc486a23fe4ddbc70ebdcb
MD5 f3bf233886cb11a590a450bb1eec24f0
BLAKE2b-256 831b20081abd95ac5a276e752a276d37ecbc2cea417f0b3ca7497f32e163166d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.1-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.1-cp36-cp36m-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 1908f35b721576ad9f08eb0b30c20cdd54f69139b7ddad1dd62b6a429c495fba
MD5 00f29cf09c194dfc2fc2a1319538f358
BLAKE2b-256 fc21ec2917b08af453934fad4d381aa3a6b56c9100f0764acf352299f03a3fc3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.1-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.1-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 48c0f8245ced7bfdbc42be1fde6b2cad6efc7e1aa48429afd02cbc917b975262
MD5 52760f4125041f007491ff1f6892981e
BLAKE2b-256 8a7603f01f0a61eca7d3d60aba9083ec6a12de2f81c0c0cb756faeb48cd94603

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.1-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 991.0 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.1-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 92a13ddc3d7e34dcbbf5b56606ef58528e3c86c8a91331d3af3d6d28bd234fc9
MD5 6b711118aa6721127a25ca60974a6ecc
BLAKE2b-256 49806a8416bc03b30dfcb7169c7e70ab32735c07459f0ccf1d23950abc71f41e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.1-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.1-cp35-cp35m-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 d857fd400a6951f7fa93984aaeb413c2c5a302965fd9d70a8f790c5f5ad61414
MD5 6c2ab8f2b97fb160bbe3985602c5ea5b
BLAKE2b-256 e5839927cdd58a27698fcb2e93aefbbef8bc95cb6d857009c9464a33a2624451

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.1-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.1-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 a2796b5282a7a7906fc0b1388c5f3d8bdd9ee0a7e016000f913a6d049b70b2e2
MD5 57fe8a87d1a008bdfe40475921e32a92
BLAKE2b-256 0e18d230b433b15244b82b608025a57425b92be56172658db5efa3f37829db1f

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