rust api for openiap and wrappers for nodejs, python and dotnet6
please see rust api for source code and most up to date examples.
please see documentation for usage.
openiap-clib also functions as the “backend” for the nodejs, python and dotnet6 SDK’s.
build
make sure you have rust installed
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
make sure protoc is installed
# linux
sudo apt install protobuf-compiler
# macos
brew install protobuf
# windows
# download at https://github.com/protocolbuffers/protobuf/releases
install cross ( requires docker or podman )
cargo install cross --git https://github.com/cross-rs/cross
then compile for each target platform by running
sh build.sh
test
setup default credentials
export OPENIAP_USERNAME=username
export OPENIAP_PASSWORD=password
rust
cargo run
cargo test
nodejs
cd node
node test.js
python
cd python
pip uninstall openiap -y && pip install dist/openiap-0.1.1-py3-none-any.whl && python test.py
dotnet
cd dotnet
dotnet run