libmem_python provides unofficial Python bindings for Libmem, utilizing nimpy to bridge Python with the powerful memory manipulation capabilities of Libmem. This project allows Python developers to leverage Libmem's features directly from Python scripts.
Before you can build and use libmem_python, you'll need to have Python and Nim installed on your system. Ensure that you have the following:
- Python (3.10 or newer)
- Nim (2.0.0 or newer)
- nimpy package (nimble install nimpy)
Follow these steps to build and install the libmem_python bindings:
First, clone the libmem_python repository to your local machine:
git clone https://github.com/Hypnootika/libmem_python.git
cd libmem_python
Use Nimble, Nim's package manager, to perform the necessary build tasks:
This task fetches the latest source code for Libmem:
nimble downloadlibmem
This task generates the necessary Nim to Python bindings:
nimble generatebindings
This combines the download and generation tasks and prepares the final package:
nimble buildall
After running the Nimble tasks, use Python's setup tools to build the Python package:
python setup.py sdist bdist_wheel
Alternatively use the current Release
After installation, you can import libmem
in your Python scripts to start manipulating memory directly from Python.
Contributions to libmem_python are welcome.
This project is licensed under the MIT License - see the LICENSE file for details.
Thanks to the Libmem developers for their excellent memory manipulation library. This project uses Nimpy to create bindings, a powerful tool for interfacing Nim with Python.