memobj
A Python library for defining and reading structured objects directly from another process's memory.
Installation
- Using pip:
- pip install memobj
- Using uv:
- uv add memobj
Quickstart
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)
See tests for more examples (pointer properties, process/module utilities, etc.).
Development setup
This project uses uv as the build backend and package manager.
- Sync dependencies (including the tests group):
- uv sync --all-groups
- Run tests:
- uv run pytest
- Format code:
- isort . && black .
Optional: A Nix flake provides a dev shell with Python 3.11, just, black, isort, and more:
- nix develop
Support
discord: https://discord.gg/wcftyYm6qe
Metadata
Release files for memobj 0.17.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| memobj-0.17.0.tar.gz | 19.9 kB | Without provenance | Details for memobj-0.17.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| memobj-0.17.0-py3-none-any.whl | Python 3 | none | any | Details for memobj-0.17.0-py3-none-any.whl |
Total release size: 46.8 kB
Release files / memobj-0.17.0.tar.gz
| Download URL | memobj-0.17.0.tar.gz |
|---|---|
| Size | 19.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
608220f909042431526b1d41b9d24a38a4ae89192c12ba2bbfa4eecea3c4d384
|
|
BLAKE2b-256 checksum How to use checksums |
0f7bb3953795617c61ddbea1581572776b3dc6ef6c2ecbfda71e581c90eda8f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.12 {"installer":{"name":"uv","version":"0.9.12"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / memobj-0.17.0-py3-none-any.whl
| Download URL | memobj-0.17.0-py3-none-any.whl |
|---|---|
| Size | 26.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a01f2e97d9fef3c72dfb9a24d522cbdda695571d921d2b5d6a087f683b4e2aa1
|
|
BLAKE2b-256 checksum How to use checksums |
7da50859af3bcbe428030a2019f4974eb377986034b8e1448ee7b5d1469580b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.12 {"installer":{"name":"uv","version":"0.9.12"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for memobj 0.17.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.