Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
'''
Chemical data about a molecule.
Molecules are defined by SMILES strings. Can work out logP values, Lipinski's
rules, etc...
Uses rdkit
'''
daemon off;
worker_processes 1;
events {
worker_connections 1024;
}
http {
[program:zegami_uwsgi]
;the socket directive is the unix socket which supervisor uses to communicate with nginx
command=/opt/zegami_python/anaconda/bin/uwsgi
--uid=zegami
--gid=zegami
--chdir=/opt/zegami
--manage-script-name
--mount=/zegami=dzapi.app.application:app
--socket=/tmp/zegami-uwsgi.sock
--chmod-socket=666
import xml.etree.ElementTree as ET
import sys
# Main
def process(stream, prefix) :
items = []