YDK 0.8.0 introduced support for gNMI. That includes a gNMI service provider and a gNMI service. Here's a basic sample app showing how to read the system time on an IOS XR device using the CRUD service with the gNMI service provider:
gn-read-xr-shellutil-oper-10-ydk.py - boilerplate for system time
gn-read-xr-shellutil-oper-20-ydk.py - custom app for system time
These apps use the CRUD service and the gNMI service provider. New to gNMI? Watch "gNMI programmatic configuration" from the recent Tech Field Day. New to OpenConfig? watch "Getting started with OpenConfig" from the MPLS+SDN+NFV World Congress 2018.
What to compare these gNMI apps with the NETCONF apps performing the same task? See:
nc-read-xr-shellutil-oper-10-ydk.py - boilerplate for system time
nc-read-xr-shellutil-oper-20-ydk.py - custom app for system time
Enjoy!