>Given what happened in Sweden when he was kicked out of the Ecuadorian embassy and the UK arrested him for extradition to the US, I believe the Swedish accusations were made, and the prosecutions were done, in good faith.
Just picking a nit here, but IIRC Assange was not arrested by UK authorities to be extradited to the US (that's just a "bonus" for the US), but because he broke UK law by "jumping bail,"[0] which is a crime in the UK.
There are a raft of other details/issues around Assange and his Swedish/British/Ecuadorian odyssey, and those have been endlessly discusssed/litigated in the press.
I won't address those issues, as I don't think it would add productively to this discussion.
Assange did violate the terms of his bail in the UK and was convicted and sentenced accordingly, regardless of other issues.
[0] https://en.wikipedia.org/wiki/Bail_in_the_United_Kingdom
Edit: Clarified my thoughts.