libpe

Nim rewrite for libpe library

Wrapper score 15/100 · tests present · no docs generated

Wraps a native library — check OS Compatibility below for platform-specific linking notes.

Summary

Latest Version 0.3.6
License GPL-3.0
CI Status Failing
Downloads 0
Last Indexed 2026-09-02 07:21

Authors

  • srozb

Installation

nimble install libpe
choosenim install libpe
git clone https://github.com/srozb/nim-libpe

OS Compatibility

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

Dependencies

Package Version Optional
nim >= 1.6.6, hashlib == 1.0.1, libfuzzy == 0.1.1 No

Source

Repository https://github.com/srozb/nim-libpe
Homepage https://github.com/srozb/nim-libpe
Registry Source nimble_official

README

nim-libpe

Nim rewrite of merces/libpe PE library.

This library is used by my PE multitool Peni.

Usage

Minimal working example based on the original one from Author's GH readme, would be:

import libpe
import libpe/pe
import libpe/error

var ctx: pe_ctx_t

assert pe_load_file(addr ctx, "path_to_file".cstring) == LIBPE_E_OK
assert pe_parse(addr ctx) == LIBPE_E_OK
assert pe_is_pe(addr ctx)

echo $ctx.pe.entrypoint

For more info consult the test file.