Metadata-Version: 2.4
Name: archi
Version: 3.8.7.0
Summary: Multi-format archive library based on libarchive
Home-page: https://github.com/whtsky/archi
Author: Wu Haotian
Author-email: whtsky@gmail.com
License: MIT
Keywords: libarchive,archive,compress,compression
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Cython
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: requires-python
Dynamic: summary

# Archi

[![CI](https://github.com/whtsky/archi/actions/workflows/ci.yml/badge.svg)](https://github.com/whtsky/archi/actions/workflows/ci.yml)

Multi-format archive library based on [libarchive](https://github.com/libarchive/libarchive) . Forked from [pyarchive](https://github.com/tailhook/pyarchive)

## Usage

```python
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 `Entry`s, they're freed as soon as the loop moves on to the next or ends. So this won't do:

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

## [Changelog](CHANGELOG.md)

## TODO

- [ ] compression
