Streaming skeletal data into Blender

Totally new to Blender and I’m trying to use real skeletal data to control an animated character. All I could find was to create a bvh file from that data and import it into Blender, but is there any way to make the movement happen in realtime? let’s say a python script that reads realtime motion data from an specific port and apply the new locations to different joints. Is it possible to do so in blender?