A package for ChatMol
Project description
ChatMol Python Package
ChatMol is a Python package that provides a seamless integration of large language models into PyMOL, enabling users to interact with PyMOL using natural language instructions. This robust tool simplifies PyMOL tasks and offers suggestions, explanations, and guidance on a wide range of PyMOL-related topics. ChatMol provides various interaction modes with PyMOL, including the PyMOL command line, Python, miniGUI chatbot, and web browsers.
Installation
pip install chatmol
Usage
Here are some examples of how to use the package:
import chatmol as cm
output_chatmol_llm = cm.chatlite("download chain A of 3wzm and color it by secondary structure") # use the chatmol llm, free and no API key required
print(output_chatmol_llm)
print(cm.defaul_client.gpt_model) # check the current ChatGPT model
output_chatgpt = cm.chat_with_gpt("download 4eb0 and highlight residue number 208") # use the GPT-3.5-turbo llm, API key required
print(output_chatgpt)
print(cm.defaul_client.claude_model) # check the current Claude model
output_claude = cm.chat_with_claude("download 1pga from rcsb and show a transprant surface") # use the claude llm, API key required
print(output_claude)
You can send results to PyMOL:
import chatmol as cm
ps = cm.start_pymol() # open a PyMOL session with XML-RPC server
ps.chatlite("download 1pga")
# send commands to PyMOL
ps.server.do("esmfold MTYKLILNGKTLKGETTTEAVDAATAEKVFKQYANDNGVDGEWTYDDATKTFTVTE, 1pga_esmfold") # make sure you have pymolfold plugin installed
enjoy!
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
Built Distribution
File details
Details for the file chatmol-0.2.0.tar.gz
.
File metadata
- Download URL: chatmol-0.2.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5ff518b22c209ab91968f65e481561cdd6cb4c07560e10c9e249c7c506abb87 |
|
MD5 | 4ee2979e30ff5d603de0830518ca788a |
|
BLAKE2b-256 | 84846e9682a65eea278f92404c0dece4379b2f220c4a98c0518a60e09615c1a9 |
File details
Details for the file chatmol-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: chatmol-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3162b5342cd7860d89cba344ab00a3e062680386c8359c713ffbdfb2888eeda2 |
|
MD5 | 5e65881634b46cc4a7ee80534c8595dc |
|
BLAKE2b-256 | 0f64ae9c3590c30ae8cd33bd5c1eaefc6e75111d4761080de5aef34b9b259fde |