Registry / pymemoryeditor

pymemoryeditor

JSON →
library2.0.1pypypi✓ verified 82d ago

PyMemoryEditor is a multi-platform Python library developed with ctypes for reading, writing, and searching process memory. It provides a simple and friendly API for memory manipulation, supporting Python 3.6+. The current version is 1.6.0, released with moderate cadence, targeting Windows, Linux, and macOS.

pip install pymemoryeditor
INSTALL
IMPORT
SIG · PYMEMORYEDITOR
P
pymemoryeditor
pythonv2.0.1
Install
1.7s avg
Import
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.0.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

OpenProcess
from PyMemoryEditor import OpenProcess
from pymemoryeditor import OpenProcess

Open a process by name and read/write memory.

from pymemoryeditor import OpenProcess # Attach to a process by name (e.g., 'notepad.exe') with OpenProcess(process_name='notepad.exe') as proc: # Read an integer at a specific address address = 0x7FF... # Replace with actual address value = proc.read_int(address) print(f"Read value: {value}") # Write a new value proc.write_int(address, 42) print("Written 42 to address")
Debug
Known issues
gotchaPermissions: Opening a process may require administrator/root privileges, especially for system processes. Without proper permissions, OpenProcess may fail silently or raise an exception.
fix
Run your script as administrator (Windows) or with sudo (Linux/macOS).
affects: all
deprecatedPython 3.6 support: As of version 1.6.0, Python 3.6 is still supported but may be dropped in future releases. Users on older Python versions should upgrade.
fix
Upgrade to Python 3.7 or later.
affects: <=1.6.0
gotchaMemory address architecture: Use 64-bit addresses (e.g., 0x7FFFFFFFFFFFFFFF) on 64-bit processes. Using 32-bit addresses may lead to AccessViolation.
fix
Ensure your address size matches the target process bitness.
affects: all
gotchaPlatform-specific: The library uses ctypes and platform-specific APIs (e.g., Windows kernel32, Linux ptrace). Some features may not work identically across all platforms.
fix
Test on your target platform. For Linux, ensure ptrace is enabled (e.g., ptrace_scope=0).
affects: all
Upgrade
Version history
2.0.1latest on PyPI · released Jun 16, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
pymemoryeditor — pip install pymemoryeditor · libregistry