Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Python bindings for @yrp's BochsCPU using FFI to easily and accurately emulate x86 code.
bochscpu-python
requires a Python environment of 3.8 or more recent only.
By far the simplest way to get things up and running is using the stable packaged version on PyPI
python -m pip install bochscpu-python
Download the latest working artifact from the repository Github Actions tab. Extract the ZIP file, install the .whl
file you'll find inside the wheel
folder.
python -m pip install wheel/bochscpu-$version-$os-$arch.whl
Fairly straight forward:
python -m pip install .
Or without cloning
python -m pip install git+https://github.com/hugsy/bochscpu-python.git#egg=bochscpu-python
Note that this approach will require you to have all the building tools necessary installed (as described below)
cmake
pip
cl
for Windows, clang++
for MacOS and g++
Linux)build
Github Actions*.lib
in bochscpu/lib/<BuildType>
(where BuildType
can be Debug
, Release
, RelWithDebInfo
, etc.)python -m pip install -r requirements.txt
cmake
This will generate the bochscpu pyd
file (and its PDB) which you can import from a Python session with import bochscpu
..whl
from the root of the project:python -m pip wheel .
Just import the bochscpu
module and let the fun begin! Installing the package will also install interface files, allowing modern IDEs (VSCode, PyCharm, etc.) to offer useful completion.
https://github.com/hugsy/bochscpu-python/assets/590234/adc5ac5a-a8eb-4982-9537-5ece3f32f8f8
print("hello world")
-like assembly code in 16 bit real mode
https://github.com/hugsy/bochscpu-python/assets/590234/eb06af06-4b10-490e-ae40-a1d0aed333ca
rand()
function on x64
https://github.com/hugsy/bochscpu-python/assets/590234/2486adbc-0878-46f5-83ed-3bcf9774fd26
FAQs
Python bindings for BochsCPU.
We found that bochscpu-python demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.