Metadata-Version: 2.1
Name: memflow
Version: 0.1.0
Classifier: Programming Language :: Rust
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: System :: Operating System
Classifier: Typing :: Typed
Requires-Dist: pytest==7.1; extra == 'dev'
Requires-Dist: black==22.10; extra == 'dev'
Provides-Extra: dev
License-File: LICENSE
Summary: Physical memory introspection framework
Keywords: memflow,python
Author: Dan Killinger <git@dank.anonaddy.com>
Author-email: Dan Killinger <git@dank.anonaddy.com>
License: MIT
Requires-Python: >=3.7
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://github.com/dankope/memflow-py
Project-URL: Bug Tracker, https://github.com/dankope/memflow-py/issues

# memflow-py

[Python] support for [Memflow], a physical memory introspection framework written in [Rust].

## Installation

1. Install python package: `pip install memflow`
2. Install appropriate memflow components (see [memflowup]).

## Example

```py
from memflow import *
from ctypes import *

class COFFHeader(Structure):
    _fields_ = [
        ("_pad0x0", c_uint8 * 6),
        ("sections", c_uint16),
        ("timestamp", c_uint32),
    ]

    def __str__(self):
        return f"{self.sections}, {self.timestamp}"

inventory = Inventory()
os = inventory.os("native")
process = os.process_from_name("CalculatorApp.exe")
module = process.module_from_name("CalculatorApp.dll")
header = process.read(module.base + 0x40, COFFHeader)
print(header)
```

[Memflow]: https://github.com/memflow/memflow
[memflowup]: https://github.com/memflow/memflowup
[Rust]: https://rust-lang.org/
[Python]: https://python.org/

