How to use the libknot.control.load_lib function in libknot

To help you get started, we’ve selected a few libknot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CZ-NIC / knot / tests-extra / tools / dnstest / libknot.py View on Github external
#!/usr/bin/env python3

import sys

from dnstest.utils import Skip
import dnstest.params as params

try:
    sys.path.append(params.repo_binary("python"))
    import libknot.control
    libknot.control.load_lib(params.libknot_lib)
except:
    raise Skip("libknot not available or set KNOT_TEST_LIBKNOT to another libknot without ASAN")

libknot

Python bindings for libknot

GPL-3.0
Latest version published 22 days ago

Package Health Score

60 / 100
Full package analysis