Finite Element Methods (FEmethods) can be used to calculate the shear, moment and deflection diagrams for beams. FEmethods can solve both statically determinant and statically indeterminate beams.
Python Library for Structural Beam Analysis -- File new issues at https://codeberg.org/SpaciousCoder78/beam-xs