`scipy.special.expit` computes exactly this. (As does `sklearn.utils.extmath.logistic_sigmoid`.)