Skip to main content

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

chatmol-0.2.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

chatmol-0.2.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file chatmol-0.2.2.tar.gz.

File metadata

  • Download URL: chatmol-0.2.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for chatmol-0.2.2.tar.gz
Algorithm Hash digest
SHA256 1ae325c41b406e5f8ede58b28ae0edc30b112c8f70a05921f0edb469eda4b79c
MD5 e1e7cef3cd475b97c77ab969c23918d1
BLAKE2b-256 c0020e39f44f119974b9ba10f300b63ebc1bfe778be1da8205298fedd02e6e98

See more details on using hashes here.

File details

Details for the file chatmol-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: chatmol-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for chatmol-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0f2241f2b32e2369fd70f3bf9f80a230b00adae10a38a415e3bab9b3aef3d55a
MD5 fc84b2a86b1e38c92d0ed9e7d3bc762c
BLAKE2b-256 06ace788d8790c7a9d8b658f98491a73d79a6047cff441e5a24374c652ab1a20

See more details on using hashes here.

Supported by

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