A Python implementation of EigenTrust (PygenTrust) as described in the whitepaper:
https://nlp.stanford.edu/pubs/eigentrust.pdf
Note that the whitepaper contains 4 different implementations based on different network assumptions. Be mindful of using the code for the appropriate approach for simulations of distributed systems.