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

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

archi-0.2.2-cp38-cp38-manylinux2010_i686.whl (1.1 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686

archi-0.2.2-cp38-cp38-macosx_10_9_x86_64.whl (418.5 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

archi-0.2.2-cp37-cp37m-manylinux2010_x86_64.whl (999.3 kB view details)

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

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

Uploaded CPython 3.7m manylinux: glibc 2.12+ i686

archi-0.2.2-cp37-cp37m-macosx_10_6_intel.whl (450.9 kB view details)

Uploaded CPython 3.7m macOS 10.6+ intel

archi-0.2.2-cp36-cp36m-manylinux2010_x86_64.whl (998.3 kB view details)

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

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

Uploaded CPython 3.6m manylinux: glibc 2.12+ i686

archi-0.2.2-cp36-cp36m-macosx_10_6_intel.whl (452.7 kB view details)

Uploaded CPython 3.6m macOS 10.6+ intel

archi-0.2.2-cp35-cp35m-manylinux2010_x86_64.whl (998.5 kB view details)

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

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

Uploaded CPython 3.5m manylinux: glibc 2.12+ i686

archi-0.2.2-cp35-cp35m-macosx_10_6_intel.whl (450.1 kB view details)

Uploaded CPython 3.5m macOS 10.6+ intel

File details

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

File metadata

  • Download URL: archi-0.2.2-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.2-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ec3d9d56fc3b85f98afeb9f7cb336739dff5f1b78274accd249b30293c748c6e
MD5 8f6bc9944bd4327a1738079cc1816ae7
BLAKE2b-256 dd4a152c1a710e68c2d22e611a45f982b11fdee28b8235a747ddd0d05e3eb192

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.2-cp38-cp38-manylinux2010_i686.whl
  • Upload date:
  • Size: 1.1 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.2-cp38-cp38-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 1394d9716cc75da103237a6a78fc1e202caa8679db67cad9c9967f4d07061d6b
MD5 f9a3e82ce0457e6830ec2d67aba93fda
BLAKE2b-256 9ae982dea594d3251be0688cc6988d0e6e8b6413717eac62490447fec0f5041d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.2-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 418.5 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.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d3358025f6ce68076723e2488bc317eb20a873e0ea360cff3ca967e03fa72091
MD5 407e03295cac5dc3121c5d438691b8cf
BLAKE2b-256 3e3eb645b9c370c0dff21a0a0a541a1c1ee555ad53245aeec68340a3a386256e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.2-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 999.3 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.2-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 afdeecb9512009c1483ace689b5fe3b4db71982e135690bb49a4581b0b2ab2f7
MD5 f6363bf589a9946dd50a4b6d4eadd29e
BLAKE2b-256 4651259fd5b2774bb44d94c64d5b4d5b9716e0ae8c94910d3d7c8ad880068282

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.2-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.2-cp37-cp37m-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 a4ba135a4ed246b2797d916218001109cce3f552c13e1d9e0dc047322ac16f43
MD5 6795c13ebd0a881581566b160df8aa85
BLAKE2b-256 a044cc1f8a6cc638891be11f16d958e447010533f551850067c6c855535e8189

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.2-cp37-cp37m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 450.9 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.2-cp37-cp37m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 7ec071b4d32f50eacc0b64967a1f90693227ae5c2e4c8690c38b8882359371dc
MD5 3ab40748084faa051201ddd5b6386f53
BLAKE2b-256 aa8b2313f803bf48b2aa3459556cc17e3fafea1f85aedafc1d7a4b05bb5a61ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.2-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 998.3 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.2-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ead8d8d32a702061981048a12d7065d571b4e0f96ed47aa66171fd4a63fb0883
MD5 137d69cdd82ed832d7073ee69bc13ec6
BLAKE2b-256 91b9dc7cd3774368346440b580c11056a0d7a517dfd959dba97d721ca76b4154

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.2-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.2-cp36-cp36m-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 b9c7fe01bfb605973ff7467623c9863257f40737a372ff66aa25334004b1e514
MD5 718ad6fe4c55b5f6aab9c674792b562f
BLAKE2b-256 905931e3864ee062d897316e21dce4d1fac9f9d6c4235ee74f48bc5ed3ad3a85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.2-cp36-cp36m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 452.7 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.2-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 b5db308a6626d61df54ef7803b4a7e6436574b239d869144e118bd87ebb89682
MD5 90b3cecc142195d60e508fe42c8a45f9
BLAKE2b-256 cb93437eca596b6b6c06bab0f996da99a7ad1afa6d6e908adf4fcabdeba79712

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.2-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 998.5 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.2-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ca52df528e1905f3a9e98e4f8c76985fb13e0f1f421a076afa4185f2d42c887d
MD5 a59fefd82822a428cbd17105e00052db
BLAKE2b-256 78dda36c860ba30b9d9e549d5ff278cac9ce336cf99bc97a0e36f597106e029b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.2-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.2-cp35-cp35m-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 160fab85d7457d37ffbc153e9e53e1a6456a7cf8aeb1987f795c0953e36cd863
MD5 c3f66ac5cc5907516adb8cdaeba9dfef
BLAKE2b-256 f6d2b8e8e020b2e2d93d9dd351afa1577a749f4e7795d0afc899f764b7e83964

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archi-0.2.2-cp35-cp35m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 450.1 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.2-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 64f5be3106de4cba46bdcba6f49f41026a4949baa0f2c60ff9b8d83b47f690c0
MD5 ea6fa35e3b663d5557959c6f9cd0db46
BLAKE2b-256 668d9b49048533c738675f2a4ffde3b86122377b8ad22cd8ce964a67ec573764

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