Skip to content

ontodev/wiring.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wiring-py

Wiring for Python

  1. Project Setup

    1. git clone git@github.com:ontodev/wiring.py.git
    2. cd wiring.py
    3. git clone git@github.com:ontodev/wiring.rs.git
    4. mv python_module.rs wiring.rs/src/
    5. mv Cargo.toml wiring.rs/
    6. cd wiring.rs
    7. add the line mod python_module; to the end of file src/lib.rs
  2. Installing Maturin

    1. python3 -m venv .venv
    2. source .venv/bin/activate
    3. pip install -U pip maturin
  3. Build

    1. maturin develop for local installation
    2. maturin build for creating a wheel
  4. Test

    1. cd ..
    2. python demo.py