introduce a Node api, and remove node_get

Description

This is a WIP MR to show a new possible Node API.

The current Node API, relies on many functions node_*, which are hard to expose and use cleanly. They also blur the difference between standard python objects and Node elements, by accepting normal objeccts as part of a Node, or by converting normal objects to Node.

I think it is best ot make the API more restrictive, and adding Node classes as first-class citizen would make things easier.

I also intend to make the _yaml API public, once it has all been migrated.

Changes proposed in this merge request:

  • Introduce the ScalarNode, MappingNode and SequenceNode classes
  • Remove node_get

Edited by Benjamin Schubert

Merge request reports

Loading