Skip to main content

Streamlit's chem2dview component

Project description

streamlit-custom-component

Streamlit component that allows you to do X

Installation instructions

pip install streamlit-chem2dview

Usage instructions

import streamlit as st

from chem2dview import Chem2DIMG

mol =   """
  Ketcher  7 425 9492D 1   1.00000     0.00000     0

 30 34  0  0  0  0  0  0  0  0999 V2000
   11.4348   -3.9251    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   13.1652   -3.9246    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   12.3016   -3.4250    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   13.1652   -4.9255    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   11.4348   -4.9300    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   12.3038   -5.4250    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   14.0312   -5.4255    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   15.7615   -5.4239    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   14.8976   -4.9248    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   15.7621   -6.4248    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   14.0319   -6.4305    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   14.9012   -6.9249    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   16.6282   -6.9248    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   18.3585   -6.9232    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   17.4946   -6.4241    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   18.3591   -7.9241    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   16.6288   -7.9298    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   17.4982   -8.4242    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   19.2252   -8.4241    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   20.9555   -8.4225    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   20.0916   -7.9234    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   20.9561   -9.4234    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   19.2258   -9.4291    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   20.0951   -9.9235    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   13.3247   -7.1376    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   12.8785   -8.8094    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   13.5841   -8.1041    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   11.9115   -8.5509    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   12.3539   -6.8781    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   11.6513   -7.5899    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
  3  1  2  0     0  0
  1  5  1  0     0  0
  5  6  2  0     0  0
  6  4  1  0     0  0
  4  2  2  0     0  0
  2  3  1  0     0  0
  4  7  1  0     0  0
  9  7  2  0     0  0
  7 11  1  0     0  0
 11 12  2  0     0  0
 12 10  1  0     0  0
 10  8  2  0     0  0
  8  9  1  0     0  0
 10 13  1  0     0  0
 15 13  2  0     0  0
 13 17  1  0     0  0
 17 18  2  0     0  0
 18 16  1  0     0  0
 16 14  2  0     0  0
 14 15  1  0     0  0
 16 19  1  0     0  0
 21 19  2  0     0  0
 19 23  1  0     0  0
 23 24  2  0     0  0
 24 22  1  0     0  0
 22 20  2  0     0  0
 20 21  1  0     0  0
 11 25  1  0     0  0
 27 25  2  0     0  0
 25 29  1  0     0  0
 29 30  2  0     0  0
 30 28  1  0     0  0
 28 26  2  0     0  0
 26 27  1  0     0  0
M  END
"""
Chem2DSvg(mol)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit_chem2dview-0.0.2.tar.gz (7.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_chem2dview-0.0.2-py3-none-any.whl (7.8 MB view details)

Uploaded Python 3

File details

Details for the file streamlit_chem2dview-0.0.2.tar.gz.

File metadata

  • Download URL: streamlit_chem2dview-0.0.2.tar.gz
  • Upload date:
  • Size: 7.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for streamlit_chem2dview-0.0.2.tar.gz
Algorithm Hash digest
SHA256 01aeabe711f967e6658f0b6a47d2db1940b9b6c039c6846e662b82cd95cc9731
MD5 3d08546bb025a55be8d312fa137008a7
BLAKE2b-256 684d8822183db04e16f8f44e3c7f96ea25dfe10f298cbef1782a475b134c8b22

See more details on using hashes here.

File details

Details for the file streamlit_chem2dview-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_chem2dview-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 55d53d3a2b01fb20d4a58fe72a7f1b2ac76d7cee0a206f877a57aeca99c0b3d4
MD5 91b6a490d9dd592dc38ce4452d20d630
BLAKE2b-256 383cec7db3feb2ad67893e97395a34df7f899a21fc7be0b5ee1677b52dc14f9b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page