yowl 0.1.0

Primitives for reading and writing the SMILES language
Documentation
1
2
3
4
5
6
7
8
import json

with open("all_smiles", "r") as fd:
    data = json.load(fd)

with open("parsed_smiles.smi", "w") as fd:
    for item in data:
        fd.write(item["smiles"] + "\n")