PymolPy3
The package enables the use of PyMOL commands directly in Python 3 scripts.
Install / Use
/learn @carbonscott/PymolPy3README
What's pymolPy3?
The package enables the use of PyMOL commands directly in Python 3 scripts. NO APIs are requierd.
The length of source code is only 32 lines, but the example has a size of 29MB.
What can it do?
Install pymolPy3
pip install pymolPy3 --user or pip install git+https://github.com/carbonscott/pymolPy3 --upgrade --user
Basic usage
Initializ pymol
import pymolPy3
# Launch pymol with GUI
pm = pymolPy3.pymolPy3()
OR
import pymolPy3
# Launch pymol without GUI
pm = pymolPy3.pymolPy3(0)
Load a PDB structure
pdb = '1f88'
pm(f"load {pdb}.pdb")
Run PyMOL command in pm() -- it's a wrapper
pm(f"...")
# ~~~
# |
# |_______ A string representing PyMOL command.
Examples
The sample script align.view.py under the examples directory would produces
the figure below.

Related Skills
node-connect
339.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
