The elastic tensor is a fundamental material property that describes the mechanical response of a material to small external loads, offering a complete description of the material's behavior under such conditions. A variety of mechanical, thermal, and acoustic properties can be directly derived from the elastic tensor. Computationally, there exist two major methods to calculate the elastic tensor using first-principles calculations. The first is the energy-strain approach, which relates the elastic tensor to the second derivative of the total energy with respect to strain. The second is the stress-strain approach, where the elastic tensor C is obtained by leveraging the linear relationship between stress σ and strain ϵ, that is, σ = Cϵ.