Caleb O'Neil, 19, has been suspended for filming his professor's anti-Trump rant at Orange Coast College last month

A Republican student who filmed his professor describing Trump's election win as an 'act of terrorism' has been suspended by his college.

Caleb O'Neil filmed Olga Perez Stable Cox, 66, labeling the president a 'white supremacist' during a psychology and human sexuality class at Orange Coast College, California, in December.

He anonymously sent the clip to the college's Republican body for it to be shared online, prompting a barrage of complaints against Cox who critics said should not thrust her political views on students.

On Wednesday Caleb, a 19-year-old sophomore at the school, revealed his identity and that he had been suspended for sharing the video.

The university issued a letter complaining that he had violated its student code of conduct by filming Cox without her knowledge.

Unless he writes an essay explaining why he shared the video and apologizes to Cox, he will be excluded for an entire semester.

The teenager's lawyer Bill Becker admonished the college's decision, describing it at a news conference as a 'leftist attack' on conservatives.

Scroll down for video

Cox, 66, was filmed describing the president as a 'white supremacist' and called Vice President Mike Pence 'one of the most anti-gay' people in the country. She said their election victory was an 'act of terrorism'

'We think this is a clear example of unconstitutional viewpoint discrimination that targets conservatives and we’re going to challenge it,' he said.

He has appealed the suspension and can continue to attend class until a final decision is reached.

On Wednesday, he said he began filming the teacher to gather proof of her left-leaning views.

He also said he was convinced she would begin grading him harshly purely because he was a Trump fan.

Olga Perez Stable Cox said she received death threats after the video went viral

'I pulled my phone out to record it because I was honestly scared that it would affect my grades because she knew I was a Trump supporter.'

He previously told the College's Republicans he felt 'censored and bullied if I did not agree with her opinions'.

Cox claimed she received death threats from Trump fans after her rant was posted on YouTube by the Orange Coast College's Republican Group.

In the lecture, she told students: 'Our nation is divided, we have been assaulted, it’s an act of terrorism.'

She described Trump as a 'white supremacist' and said Vice President Mike Pence was 'one of the most anti-gay people in the country'.

Cox later defended her comments, saying she was only repeating what people around the country were feeling.

'My privacy has been demolished. And that’s awful. I’m a very private person. And it’s very scary,' she complained to The Orange County Register about being filmed without her knowledge.

The college did not respond to requests for comment on Thursday and has not revealed whether or not she will face any disciplinary action over the incident.

The school's Republican body, which filed a complaint against her when the footage was shared last year, is campaigning for Caleb to be spared punishment.

In a letter from the college that was seen by Campus Reform, Caleb was told he had to apologize to the teacher or write an essay about the incident if he didn't want to be exluded

Caleb revealed himself at a press conference on Wednesday to tell how he planned to fight his suspension

Its president, Joshua Recalde-Martinez, described her rant as 'indoctrination' last year and was on hand at the press conference in California on Wednesday to support Caleb.

The group has also launched the hashtag 'JusticeForCaleb' on Facebook and describes the college's decision as an 'assault on their basic amendment rights'.

'Caleb was so afraid of being targeted by his professor for being a Trump supporter, that he felt compelled to show the world what's really going on at our nation's college classrooms.

'Orange Coast College just suspended him for a year, and is forcing him to write an apology letter to his professor and to the school. He may be expelled if he doesn't comply with all of the requirements they sent out for him.

'Please share if you're against this blatant assault on first amendment rights by OCC,' a post in his support read.