Python bindings for procmaps.rs
Project description
procmaps.py
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
Release history Release notifications | RSS feed
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
File details
Details for the file procmaps-0.6.1-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: procmaps-0.6.1-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 221.9 kB
- Tags: CPython 3.7+, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36ec3ab4df2c49d5b4e5a9e78931339203c04ecd8aeddaaecd8872fc4de1fa2f |
|
MD5 | 6993ebc86bad91e746e3ebb87876eaeb |
|
BLAKE2b-256 | f3a12f27a0a9d6c17beaf4e6a1b3cc9343a0db8f56299b2ccfa2f98aa6c9cef4 |