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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymolPy3-0.1.2.tar.gz.
File metadata
- Download URL: pymolPy3-0.1.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fae7df2d87ff801085e94feb133e1c0d9d4514e87c7b7f9dd0ebdfba1b03014
|
|
| MD5 |
b2b513f5dcc2e4a0959fd2f4e9e037cc
|
|
| BLAKE2b-256 |
150548360d5507063675bfe514fb24d2aa991bfab3e26504845abce66bfc27c5
|
File details
Details for the file pymolPy3-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pymolPy3-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86dfc05dfd8d961460dbf3852e3055dc8287aba936128e17e6e5c0c30d154649
|
|
| MD5 |
70b38478c8db8a0010b3d3d9513584b8
|
|
| BLAKE2b-256 |
4af409a448e2ae29c134146c2ded899029c14083923923a1aa1d638fd963f2f8
|