For API documentation see libtguy.h. For implementation details see libtguy.c. For example python CFFI see libtguy_python.