If you say you got it for breeding than be happy he has such a good appetite. If a snake looks like its going to bite me I usually just grab a hide and cover his head (normally they will retract or ball up at this point) then once its in my hands It usually knows Im not food and calms down. The point is to let the snake know your not food.
P.S: I highly doubt the snake tried to eat you.