Read or Write voxel in python

Hi !

I want to know if a way to read or write voxel density with python in blender ? From a smoke domain for example or a volume object with volume texture for rendering. Idealy , renderable and viewport visible.

The only workaround I thinking about ( but not tested yet) is writing/overwriting a temporary supported voxel file but sound ugly ( and not visible in viewport ).

Any idea ?

Maybe you could have a plane blocking the camera and write alpha values onto it in a texture based on view vectors.
Voxel render is going to be a tricky thing to try to do through the blender python api.