cosmol-viewer 0.1.1.dev3__cp37-abi3-musllinux_1_2_x86_64.whl → 0.1.1.dev4__cp37-abi3-musllinux_1_2_x86_64.whl

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.

Potentially problematic release.


This version of cosmol-viewer might be problematic. Click here for more details.

Binary file
@@ -0,0 +1,58 @@
1
+ Metadata-Version: 2.4
2
+ Name: cosmol-viewer
3
+ Version: 0.1.1.dev4
4
+ Summary: Molecular visualization tools
5
+ Author-email: 95028 <wjt@cosmol.org>
6
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
7
+
8
+ # COSMol-viewer
9
+
10
+ A high-performance molecular visualization library built with Rust and WebGPU, designed for seamless integration into Python workflows.
11
+
12
+ - ⚡ Fast: Native-speed rendering powered by Rust and GPU acceleration
13
+
14
+ - 🧬 Flexible: Load molecules from .sdf, .pdb, and dynamically update 3D structures
15
+
16
+ - 📓 Notebook-friendly: Fully supports Jupyter and Google Colab — ideal for education, research, and live demos
17
+
18
+ - 🔁 Real-time updates: Update molecular coordinates on-the-fly for simulations or animations
19
+
20
+ - 🎨 Customizable: Control styles, camera, and rendering settings programmatically
21
+
22
+ # Installation
23
+
24
+ install with
25
+ ```sh
26
+ pip install cosmol-viewer==0.1.1.dev4
27
+ ```
28
+
29
+ # Usage
30
+
31
+ python:
32
+ ```python
33
+ from cosmol_viewer import Scene, Viewer, parse_sdf, Molecules
34
+
35
+ # === Step 1: Load and render a molecule ===
36
+ with open("molecule.sdf", "r") as f:
37
+ sdf = f.read()
38
+ mol = Molecules(parse_sdf(sdf)).centered()
39
+
40
+ scene = Scene.create_viewer()
41
+ scene.scale(0.1)
42
+ scene.add_shape(mol, "mol")
43
+
44
+ viewer = Viewer.render(scene) # Launch the viewer
45
+
46
+ # === Step 2: Update the same molecule dynamically ===
47
+ import time
48
+
49
+ for i in range(1, 10): # Simulate multiple frames
50
+ with open(f"frames/frame_{i}.sdf", "r") as f:
51
+ sdf = f.read()
52
+ updated_mol = Molecules(parse_sdf(sdf)).centered()
53
+
54
+ scene.update_shape("mol", updated_mol)
55
+ viewer.update(scene)
56
+
57
+ time.sleep(0.033) # ~30 FPS
58
+ ```
@@ -0,0 +1,6 @@
1
+ cosmol_viewer-0.1.1.dev4.dist-info/METADATA,sha256=mCFfDYwbZbtAF0JqE_85PUpNSLml9YuzGC8z_8l4lYU,1624
2
+ cosmol_viewer-0.1.1.dev4.dist-info/WHEEL,sha256=pheg3Xpum52-n4eKMibrpwc1a2jKZMySFkhUrt4md3Y,105
3
+ cosmol_viewer.libs/libgcc_s-1e52349c.so.1,sha256=Ani0u_W_tB8ESsFePO4D2mn2lrgWLhyFdw6RETxBTYM,437537
4
+ cosmol_viewer/__init__.py,sha256=K33zoYpHqUVvpFdMVxmCtw4uKj9ZXrGuQD4D4DuUmjk,135
5
+ cosmol_viewer/cosmol_viewer.abi3.so,sha256=qlvI9xFhGx7iBOyhGJ8yVXAvVbJ7IBtt0gtyJqlNPQc,19737825
6
+ cosmol_viewer-0.1.1.dev4.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: cosmol-viewer
3
- Version: 0.1.1.dev3
4
- Summary: Molecular visualization tools
5
- Author-email: 95028 <wjt@cosmol.org>
@@ -1,6 +0,0 @@
1
- cosmol_viewer-0.1.1.dev3.dist-info/METADATA,sha256=kYFeIedzlfj-SlNH2IUGFSUamKqGUdhLmuEY0cbw9oU,138
2
- cosmol_viewer-0.1.1.dev3.dist-info/WHEEL,sha256=pheg3Xpum52-n4eKMibrpwc1a2jKZMySFkhUrt4md3Y,105
3
- cosmol_viewer.libs/libgcc_s-1e52349c.so.1,sha256=Ani0u_W_tB8ESsFePO4D2mn2lrgWLhyFdw6RETxBTYM,437537
4
- cosmol_viewer/__init__.py,sha256=K33zoYpHqUVvpFdMVxmCtw4uKj9ZXrGuQD4D4DuUmjk,135
5
- cosmol_viewer/cosmol_viewer.abi3.so,sha256=NncVk8I_MBd9jXLAXPufkLUOiXSiQDWxWU1dxKvQ1Tw,19741921
6
- cosmol_viewer-0.1.1.dev3.dist-info/RECORD,,