Python bindings for BochsCPU.
Project description
bochscpu-python
Python bindings for @yrp's BochsCPU using FFI
Build
- Build BochsCPU, BochsCPU-FFI, and BochsCPU-Build following the instructions on their pages
- Alternatively BochsCPU-FFI lib object files can be downloaded from the
build
Github Actions
- Alternatively BochsCPU-FFI lib object files can be downloaded from the
- Move the
*.lib
inbochscpu/lib/<BuildType>
(whereBuildType
can beDebug
,Release
,RelWithDebInfo
, etc.) - Install the requirements:
python -m pip install -r requirements.txt
- Build with
cmake
This will generate the bochscpupyd
file (and its PDB) which you can import from a Python session withimport bochscpu
. - You can also generate a
.whl
:
python -m pip wheel .
Install
From the source repository
python -m pip install .
Or without cloning
python -m pip install git+https://github.com/hugsy/bochscpu-python.git#egg=bochscpu-python
Via PyPI
python -m pip install bochscpu-python
Via the generated builds
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
Usage
Just import the bochscpu
module and let the fun begin!
Enjoy 🍻
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for bochscpu_python-0.1.4-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68f63aad51155c8fc4461a6f07a9021b55561e04f27b5251a9d9a04a6495c116 |
|
MD5 | a25db03b5bfd5bd2dba3a300a7ab9b32 |
|
BLAKE2b-256 | 53de9e8a16289160d2e0cbf408374e5a527f56f8da7d3935d2b007be404d5bf1 |
Close
Hashes for bochscpu_python-0.1.4-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19c9daa040530bc35831b09c46a38dd60e056dee28e4fd09ad2463b17ce82d6e |
|
MD5 | c928702d0e751ef05d0631f2678d1842 |
|
BLAKE2b-256 | 95bc24f832e7f88a664ba304300f5a36a05e009dc227b303eca800ac163b2c99 |
Close
Hashes for bochscpu_python-0.1.4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67ff1f7ad1979b1218dbcbfb66a9e742b52736754bc36ebac894cbbb5884d3cb |
|
MD5 | 38b54b250b008633fb0098f928f1a15b |
|
BLAKE2b-256 | 022a551ce92755dff1d90787d2f4fddef9d6ef90f342743860afc89eeb0e58f2 |
Close
Hashes for bochscpu_python-0.1.4-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77c1dd3be7d3541345bdfd1a319a5a65d69f0be48334bd80a3f1a979818ca44b |
|
MD5 | ae67c893ab3a3c867aa7472d17cf22bd |
|
BLAKE2b-256 | 74a7ebedb2f28ce8b35ec683fe9b09c98fbf14f14d8124d3921e0de7177409d8 |
Close
Hashes for bochscpu_python-0.1.4-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0f8302470ff9d7b5d10b80fbfde903be8056b175d23a12f2709c6d9d9327567 |
|
MD5 | e5a5f18620e71a8228c24c9310e435c0 |
|
BLAKE2b-256 | c00e9fd63a0702085d62fea318f082ac43d86ab9d197f574849cb4dcdda046cd |
Close
Hashes for bochscpu_python-0.1.4-cp39-cp39-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b293c1070e1f7ebff5f0924fdcf0c232cbb9eb451be7c4fbde61dd2fcc09283 |
|
MD5 | f934465200468aa47843e206fffaa94a |
|
BLAKE2b-256 | 316b27bafa285909f1b13e2dbc4fc331fefcd17bf09c778672e270fd094cd203 |
Close
Hashes for bochscpu_python-0.1.4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b27df341f33e9f948ced8ad11b1c21b560bf06364824c957477ddabef564002 |
|
MD5 | faf3ec9fc1e217aa12956d45edcadad3 |
|
BLAKE2b-256 | 0ccc99081d8bea06a4c33114fd589a29ef3c771a66a8c7bf69b3a28c4005bd15 |
Close
Hashes for bochscpu_python-0.1.4-cp38-cp38-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 285075f217af7d8deb6714f57aadd8dacb1e68340372e3a95f0eaf994ceed51b |
|
MD5 | 7e8b0cac8a753cdd48e096db893fb37a |
|
BLAKE2b-256 | 6d6bab7f95f3095208a0bcf3bc5f682e20fcd74ba11fa035a2c6e5f21f8346a8 |