Metadata-Version: 2.1
Name: memwin
Version: 0.0.5
Summary: 一个python操作windows的 进程,线程,内存读写,HOOK的库
Home-page: https://github.com/decenfrontier/memwin
Author: decenfrontier
Author-email: decenfrontier@gmail.com
License: MIT License
Description: # memwin介绍
        一个python操作windows的 进程 线程 内存读写 HOOK的库, 暂只支持32位进程.
        为什么需要创建这个库? 
        因为python尽管已经有win32process, win32api, pywin32等库可以操作windows的进程线程内存, 但这些库都只是操作windows的原生api, 自己用python写的话效率低下, 要多定义很多结构体才能用, 
        如果封装好, 就能更方便地通过hwnd来操作任意窗口进程的内存
        
        # 安装
        ```sh
        pip install memwin
        ```
        
        # 文档
        ## 进程操作示例
        ```python
        from memwin.xprocess import XProcess
        
        hwnd=329884
        proc = XProcess(hwnd)
        h_process = proc.get_h_process()
        print(f"h_process: {h_process}")
        ```
        
        ## 线程操作示例
        ```python
        from memwin.xthread import XThread
        
        hwnd=329884
        thread = XThread(hwnd)
        h_thread = thread.get_h_thread()
        print(f"h_thread: {h_thread}")
        ```
        
        ## 内存读写操作示例
        ```python
        from memwin.xmemory import XMemory
        
        hwnd=329884
        xm = XMemory(hwnd)
        teb_addr = xm.get_teb_addr()
        print(f"TEB地址: {teb_addr}")
        stack_top_addr = xm.read_int(teb_addr+4, 4)
        print(f"栈顶指针: {stack_top_addr}")
        ```
        
        # 单元测试
        ```sh
        pip install pytest
        pytest -s
        ```
        
        # 上传分发包
        ```sh
        python setup.py sdist build
        twine upload dist/*
        ```
Platform: win32
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Description-Content-Type: text/markdown
