A federal judge on Monday sentenced the Chinese businesswoman caught trespassing at President Donald Trump’s Mar-a-Lago resort to eight months in prison.

Under Judge Roy Altman’s ruling, Yujing Zhang, 33, will only serve about one more week behind bars due to credit received for time served since her March 30 arrest.

Upon completing the sentence, Altman ordered Zhang be turned over to immigration officials for deportation.

The 33-year-old Shanghai consultant was convicted in September for sneaking into the Palm Beach resort and lying to Secret Service Agents who confronted her.

When Zhang was arrested, she was carrying four cell phones, a computer and an external hard drive, leading to speculation she could be a spy.

She was never charged with espionage, though, and text messages presented at trial suggest she is obsessed with Trump.

The president was at a golf course when Zhang arrived at Mar-a-Lago.

Leading up to Monday’s ruling, prosecutors had requested Zhang gets 18 months prison time.

In addition to the lighter sentence, Zhang was also given two years of supervised release.

With Post wires