How Can I Program Blender?

I asked in the Python area but noone responded.

Is it possible to use Python to create a text object in blender on the
fly?

I want to make a graphic that automatically is updated using Python.
But I don’t see how it is possible to make a text object?

you cannot do that with the present API

Martin