Metadata-Version: 2.4
Name: cozip
Version: 2026.5.2.4
Summary: COZIP Cloud-Optimized ZIP Open a ZIP like a table.
Project-URL: Homepage, https://asterisk.coop/taco/cozip
Project-URL: Repository, https://github.com/asterisk-labs/taco
Project-URL: Issues, https://github.com/asterisk-labs/taco/issues
Author-email: Roy Yali <ryali93@gmail.com>, Cesar Aybar <cesar@asterisk.coop>, Julio Contreras <julio.contreras@uv.es>
License: MIT License
        
        Copyright (c) 2026 Asterisk Labs
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Keywords: archive,cloud-optimized,zip
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: C
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: System :: Archiving :: Compression
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: cffi>=1.16
Requires-Dist: pyarrow>=14
Description-Content-Type: text/markdown

<div align="center">
  <img src="images/cozip_logo.png" alt="cozip" width="180"/>

  # Cloud Optimized ZIP
  
  *Random access over HTTP. Open a ZIP like a table.*

  [![License MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
  [![C](https://img.shields.io/badge/Language-C-A8B9CC.svg?logo=c&logoColor=white)]()
  [![DuckDB](https://img.shields.io/badge/DuckDB-Extension-FFF000.svg?logo=duckdb&logoColor=black)]()
  [![Spec v1.0](https://img.shields.io/badge/Spec-v1.0--draft.2-brightgreen.svg)](SPEC.md)
</div>

---

<p align="center">
  <img src="images/fig1_request_comparison.svg" alt="ZIP vs cozip range requests" width="100%"/>
</p>

## What is cozip

A cozip is a ZIP archive designed for direct access over the network.

It places a compact index at byte 0 with the offsets and sizes of selected files. A reader fetches that index in one request and jumps straight to the data it needs.

Everything else stays standard. Any ZIP tool can still open it.

In practice, cozip archives often include a `__metadata__` Parquet file that lists every entry with its name, offset, and size. Because it is just Parquet, tools like DuckDB, Arrow, or Polars can read it directly. This makes it possible to treat a cozip archive as a table and query its contents without scanning the whole file.

## License

MIT

<div align="center">
  <br>
  Developed with ❤️ by
  <br><br>
  <a href="https://asterisk.coop">
    <img src="images/asterisk_logo.svg" alt="Asterisk Labs" width="400"/>
  </a>
</div>