Client library for Affinity in python