A Florida woman is suing a sheriff's deputy after he allegedly shot her with a stun gun then apologised with a cake that said "Sorry I tased you" in blue icing.

The cake did not cut it for Stephanie Byron, who brought the suit against former Escambia County deputy Michael Wohlers in May.

The complaint, which was filed in federal court in Pensacola, alleges Wohlers violated Byron's civil rights, committed battery against her and caused her hardships, including physical injuries, monetary loss, medical expenses, humiliation and mental anguish.

Wohlers' attorney would not comment on Thursday but denied the allegations in a court document.

The incident happened in June 2015 when Wohlers stopped by an apartment complex where Byron was working.

He resigned from the sheriff's office the following month.