cosmol-viewer 0.1.2.dev4__cp37-abi3-macosx_11_0_arm64.whl → 0.1.3.dev1__cp37-abi3-macosx_11_0_arm64.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,6 @@
1
+ Metadata-Version: 2.4
2
+ Name: cosmol-viewer
3
+ Version: 0.1.3.dev1
4
+ Summary: Molecular visualization tools
5
+ Author-email: 95028 <wjt@cosmol.org>
6
+ Project-URL: Repository, https://github.com/COSMol-repl/COSMol-viewer
@@ -0,0 +1,5 @@
1
+ cosmol_viewer-0.1.3.dev1.dist-info/METADATA,sha256=8AA5xBwZgfwJpYPfpVCsUgQgE5rhnbbaqcOlbSbBlis,208
2
+ cosmol_viewer-0.1.3.dev1.dist-info/WHEEL,sha256=aCJZ1_TowweRDOS2CdoZm6TuOJJGZtCD10G-Asa9J1M,102
3
+ cosmol_viewer/__init__.py,sha256=K33zoYpHqUVvpFdMVxmCtw4uKj9ZXrGuQD4D4DuUmjk,135
4
+ cosmol_viewer/cosmol_viewer.abi3.so,sha256=GClt7mzhC4S4MvDfrbIVE4RGGBiqCJQ8-RNA6OGsSmU,13790128
5
+ cosmol_viewer-0.1.3.dev1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: maturin (1.9.1)
2
+ Generator: maturin (1.9.4)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp37-abi3-macosx_11_0_arm64
@@ -1,57 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: cosmol-viewer
3
- Version: 0.1.2.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
- Project-URL: Repository, https://github.com/COSMol-repl/COSMol-viewer
8
-
9
- # COSMol-viewer
10
-
11
- A high-performance molecular visualization library built with Rust and WebGPU, designed for seamless integration into Python workflows.
12
-
13
- - ⚡ Fast: Native-speed rendering powered by Rust and GPU acceleration
14
-
15
- - 🧬 Flexible: Load molecules from .sdf, .pdb, and dynamically update 3D structures
16
-
17
- - 📓 Notebook-friendly: Fully supports Jupyter and Google Colab — ideal for education, research, and live demos
18
-
19
- - 🔁 Real-time updates: Update molecular coordinates on-the-fly for simulations or animations
20
-
21
- - 🎨 Customizable: Control styles, camera, and rendering settings programmatically
22
-
23
- # Installation
24
-
25
- ```sh
26
- pip install cosmol-viewer
27
- ```
28
-
29
- # Usage
30
-
31
- ```python
32
- from cosmol_viewer import Scene, Viewer, parse_sdf, Molecules
33
-
34
- # === Step 1: Load and render a molecule ===
35
- with open("molecule.sdf", "r") as f:
36
- sdf = f.read()
37
- mol = Molecules(parse_sdf(sdf)).centered()
38
-
39
- scene = Scene()
40
- scene.scale(0.1)
41
- scene.add_shape(mol, "mol")
42
-
43
- viewer = Viewer.render(scene) # Launch the viewer
44
-
45
- # === Step 2: Update the same molecule dynamically ===
46
- import time
47
-
48
- for i in range(1, 10): # Simulate multiple frames
49
- with open(f"frames/frame_{i}.sdf", "r") as f:
50
- sdf = f.read()
51
- updated_mol = Molecules(parse_sdf(sdf)).centered()
52
-
53
- scene.update_shape("mol", updated_mol)
54
- viewer.update(scene)
55
-
56
- time.sleep(0.033) # ~30 FPS
57
- ```
@@ -1,5 +0,0 @@
1
- cosmol_viewer-0.1.2.dev4.dist-info/METADATA,sha256=J9gGpYYo9AGMK836kzO_26rIBTk44c27OehRFYmI2ec,1647
2
- cosmol_viewer-0.1.2.dev4.dist-info/WHEEL,sha256=bvBWXmJ1sRdmcL179FNplEsnlpZSwkKYoKqDNVzdbSc,102
3
- cosmol_viewer/__init__.py,sha256=K33zoYpHqUVvpFdMVxmCtw4uKj9ZXrGuQD4D4DuUmjk,135
4
- cosmol_viewer/cosmol_viewer.abi3.so,sha256=DTgnWP7UCgCe2b9V0Qmxet574THGob5iJ0Jq-bvnN4M,8330944
5
- cosmol_viewer-0.1.2.dev4.dist-info/RECORD,,