## 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?
[![](examples/thumbnail.png)](https://youtu.be/BGi00Tl-9L4)
## Install `pymolPy3`
`pip install pymolPy3 --user`
## Basic usage
### Initializ pymol
```Python
import pymolPy3
# Launch pymol with GUI
pm = pymolPy3.pymolPy3()
```
OR
```Python
import pymolPy3
# Launch pymol without GUI
pm = pymolPy3.pymolPy3(0)
```
### Load a PDB structure
```Python
pdb = '1f88'
pm(f"load {pdb}.pdb")
```
### Run PyMOL command in `pm()` -- it's a wrapper
```Python
pm(f"...")
# ~~~
# |
# |_______ A string representing PyMOL command.
```
## Examples
The sample script `align.view.py` under the `examples` directory would produces
the figure below.
![](./examples/align.view.png)
Raw data
{
"_id": null,
"home_page": "https://github.com/carbonscott/pymolPy3",
"name": "pymolPy3",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "PDB,structure biology,protein,molecular graphics",
"author": "Cong Wang",
"author_email": "wangimagine@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/15/05/48360d5507063675bfe514fb24d2aa991bfab3e26504845abce66bfc27c5/pymolPy3-0.1.2.tar.gz",
"platform": "",
"description": "## What's `pymolPy3`?\n\nThe package enables the use of PyMOL commands directly in Python 3 scripts.\nNO APIs are requierd. \n\nThe length of source code is only 32 lines, but the example has a size of 29MB. \n\nWhat can it do?\n\n[![](examples/thumbnail.png)](https://youtu.be/BGi00Tl-9L4)\n\n\n## Install `pymolPy3`\n\n`pip install pymolPy3 --user`\n\n## Basic usage\n\n### Initializ pymol\n\n```Python\nimport pymolPy3\n\n# Launch pymol with GUI\npm = pymolPy3.pymolPy3()\n```\n\nOR\n\n```Python\nimport pymolPy3\n\n# Launch pymol without GUI\npm = pymolPy3.pymolPy3(0)\n```\n\n### Load a PDB structure\n\n```Python\npdb = '1f88'\n\npm(f\"load {pdb}.pdb\")\n```\n\n### Run PyMOL command in `pm()` -- it's a wrapper\n\n```Python\npm(f\"...\")\n# ~~~\n# |\n# |_______ A string representing PyMOL command.\n```\n\n## Examples\n\nThe sample script `align.view.py` under the `examples` directory would produces\nthe figure below. \n\n![](./examples/align.view.png)\n\n\n",
"bugtrack_url": null,
"license": "",
"summary": "A PyMOL wrapper in Python3.",
"version": "0.1.2",
"project_urls": {
"Homepage": "https://github.com/carbonscott/pymolPy3"
},
"split_keywords": [
"pdb",
"structure biology",
"protein",
"molecular graphics"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4af409a448e2ae29c134146c2ded899029c14083923923a1aa1d638fd963f2f8",
"md5": "70b38478c8db8a0010b3d3d9513584b8",
"sha256": "86dfc05dfd8d961460dbf3852e3055dc8287aba936128e17e6e5c0c30d154649"
},
"downloads": -1,
"filename": "pymolPy3-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "70b38478c8db8a0010b3d3d9513584b8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 3346,
"upload_time": "2020-12-18T02:53:36",
"upload_time_iso_8601": "2020-12-18T02:53:36.696281Z",
"url": "https://files.pythonhosted.org/packages/4a/f4/09a448e2ae29c134146c2ded899029c14083923923a1aa1d638fd963f2f8/pymolPy3-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "150548360d5507063675bfe514fb24d2aa991bfab3e26504845abce66bfc27c5",
"md5": "b2b513f5dcc2e4a0959fd2f4e9e037cc",
"sha256": "5fae7df2d87ff801085e94feb133e1c0d9d4514e87c7b7f9dd0ebdfba1b03014"
},
"downloads": -1,
"filename": "pymolPy3-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "b2b513f5dcc2e4a0959fd2f4e9e037cc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 2337,
"upload_time": "2020-12-18T02:53:37",
"upload_time_iso_8601": "2020-12-18T02:53:37.873302Z",
"url": "https://files.pythonhosted.org/packages/15/05/48360d5507063675bfe514fb24d2aa991bfab3e26504845abce66bfc27c5/pymolPy3-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2020-12-18 02:53:37",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "carbonscott",
"github_project": "pymolPy3",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pymolpy3"
}