This is a python library that makes it easy as pie to talk Netconf to any IOS XE device that supports netconf.
Option 1
sudo pip install pyskate
Using pip also installs xmltodict and ncclient that are required.
Option 2
Clone this repository, modify your PYTHONPATH, and do all that fun stuff!
>>>
>>> from pyskate.iosxe_netconf import IOSXEDevice
>>>
>>> router = IOSXEDevice('hostname','username','password')
>>> router.connect()>>> router.disconnect()>>> config = router.get_config()>>> router.edit_config("interface Gi1\ndescription spam")>>> router.save_config()>>> cmd_output = router.exec_command("show interface")