protein-inspector 1.13.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- protein_inspector-1.13.0/LICENSE +29 -0
- protein_inspector-1.13.0/NOTICE +60 -0
- protein_inspector-1.13.0/PKG-INFO +36 -0
- protein_inspector-1.13.0/README.md +599 -0
- protein_inspector-1.13.0/protein_inspector/__init__.py +35 -0
- protein_inspector-1.13.0/protein_inspector/__main__.py +108 -0
- protein_inspector-1.13.0/protein_inspector/capture.py +152 -0
- protein_inspector-1.13.0/protein_inspector/inspect.py +163 -0
- protein_inspector-1.13.0/protein_inspector/mcp_server.py +73 -0
- protein_inspector-1.13.0/protein_inspector/renderer.py +1656 -0
- protein_inspector-1.13.0/protein_inspector.egg-info/PKG-INFO +36 -0
- protein_inspector-1.13.0/protein_inspector.egg-info/SOURCES.txt +25 -0
- protein_inspector-1.13.0/protein_inspector.egg-info/dependency_links.txt +1 -0
- protein_inspector-1.13.0/protein_inspector.egg-info/entry_points.txt +3 -0
- protein_inspector-1.13.0/protein_inspector.egg-info/requires.txt +10 -0
- protein_inspector-1.13.0/protein_inspector.egg-info/top_level.txt +2 -0
- protein_inspector-1.13.0/py2Dmol/__init__.py +7 -0
- protein_inspector-1.13.0/py2Dmol/grid.py +296 -0
- protein_inspector-1.13.0/py2Dmol/resources/__init__.py +0 -0
- protein_inspector-1.13.0/py2Dmol/resources/bundles/py2Dmol.notebook.min.js +1 -0
- protein_inspector-1.13.0/py2Dmol/resources/viewer.html +342 -0
- protein_inspector-1.13.0/py2Dmol/viewer.py +4370 -0
- protein_inspector-1.13.0/setup.cfg +4 -0
- protein_inspector-1.13.0/setup.py +108 -0
- protein_inspector-1.13.0/tests/test_capture.py +60 -0
- protein_inspector-1.13.0/tests/test_morph.py +222 -0
- protein_inspector-1.13.0/tests/test_renderer.py +993 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Two notices, because this repository is two pieces of work.
|
|
2
|
+
|
|
3
|
+
The viewer is py2Dmol, by Sergey Ovchinnikov, under the notice below. It is
|
|
4
|
+
reproduced verbatim and unchanged; it is the whole of what that licence asks.
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* ----------------------------------------------------------------------------
|
|
8
|
+
* "THE BEER-WARE LICENSE" (Revision 42):
|
|
9
|
+
* <so3@mit.edu> wrote this file. As long as you retain this notice you
|
|
10
|
+
* can do whatever you want with this stuff. If we meet some day, and you think
|
|
11
|
+
* this stuff is worth it, you can buy me a beer in return. Sergey Ovchinnikov
|
|
12
|
+
* ----------------------------------------------------------------------------
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
The Protein Inspector additions -- the inspection-manifest interface,
|
|
16
|
+
the annotation layers, the conformation morph, the partner toggle, the export
|
|
17
|
+
bundle and the Claude Science skill in claude-science-skill/ -- are released on
|
|
18
|
+
the same terms, so that the whole thing stays as free to reuse as the viewer it
|
|
19
|
+
is built on.
|
|
20
|
+
|
|
21
|
+
/*
|
|
22
|
+
* ----------------------------------------------------------------------------
|
|
23
|
+
* "THE BEER-WARE LICENSE" (Revision 42):
|
|
24
|
+
* Tadas Kluonis <https://github.com/tadaskluonis> wrote the Protein Inspector
|
|
25
|
+
* Inspector additions. As long as you retain this notice you can do whatever
|
|
26
|
+
* you want with this stuff. If we meet some day, and you think this stuff is
|
|
27
|
+
* worth it, you can buy me a beer in return. Tadas Kluonis
|
|
28
|
+
* ----------------------------------------------------------------------------
|
|
29
|
+
*/
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
Protein Inspector
|
|
2
|
+
==========================
|
|
3
|
+
|
|
4
|
+
This repository is derived from sokrypton/py2Dmol at revision
|
|
5
|
+
78c2d489d0b5c5d19accd9eeeef878c2868f5271.
|
|
6
|
+
Source: https://github.com/sokrypton/py2Dmol
|
|
7
|
+
|
|
8
|
+
The original BEER-WARE notice is retained verbatim in LICENSE, alongside a
|
|
9
|
+
second BEER-WARE notice covering the Protein Inspector additions (Tadas Kluonis). The
|
|
10
|
+
additions are deliberately on the SAME terms as the viewer they are built on,
|
|
11
|
+
so anyone allowed to reuse py2Dmol can reuse the whole thing without having to
|
|
12
|
+
work out where one ends and the other begins. The Protein Inspector
|
|
13
|
+
changes add a local-only immutable-mmCIF/inspection-manifest interface, typed
|
|
14
|
+
validation at the package boundary, semantic inspection layers, and hashed
|
|
15
|
+
HTML/JSON/SVG/PNG export. Arbitrary PDB/AFDB fetching is not part of the new
|
|
16
|
+
public interface; the legacy py2Dmol module remains included for attribution
|
|
17
|
+
and renderer reuse.
|
|
18
|
+
|
|
19
|
+
Attribution in exported bundles
|
|
20
|
+
-------------------------------
|
|
21
|
+
|
|
22
|
+
Every rendered HTML bundle inlines the py2Dmol viewer (~1 MB of minified
|
|
23
|
+
JavaScript), and minification strips the BEER-WARE notice from the source.
|
|
24
|
+
Since inspector 1.13 the renderer therefore writes the notice back into each
|
|
25
|
+
export -- as an HTML comment at the top of the file and as a visible credit
|
|
26
|
+
line at the foot of the page. Both notices travel: py2Dmol's, naming Sergey
|
|
27
|
+
Ovchinnikov with the upstream repository and pinned revision, and the Protein Inspector
|
|
28
|
+
one. A bundle is therefore as free to reuse as the code that produced it. The bundle is the artefact that travels,
|
|
29
|
+
so a notice kept only in this repository would not reach the person holding
|
|
30
|
+
the file.
|
|
31
|
+
|
|
32
|
+
Runtime dependencies:
|
|
33
|
+
|
|
34
|
+
- NumPy: BSD-3-Clause.
|
|
35
|
+
- Biopython: Biopython License Agreement (permissive BSD-style).
|
|
36
|
+
- IPython: BSD-3-Clause.
|
|
37
|
+
- gemmi (optional; used by the Claude Science skill to convert PDB input to
|
|
38
|
+
mmCIF): MPL-2.0. Not required by the renderer itself.
|
|
39
|
+
|
|
40
|
+
Code written in this repository rather than vendored:
|
|
41
|
+
|
|
42
|
+
- src/core/svg.js is a minimal 2D-context-to-SVG recorder described in its
|
|
43
|
+
own header as a canvas2svg port. It exports `window.C2S` for compatibility
|
|
44
|
+
with the canvas2svg API. If any of it is in fact derived from Gliffy's
|
|
45
|
+
canvas2svg (MIT) rather than written against its interface, that project is
|
|
46
|
+
owed an MIT notice here; the header should be made unambiguous either way.
|
|
47
|
+
- src/io/gif.js is a GIF89a encoder written here, deliberately in place of a
|
|
48
|
+
CDN library, so the notebook viewer loads nothing but py2Dmol's own
|
|
49
|
+
resources.
|
|
50
|
+
|
|
51
|
+
The reusable package must be distributed with LICENSE and this NOTICE.
|
|
52
|
+
setup.py declares `license_files=['LICENSE', 'NOTICE']` so a built wheel
|
|
53
|
+
carries both.
|
|
54
|
+
|
|
55
|
+
Package authorship: setup.py previously declared author 'sokrypton' with
|
|
56
|
+
so3@mit.edu and the py2Dmol URL as this package's home. That credited
|
|
57
|
+
generously but falsely -- it implied the upstream author wrote and endorsed
|
|
58
|
+
this derivative, and would have routed its bug reports to him. The package is
|
|
59
|
+
now authored as Tadas Kluonis, with py2Dmol listed as a project URL and
|
|
60
|
+
credited in LICENSE, here, and in every export.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: protein-inspector
|
|
3
|
+
Version: 1.13.0
|
|
4
|
+
Summary: Manifest-driven structural inspection bundles, built on py2Dmol.
|
|
5
|
+
Home-page: https://github.com/tadaskluonis/protein_inspector
|
|
6
|
+
Author: Tadas Kluonis
|
|
7
|
+
License: BEER-WARE
|
|
8
|
+
Project-URL: Upstream viewer (py2Dmol), https://github.com/sokrypton/py2Dmol
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.10
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
License-File: NOTICE
|
|
15
|
+
Requires-Dist: numpy>=1.24
|
|
16
|
+
Requires-Dist: ipython>=8.0
|
|
17
|
+
Requires-Dist: biopython>=1.81
|
|
18
|
+
Requires-Dist: gemmi>=0.6
|
|
19
|
+
Provides-Extra: mcp
|
|
20
|
+
Requires-Dist: mcp>=1.2; extra == "mcp"
|
|
21
|
+
Provides-Extra: capture
|
|
22
|
+
Requires-Dist: playwright>=1.40; extra == "capture"
|
|
23
|
+
Dynamic: author
|
|
24
|
+
Dynamic: classifier
|
|
25
|
+
Dynamic: description
|
|
26
|
+
Dynamic: description-content-type
|
|
27
|
+
Dynamic: home-page
|
|
28
|
+
Dynamic: license
|
|
29
|
+
Dynamic: license-file
|
|
30
|
+
Dynamic: project-url
|
|
31
|
+
Dynamic: provides-extra
|
|
32
|
+
Dynamic: requires-dist
|
|
33
|
+
Dynamic: requires-python
|
|
34
|
+
Dynamic: summary
|
|
35
|
+
|
|
36
|
+
Single-file interactive structure inspection bundles: annotation layers, conformation morphing and partner toggles over the py2Dmol viewer by Sergey Ovchinnikov, which is inlined into every export and credited there. Both parts are BEER-WARE (Revision 42). See NOTICE.
|