I have a python application which creates 3d models. It is already able to export these models as FBX, DAE, OBJ etc. In the vast majority of cases, the next step in the pipeline is touching up the model inside blender, which means I then have to import the models in blender from the said export formats.
However, some blender-specific features aren't possible to express in these file formats. The obvious idea to solve this would be exporting directly to a blend file instead of to a third-part unrelated file format.
Researching ways to do this, I've found http://wiki.blender.org/index.php/User%3aIdeasman42/BlenderAsPyModule which seems like one approach. However, this seems to require a custom-built blender.
I have also found the binary specifications for the file format, notably http://wiki.blender.org/index.php/Dev:Source/Data_Structures/DNAStructs and (some other links which I'm not allowed to include in the post atm).
... so obviously it'd be possible (albeit cumbersome) to write an export function with a bit of trial an error.
However, before I do this: Has this already been done? Is there an existing library/API out there for producing blend files outside blender?