One difference from python I noticed. Python always uses at least 2 digits for exponents.
whereas python-format can use a single digit:
console.log(pythonFormat('{}', 2e-6))
"2e-6"
I think it's from pystrtod.c where it says
/* From the C99 standard, section 7.19.6:
The exponent always contains at least two digits, and only as many more digits
as necessary to represent the exponent.
*/
#define MIN_EXPONENT_DIGITS 2