Skip to main content

Python bindings for procmaps.rs

Project description

procmaps.py

Build Status Downloads

Python bindings for procmaps.rs.

Installation

procmaps.py is available for Python 3.7+ via pip:

$ pip install procmaps

Usage

import procmaps

# also: from_path, from_str
maps = procmaps.from_pid(9001)
for map_ in maps:
    # `in` can be used to check address inclusion
    if 0xfeedface in map_:
        print("this map contains some address!")

    # see dict(map_) for all attributes
    print(f"{map_.begin_address}: {map_.pathname}")

Development

procmaps.py uses PyO3 for binding Rust to Python. It uses Maturin to coerce the Rust build into a pip and PyPI-compatible wheel.

Assuming that you have Rust and a relatively recent Python 3 installed, the following should just work:

$ make develop
$ source env/bin/activate

A local build of procmaps.py will be created and installed in your virtual environment.

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

procmaps-0.6.0-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl (216.7 kB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ x86-64

procmaps-0.6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (217.5 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.5+ x86-64

procmaps-0.6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (217.7 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

procmaps-0.6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (216.9 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

procmaps-0.6.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (216.9 kB view hashes)

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

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