NAPALM is written in Python that implements a set of functions to interact with different router vendor devices using a unified API.
NAPALM example.
---
Oxidized. Written in Ruby.
---
rconfig. Written in PHP.
---
Sweet. Written in Go and no longer maintained.