Radiative properties are fundamental for plasma diagnostics and hydro-simulations. For this reason, there is a high interest in their determination and they are a current topic of investigation both in astrophysics and inertial fusion confinement research. In this work a flexible computation package for calculating radiative properties for low and high Z optically thin and thick plasmas, both under local thermodynamic equilibrium and non-local thermodynamic equilibrium conditions, named RAPCAL is presented. This code has been developed with the aim of providing accurate radiative properties for low and medium Z plasmas within the context of detailed level accounting approach and for heavy elements under the detailed configuration accounting approach. In order to show the capabilities of the code, there are presented calculations of some radiative properties for carbon, aluminum, krypton and xenon plasmas under local thermodynamic and non-local thermodynamic equilibrium conditions.