A Swedish court has convicted US rapper A$AP Rocky of assault and handed down a suspended sentence following a high-profile trial.

The court also convicted two members of A$AP Rocky's entourage of the same crime.

None of the three, who had all pleaded not guilty, were in court for the hearing.

"In an overall assessment the court finds that the assault has not been of such a serious nature that a prison sentence must be chosen," the court said in a statement.

"The defendants are therefore sentenced to conditional sentences."

A$AP Rocky, whose real name is Rakim Mayers, was detained on 3 July in connection with a street brawl on 30 June and charged with assault causing actual bodily harm.

He was released from custody in Sweden, pending the verdict, and allowed to leave the country.

His arrest and trial led US President Donald Trump to question the fairness of Sweden's legal system.

The court said the assault would have carried a two-month sentence but the fact that the defendants had no prior convictions over the past five years and had already spent time in custody awaiting their trial meant they would not serve further time in prison or pay any fine.

During the trial, the rapper said he acted in self-defence.

The court ruled that the artist and the convicted members of his entourage must pay damages to the plaintiff of 12,500 Swedish crowns (€1,164) along with some of the costs for his legal representation.

The sentence was suspended for two years, so if they commit another crime, this conviction could be taken into consideration.