You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Joachim Metz edited this page Jul 12, 2022
·
1 revision
libnk2 comes with Python-bindings named pynk2.
Below are examples how use pynk2.
They assume you have a working version of pynk2 on your system.
To build pynk2 see Building.
Import
To be able to use pynk2 in your Python scripts add the following import:
import pynk2
Get version
The get_version() module function can be used to retrieve the version of the pynk2.
pynk2.get_version()
This will return a textual string (Unicode) that contains the libnk2 version.
Since pynk2 is a wrapper around libnk2 it does not have a separate version.