Metadata-Version: 2.4
Name: memobj
Version: 0.15.1
Summary: A library for defining objects in memory
Author: StarrFox
Author-email: StarrFox <starrfox6312@gmail.com>
License-Expression: MIT
Requires-Dist: iced-x86>=1.21.0
Requires-Dist: pefile>=2024.8.26 ; sys_platform == 'win32'
Requires-Dist: regex>=2025.9.18
Requires-Python: >=3.11
Project-URL: Issues, https://github.com/StarrFox/memobj/issues
Project-URL: Repository, https://github.com/StarrFox/memobj
Description-Content-Type: text/markdown

# memobj

A library for defining objects in memory

## installing

`pip install memobj`

## example

```python
import os

from memobj import WindowsProcess, MemoryObject
from memobj.property import Signed4


class PythonIntObject(MemoryObject):
    # note: this offset might be different in future python versions
    value: int = Signed4(24)


process = WindowsProcess.from_id(os.getpid())

# id(x) gives the address of the object in cpython
my_int = PythonIntObject(address=id(1), process=process)

# prints 1
print(my_int.value)
```

## support

discord: <https://discord.gg/wcftyYm6qe>
