Today in court ... the judge told the rapper, "I didn't want to do this, but you made me do this" -- and then he was sentenced to 3 to 6 months in a city jail.
Sources in Meek's entourage tell us the rapper thinks the D.A. had a vendetta against him, and wanted to take him down because he has an album dropping in September.
Meek begged the judge for mercy, saying ... "This will be extremely damaging to my life."
Too little too late.