The Common-Language Effect Size (CLES) is the probability that a sample from one group is greater than a sample from another group. It's used sometimes as the effect size accompanying a Mann–Whitney U test. If the two groups are positive and negative examples for a classifier, it's the same thing as AUC.
This is a Python implementation that calculates the exact (non-parametric) value. It enforces the strict inequality (no half-credit when equal).
from cles import cles
cles([1, 2], [2, 3])
## 0.75