Skip to main content

Python bindings for procmaps.rs

Project description

procmaps.py

Build Status

Python bindings for procmaps.rs.

Installation

procmaps.py is available for Python 3.6+ 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 built 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 Distribution

procmaps-0.5.0-cp36-abi3-manylinux2010_x86_64.whl (211.3 kB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.12+ x86-64

File details

Details for the file procmaps-0.5.0-cp36-abi3-manylinux2010_x86_64.whl.

File metadata

  • Download URL: procmaps-0.5.0-cp36-abi3-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 211.3 kB
  • Tags: CPython 3.6+, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.7

File hashes

Hashes for procmaps-0.5.0-cp36-abi3-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5854501e8e03d80273a08c745b2ee244606dcc4a53753b9d923f28d7a1f32c23
MD5 99e9cb8955856bc09e5dd7b1acc9058f
BLAKE2b-256 ebe1078b19752f87acd3871a01cae9635ed66f9856e0cc64105e9836f93d2ecd

See more details on using hashes here.

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