Skip to main content

A python package for local process data manipulation

Project description

🧠 Pylocalmem

A Python package for local process data manipulation (64 bit).


📖 Description

Pylocalmem was made to be able to read and write values of local process addresses.

It can be used for game modding, runtime patching, or process manipulation — without needing to call OpenProcess, since you’re already inside the process you want to modify.


🧩 Requirements

Python 3.11 or higher (tested on 3.14 but should work from 3.11 to 3.14)

ctypes (part of the standard library)

keystone-engine (pip install keystone-engine)


⚙️ Installation

pip install pylocalmem

🚀 Example Usage

from pylocalmem import Process

# Create a memory object for the current process
mem = Process()

# Read an integer at a given address
value = mem.read_int(0x7FFDEAD)

print("Current value:", value)

# Write a new value
mem.write_int(0x7FFDEAD, 1337)
print("New value written!")

# Define a structure to read
class MyStruct(ctypes.Structure):
    _fields_ = [
        ("field1", ctypes.c_bool),
        ("field2", ctypes.c_longlong)
    ]


# Read the struct at a given address
data = mem.read_ctype(0x7FFDEAD, MyStruct)

print("Field 1:", data.field1)


# Modify our data
data.field1 = False

# Write the struct back at a given address
data = mem.read_ctype(0x7FFDEAD, data)


# Hide python
mem.hide_python()


# Get all modules exports
exports = mem.get_all_exports()

print(exports)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylocalmem-1.0.2.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylocalmem-1.0.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file pylocalmem-1.0.2.tar.gz.

File metadata

  • Download URL: pylocalmem-1.0.2.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for pylocalmem-1.0.2.tar.gz
Algorithm Hash digest
SHA256 32c7a69268b3b695d3da7cfd772515f3880a0be1aab538c8d953e891e6b4b136
MD5 4c738d89e75549984a9d808573b7debd
BLAKE2b-256 2e153cddc4d7bd7ea34bb6e6a207a40d37c1ec2ea475b00fcb31fd5ff1e10247

See more details on using hashes here.

File details

Details for the file pylocalmem-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pylocalmem-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for pylocalmem-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f526777f4cec6246c54d7fa135c7d037a1223254add9a7186d8d4a1da874a776
MD5 2eb55959f0fbc5f1b914b019a760449c
BLAKE2b-256 0ed5eeb36f9aeba08296250480789aae0f8a65aefff67dee44b108edde92d14e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page