streamlit-ketcher

Chemical molecule custom component for Streamlit apps

APACHE-2.0 License

Stars
7
Committers
3

๐Ÿงช Streamlit Ketcher

Streamlit components that adds the ability to draw chemical compounds. This is a critical dependency for most drug discovery / drug design / cheminformatics applications.

It is based on Ketcher.

Installation

pip install streamlit-ketcher

Getting started

import streamlit as st

from streamlit_ketcher import st_ketcher

molecule = st.text_input("Molecule", "CCO")
smile_code = st_ketcher(molecule)
st.markdown(f"Smile code: ``{smile_code}``")

Demo

Badges
Extracted from project README's
GitHub PyPI Open in Streamlit Preview