Skip to main content

This package is intended to be used as a Molecule Draw component on Streamlit applications. It uses jsme-react.

Build

pypi-version

Source Code

GitHub-Repo

Python Versions

pyversions

Dependencies

Streamlit JSME

License

license

Downloads

download

Installation

pip install StreamJSME

Use

from StreamJSME import StreamJSME
from rdkit import Chem
from rdkit.Chem import Descriptors
from rdkit.Chem import Draw
from io import BytesIO
import streamlit as st
st.title('✍️ molecules with JSME in Streamlit 🤩')
# Create a first plot with an input SMILES, by default smiles = 'C'
update_smiles = StreamJSME(smiles='CCC')

st.subheader('Using the draw molecule inside RDKit')
st.write(f"New SMILES = {update_smiles}")
mol = Chem.MolFromSmiles(update_smiles)
st.write(f"MolLogP = {Descriptors.MolLogP(mol)}\n\nTPSA = {Descriptors.TPSA(mol)}")

st.subheader('Getting the RDKit image')
img = Draw.MolToImage(mol)
bio = BytesIO()
img.save(bio, format='png')
st.image(img)

If trying to run the Streamlit application you get OSError: [Errno 28] inotify watch limit reached, just use the flag --server.fileWatcherType none:

streamlit run app.py --server.fileWatcherType none

Issues

If you have found a bug, please open an issue on the GitHub Issues.

Discussion

If you have questions on how to use StreamJSME, or if you want to give feedback or share ideas and new features, please head to the GitHub Discussions.

Acknowledgment

See the full list of contributors in the CONTRIBUTORS.md file.

Metadata

Release files for StreamJSME 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for StreamJSME 0.1.1
File Size Uploaded Provenance
streamjsme-0.1.1.tar.gz 100.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for StreamJSME 0.1.1
File Interpreter ABI Platform
streamjsme-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 201.2 kB

Release files / streamjsme-0.1.1.tar.gz

Download URL streamjsme-0.1.1.tar.gz
Size 100.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f790747ebb5fb28b2119c0b9fb336eda94392ae475103f9a08c6e7c1ae05bccd
BLAKE2b-256 checksum
How to use checksums
9a035729a8b185c20f8c1457a2625d8ed5294e81ef5da2b641a38591af91f9c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Release files / streamjsme-0.1.1-py3-none-any.whl

Download URL streamjsme-0.1.1-py3-none-any.whl
Size 100.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22302cbc58d46cf703fed14b5094619f66c4fb8487c1d83b1b177bcb80817e16
BLAKE2b-256 checksum
How to use checksums
fb3cc5de7c12947967503d42829e9c109b0ecac48ab69694fb4483abdea5e73c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Security for StreamJSME 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page