Under development. Uses C bindings to load the TN SDK (Go) library under the hood.
- Go
- Python
It is recommended to use a virtual environment to develop the SDK.
python -m venv .venv source .venv/bin/activate pip install -e .[dev]To recompile the C bindings, run the following command:
make- Build the TN Node container image by running the
task composecommand onnoderepository. - Stop the TN Node container if it is running, but do not remove the image as it is needed.
- Before running the tests, make sure the TN Node is not running. The tests will start a TN Node in the background and stop it after the tests are finished.
- Then, run the tests with the following command:
python -m pytest tests/<test_file>.pyTo summarize, here are the steps to develop and test the SDK:
# Create a virtual environment python -m venv .venv source .venv/bin/activate pip install -e .[dev] # Recompile the C bindings make # Run the tests python -m pytest tests/test_tnclient.py python -m pytest tests/test_procedure.py python -m pytest tests/test_sequential_inserts.py