A PyMOL wrapper in Python3.
Project description
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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pymolPy3-0.1.2.tar.gz
(2.3 kB
view hashes)