This work is based on the study of cesium (l18,146Cs) and francium (207-213Fr, 220-228Fr) isotopes by hyperfine atomic spectroscopy and on the interpretation of these results from the nuclear physics point of view. The measured nuclear quantities are : the spin. the magnetic moment, the electric quadrupole moment and the mean square charge radius. The experimental method which is based on hyperfine optical pumping with a tunable laser, followed by magnetic analysis of the atoms is described in the first part. Results related to atomic physics are also presented. In the second part, these data are interpreted in the framework of nuclear models. The deformation of light cesium isomers are compared to values obtained from a theoretical self-consistent calculation. Heavy francium isotopes are situated in an area where the existence of static octupole deformations have been predicted. The odd-even staggering measured on the mean square radius is abnormal in this region. However, on the basis of experimental data, no definitive conclusion can be drawn regarding the nature of these deformations.