The victim, aged 35, suffered serious cuts to his right arm during the incident, which happened at a property in Cottingley Drive, Leeds, on Friday.
Amy Gidman, 25, from Cottingley, is charged with weapons offences, false imprisonment and common assault.
A 24-year-old man has been arrested on suspicion of attempted murder in connection with the incident.
Ms Gidman has been remanded in custody until 29 June when she is due to appear at the city's crown court.
West Yorkshire Police said the 24-year-old was currently being treated in hospital under police guard.
Det Insp Phil Jackson said the attack was believed to be linked to an earlier incident involving two dogs.
A 45-year-old man and a 28-year-old woman also arrested in connection with the incident have been released on police bail pending further enquiries.
The victim of the attack was treated in hospital before being released.
A woman has appeared at Leeds Magistrates' Court in connection with a machete attack on a man.