Skip to content

libmicrovmi python bindings #162

@Wenzel

Description

@Wenzel

Create Python bindings to call libmicrovmi from Python

TODO (updated):

  • decide how to integrate this new library in our build system
  • expose DriverType and DriverInitParam
  • expose read_physical
  • package and upload to PyPI
  • update setup.py to accept --features parameter, and set features in RustExtension
  • create new Dockerfile based on quay.io/pypa/manylinux2014_x86_64 and install all the drivers required development headers
  • update build-wheels.sh to accept --features and pass them to setup.py
  • read all relevant fields of python/Cargo.toml to fill setup.py metadata

We should use the rust-cpython project

rust-cpython will help us to generate a Python extension module, wrapping the libmicrovmi Rust API.

how to integrate this new library

  1. create a separate repository
  2. use cargo workspace to manage both Rust library and Python extension in the same git repository, in tandem.
  3. maybe generate both with the same cargo.toml (I doubt this is possible)

@rageagainsthepc if you have an opinion

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions