synthetic-data-showcase/packages/lib-python
Rodrigo Racanicci 63a47a14a9 updating version 2023-03-16 15:51:08 -03:00
..
src updating rust dependencies and updating the code accordingly 2023-03-16 13:41:37 -03:00
Cargo.toml updating version 2023-03-16 15:51:08 -03:00
README.md updating lib-python readme file 2022-08-03 10:37:05 -03:00
requirements.txt Updating code with rust core library, cli application, bindings for python/wasm and a web application 2021-12-08 16:09:09 -03:00

README.md

SDS Python library

Python bindings around the core library for data aggregation and synthesis.

How to compile

To compile the python bindings please follow these steps.

I. Install Python and Pip

You will need python and pip installed on your system.

II. Install Rust tooling

The python bindings depends on the core library. You will need the Rust tooling installed in order to compile it. To install it, please refer to here.

III. Create a virtual env

Go to the folder where you want to store your virtual environment and run:

> python -m venv .env
> source .env/bin/activate

IV. Install the required dependencies

Install Maturin to build the bindings.

> pip install maturin

V. Generate the python bindings

Browse to the lib-python package, build and install it as a python module in the current virtual environment.

> cd packages/lib-python
> maturin develop --release