Project: datamanagement
Issue DM-5677: Wrap example code with cffi
As per DM-5471, but using cffi.
Story points: 10