21 Commits

Author SHA1 Message Date
Jan Kundrát
32b9ff8813 Port to libyang v3
...along with a bunch of incompatible API/ABI changes.

I had to make a few tweaks in the build process as well, and these
couldn't be made (and tested!) with separate commits. The test suite was
failing on OS X 13, so I decided to upgrade, because "why not".
2025-04-04 20:38:50 -07:00
Jan Kundrát
77db42ffa5 API change: sync with upstream repos
Warning, Context.get_module's API changed, the revision no longer
default to `None` because passing `None` explicitly asks for a module
with no associated revision. Use `Context.get_module_latest` when the
previous behavior is needed. This is a deliberate change from the C++
library; only in C++ a compiler catches this :).

See-also: https://gerrit.cesnet.cz/c/CzechLight/libyang-cpp/+/6732
See-also: https://gerrit.cesnet.cz/c/CzechLight/libyang-cpp/+/6733
2024-01-16 11:32:05 +01:00
Jan Kundrát
e629297a2d creating new data nodes 2023-09-01 17:59:11 +02:00
Jan Kundrát
2816765c14 Basic schema-level queries 2023-09-01 16:18:11 +02:00
Jan Kundrát
55ee7a14eb Allow easy checking for element existence 2023-09-01 16:18:11 +02:00
Jan Kundrát
96b2178d47 Add support for reading enumerations 2023-09-01 16:18:11 +02:00
Jan Kundrát
f85ec36353 Working with the empty type 2023-09-01 16:18:11 +02:00
Jan Kundrát
feae818234 Add support for reading the decimal64 data type 2023-09-01 16:06:34 +02:00
Jan Kundrát
f7b64f68e4 Add support for relative path lookup starting at root 2023-09-01 15:25:58 +02:00
Jan Kundrát
3a1bc911a8 Export DataNode::findPath with no restrictions on result size 2023-09-01 15:25:58 +02:00
Jan Kundrát
a825729856 use Python's default snake_case naming convention consistently 2023-09-01 15:25:57 +02:00
Jan Kundrát
2cd967652e export log options to Python 2023-06-13 17:03:38 +02:00
Jan Kundrát
10687e3f28 new validation/parsing flags in libyang-cpp 2023-05-16 23:07:23 +02:00
Jan Kundrát
6bf5a8729b Export libyang version info
There's nothing like that in the libyang-cpp yet, so that one is not
made available.
2023-05-16 19:03:23 +02:00
Jan Kundrát
b6763ba61c explicit module loading without callbacks 2023-05-16 19:03:23 +02:00
Jan Kundrát
9e5914d9c3 clean up obsolete code 2023-05-16 19:03:23 +02:00
Jan Kundrát
3de2a328f2 refactor: py::overload_cast 2023-05-16 19:03:23 +02:00
Jan Kundrát
9a37f1ec8f refactor: namespace py = pybind11
...just to align with the upstream docs.
2023-05-16 19:03:23 +02:00
Jan Kundrát
b2eaeb4fe5 refactor: using namespace libyang 2023-05-16 19:03:23 +02:00
Jan Kundrát
dc8e5259d3 Adapt to upstream C++ overloading 2023-05-16 19:03:23 +02:00
Jan Kundrát
3a458f2318 Python bindings: just enough to validate some YANG data 2022-07-01 00:52:53 +02:00