My T is psychodynamic based with strong boundaries, and she gives hugs...
You just have to ask.
For current T, I asked her if she gives hugs at our first session. She said yes. When I was ready for a hug, we talked about it first. Then after 2 sessions, I got the courage and asked her for a hug and we've hugged after every session since. I also asked my T about emailing. She said she normally doesn't do it with clients, but we would give it a try. If I didn't ask, I wouldn't have either.
My Pdoc. A very intimidating woman. Pretty, but just seems a little rigid, strict, serious, etc. It took me a year to ask her for a hug. And guess what?!?! She said yes. She said so long as she feels it's beneficial for the client, it's okay!
Your T might say no. It is an option. But just because you think s/he would say no doesn't mean they will. Is the fear so great that you will risk never knowing? How long might you miss out on the possibility of hugs?
To make it a little less personal, I wouldn't directly ask for a hug. I would ask it in a more general way (i.e. "Do you have any boundaries concerning hugs?" or even more simply "Do you allow hugs"). That way you know that if s/he does decline, it has nothing to do with you.
P.S. I am also one of "those" clients that get attached to their Ts/people and guess what, my weekly hug doesn't harm me.