Syzygy tablebases provide WDL (win/draw/loss) and DTZ (distance to zero) information for all endgame positions with up to 6 (and experimentally 7) pieces. Positions with castling rights are not included.
chess.syzygy.open_tablebase
chess.syzygy.Tablebase