This post has no new topics but just for my memo. I often want to read and write molecule ad hoc without writing them to file objects.
RDKit has two kinds of SDF reader one is SDMolSupplier and the other is ForwardSDMolSupplier and has a SDF writer SDWriter.
SDWriter supports StringIO and Forward SDSupplier supports BytesIO. So I can handle rdkit mol objects without writing sd files.
Here is an example.
I think this approach will be useful for creating web app which has SDF up-loader and returns files with some kinds of chemoinformatics operations :-)