nim7z

7z extraction for Nim

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install nim7z
choosenim install nim7z
git clone https://github.com/genotrance/nim7z

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
nim7z - - - - - - -

Source

Repository https://github.com/genotrance/nim7z
Homepage https://github.com/genotrance/nim7z
Registry Source nimble_official

README

Nim7z is a Nim wrapper for the 7zip decoder.

Nim7z is distributed as a Nimble package and depends on nimgen and c2nim to generate the wrappers. The 7zip source code is downloaded using Git so having git in the path is required.

Installation

Nim7z can be installed via Nimble:

> nimble install nim7z

This will download, wrap and install nim7z in the standard Nimble package location, typically ~/.nimble. Once installed, it can be imported into any Nim program.

Usage

Module documentation can be found here.

import nim7z

let svnz = new7zFile("testfile.7z")
extract(svnz, "outdir")

extract("testfile.7z", "outdir", skipOuterDirs=true)

Refer to the tests directory for examples on how the library can be used.

Credits

Nim7z wraps the 7zip source code and all licensing terms of 7zip apply to the usage of this package.

Credits go out to c2nim as well without which this package would be greatly limited in its abilities.

Feedback

Nim7z is a work in progress and any feedback or suggestions are welcome. It is hosted on GitHub with an MIT license so issues, forks and PRs are most appreciated.