molnova 4.2.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.
molnova-4.2.0/LICENSE ADDED
@@ -0,0 +1,17 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 MolNova Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
molnova-4.2.0/PKG-INFO ADDED
@@ -0,0 +1,43 @@
1
+ Metadata-Version: 2.4
2
+ Name: molnova
3
+ Version: 4.2.0
4
+ Summary: MolNova v4.2 - High-performance native Rust molecular & volumetric desktop visualizer launcher
5
+ Author: MolNova Team
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/yangdw2024/MolNova
8
+ Project-URL: Repository, https://github.com/yangdw2024/MolNova
9
+ Project-URL: Releases, https://github.com/yangdw2024/MolNova/releases
10
+ Keywords: molecular-visualization,computational-chemistry,vmd,pdb,wgpu,rust
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Environment :: Win32 (MS Windows)
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Operating System :: Microsoft :: Windows :: Windows 10
16
+ Classifier: Operating System :: Microsoft :: Windows :: Windows 11
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Rust
19
+ Classifier: Topic :: Scientific/Engineering :: Chemistry
20
+ Classifier: Topic :: Scientific/Engineering :: Visualization
21
+ Requires-Python: >=3.9
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Dynamic: license-file
25
+
26
+ # MolNova
27
+
28
+ **MolNova v4.2** is a pure native Rust (`wgpu 30` + `egui 0.37` + `winit 0.30`) Windows desktop molecular and volumetric visualizer designed for 10M/100M-atom streaming, trajectories (`XTC`/`TRR`/`DCD`/`LAMMPS`/`XDATCAR`), volumetric grids (`CUBE`/`DX`/`CCP4`/`PHI`/`XSF`), and organic semiconductor (OSC) morphology analysis.
29
+
30
+ ## Quick Start (Python / pip)
31
+
32
+ ```bash
33
+ pip install molnova
34
+ molnova
35
+ ```
36
+
37
+ On first launch on Windows x64, `molnova` automatically downloads the official `v4.2.0` portable binary from [GitHub Releases](https://github.com/yangdw2024/MolNova/releases/tag/v4.2.0), verifies its SHA-256 checksum, caches it under `%LOCALAPPDATA%\MolNova\v4.2.0`, and launches `molnova.exe` with any CLI arguments forwarded.
38
+
39
+ ### Options
40
+
41
+ - `molnova [file.pdb ...]` — launch MolNova (optionally opening structure/trajectory/project files)
42
+ - `molnova --download-only` — download and verify the Windows binary without launching the GUI
43
+ - `molnova --version` — print wrapper & target release version
@@ -0,0 +1,18 @@
1
+ # MolNova
2
+
3
+ **MolNova v4.2** is a pure native Rust (`wgpu 30` + `egui 0.37` + `winit 0.30`) Windows desktop molecular and volumetric visualizer designed for 10M/100M-atom streaming, trajectories (`XTC`/`TRR`/`DCD`/`LAMMPS`/`XDATCAR`), volumetric grids (`CUBE`/`DX`/`CCP4`/`PHI`/`XSF`), and organic semiconductor (OSC) morphology analysis.
4
+
5
+ ## Quick Start (Python / pip)
6
+
7
+ ```bash
8
+ pip install molnova
9
+ molnova
10
+ ```
11
+
12
+ On first launch on Windows x64, `molnova` automatically downloads the official `v4.2.0` portable binary from [GitHub Releases](https://github.com/yangdw2024/MolNova/releases/tag/v4.2.0), verifies its SHA-256 checksum, caches it under `%LOCALAPPDATA%\MolNova\v4.2.0`, and launches `molnova.exe` with any CLI arguments forwarded.
13
+
14
+ ### Options
15
+
16
+ - `molnova [file.pdb ...]` — launch MolNova (optionally opening structure/trajectory/project files)
17
+ - `molnova --download-only` — download and verify the Windows binary without launching the GUI
18
+ - `molnova --version` — print wrapper & target release version
@@ -0,0 +1,38 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "molnova"
7
+ version = "4.2.0"
8
+ description = "MolNova v4.2 - High-performance native Rust molecular & volumetric desktop visualizer launcher"
9
+ readme = "README.md"
10
+ license = {text = "MIT"}
11
+ requires-python = ">=3.9"
12
+ authors = [
13
+ {name = "MolNova Team"}
14
+ ]
15
+ keywords = ["molecular-visualization", "computational-chemistry", "vmd", "pdb", "wgpu", "rust"]
16
+ classifiers = [
17
+ "Development Status :: 5 - Production/Stable",
18
+ "Environment :: Win32 (MS Windows)",
19
+ "Intended Audience :: Science/Research",
20
+ "License :: OSI Approved :: MIT License",
21
+ "Operating System :: Microsoft :: Windows :: Windows 10",
22
+ "Operating System :: Microsoft :: Windows :: Windows 11",
23
+ "Programming Language :: Python :: 3",
24
+ "Programming Language :: Rust",
25
+ "Topic :: Scientific/Engineering :: Chemistry",
26
+ "Topic :: Scientific/Engineering :: Visualization",
27
+ ]
28
+
29
+ [project.urls]
30
+ Homepage = "https://github.com/yangdw2024/MolNova"
31
+ Repository = "https://github.com/yangdw2024/MolNova"
32
+ Releases = "https://github.com/yangdw2024/MolNova/releases"
33
+
34
+ [project.scripts]
35
+ molnova = "molnova.cli:main"
36
+
37
+ [tool.setuptools.packages.find]
38
+ where = ["src"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ """MolNova v4.2 Python launcher package."""
2
+
3
+ __version__ = "4.2.0"
@@ -0,0 +1,114 @@
1
+ """CLI launcher for the native MolNova v4.2 Windows desktop application."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import hashlib
6
+ import os
7
+ import platform
8
+ import shutil
9
+ import subprocess
10
+ import sys
11
+ import urllib.request
12
+ import zipfile
13
+ from pathlib import Path
14
+
15
+ VERSION = "4.2.0"
16
+ ASSET_URL = (
17
+ f"https://github.com/yangdw2024/MolNova/releases/download/v{VERSION}/MolNova-portable.zip"
18
+ )
19
+ ASSET_SHA256 = "d3591034aa0930bb9956b0abbbfb1ae8499f6f611daa3175459d9be0e293e3f0"
20
+
21
+
22
+ def _default_cache_dir() -> Path:
23
+ local_app_data = os.environ.get("LOCALAPPDATA") or str(Path.home() / "AppData" / "Local")
24
+ return Path(local_app_data) / "MolNova" / f"v{VERSION}"
25
+
26
+
27
+ def _find_exe(root: Path) -> Path | None:
28
+ if not root.exists():
29
+ return None
30
+ for candidate in (root / "molnova.exe", root / "MolNova-portable" / "molnova.exe"):
31
+ if candidate.is_file():
32
+ return candidate
33
+ for match in root.rglob("molnova.exe"):
34
+ if match.is_file():
35
+ return match
36
+ return None
37
+
38
+
39
+ def _sha256_file(path: Path) -> str:
40
+ digest = hashlib.sha256()
41
+ with path.open("rb") as fh:
42
+ for chunk in iter(lambda: fh.read(1024 * 1024), b""):
43
+ digest.update(chunk)
44
+ return digest.hexdigest().lower()
45
+
46
+
47
+ def ensure_binary(cache_dir: Path | None = None) -> Path:
48
+ """Locate cached/installed molnova.exe or download and verify the official release zip."""
49
+ if sys.platform != "win32":
50
+ raise RuntimeError(
51
+ f"MolNova v{VERSION} native desktop binary is currently built for Windows x64 "
52
+ f"(detected {platform.system()} {platform.machine()}). "
53
+ "See https://github.com/yangdw2024/MolNova for source build instructions."
54
+ )
55
+
56
+ local_app_data = os.environ.get("LOCALAPPDATA") or str(Path.home() / "AppData" / "Local")
57
+ installed_exe = Path(local_app_data) / "Programs" / "MolNova" / "molnova.exe"
58
+ if installed_exe.is_file():
59
+ return installed_exe
60
+
61
+ target_dir = cache_dir or _default_cache_dir()
62
+ existing = _find_exe(target_dir)
63
+ if existing is not None:
64
+ return existing
65
+
66
+ target_dir.mkdir(parents=True, exist_ok=True)
67
+ zip_path = target_dir / "MolNova-portable.zip"
68
+ tmp_zip = target_dir / "MolNova-portable.zip.part"
69
+
70
+ print(f"Downloading MolNova v{VERSION} from {ASSET_URL} ...", file=sys.stderr)
71
+ urllib.request.urlretrieve(ASSET_URL, tmp_zip)
72
+ actual_sha = _sha256_file(tmp_zip)
73
+ if actual_sha != ASSET_SHA256:
74
+ tmp_zip.unlink(missing_ok=True)
75
+ raise RuntimeError(
76
+ f"SHA-256 mismatch for MolNova-portable.zip: expected {ASSET_SHA256}, got {actual_sha}"
77
+ )
78
+ shutil.move(str(tmp_zip), str(zip_path))
79
+
80
+ with zipfile.ZipFile(zip_path, "r") as zf:
81
+ zf.extractall(target_dir)
82
+
83
+ exe = _find_exe(target_dir)
84
+ if exe is None:
85
+ raise RuntimeError(f"molnova.exe not found after extracting {zip_path}")
86
+ return exe
87
+
88
+
89
+ def main(argv: list[str] | None = None) -> int:
90
+ args = list(sys.argv[1:] if argv is None else argv)
91
+ if "--version" in args and len(args) == 1:
92
+ print(f"molnova {VERSION}")
93
+ return 0
94
+ download_only = False
95
+ if "--download-only" in args:
96
+ download_only = True
97
+ args = [a for a in args if a != "--download-only"]
98
+
99
+ try:
100
+ exe = ensure_binary()
101
+ except Exception as exc:
102
+ print(f"Error: {exc}", file=sys.stderr)
103
+ return 1
104
+
105
+ if download_only:
106
+ print(str(exe))
107
+ return 0
108
+
109
+ proc = subprocess.run([str(exe), *args], check=False)
110
+ return int(proc.returncode)
111
+
112
+
113
+ if __name__ == "__main__":
114
+ raise SystemExit(main())
@@ -0,0 +1,43 @@
1
+ Metadata-Version: 2.4
2
+ Name: molnova
3
+ Version: 4.2.0
4
+ Summary: MolNova v4.2 - High-performance native Rust molecular & volumetric desktop visualizer launcher
5
+ Author: MolNova Team
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/yangdw2024/MolNova
8
+ Project-URL: Repository, https://github.com/yangdw2024/MolNova
9
+ Project-URL: Releases, https://github.com/yangdw2024/MolNova/releases
10
+ Keywords: molecular-visualization,computational-chemistry,vmd,pdb,wgpu,rust
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Environment :: Win32 (MS Windows)
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Operating System :: Microsoft :: Windows :: Windows 10
16
+ Classifier: Operating System :: Microsoft :: Windows :: Windows 11
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Rust
19
+ Classifier: Topic :: Scientific/Engineering :: Chemistry
20
+ Classifier: Topic :: Scientific/Engineering :: Visualization
21
+ Requires-Python: >=3.9
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Dynamic: license-file
25
+
26
+ # MolNova
27
+
28
+ **MolNova v4.2** is a pure native Rust (`wgpu 30` + `egui 0.37` + `winit 0.30`) Windows desktop molecular and volumetric visualizer designed for 10M/100M-atom streaming, trajectories (`XTC`/`TRR`/`DCD`/`LAMMPS`/`XDATCAR`), volumetric grids (`CUBE`/`DX`/`CCP4`/`PHI`/`XSF`), and organic semiconductor (OSC) morphology analysis.
29
+
30
+ ## Quick Start (Python / pip)
31
+
32
+ ```bash
33
+ pip install molnova
34
+ molnova
35
+ ```
36
+
37
+ On first launch on Windows x64, `molnova` automatically downloads the official `v4.2.0` portable binary from [GitHub Releases](https://github.com/yangdw2024/MolNova/releases/tag/v4.2.0), verifies its SHA-256 checksum, caches it under `%LOCALAPPDATA%\MolNova\v4.2.0`, and launches `molnova.exe` with any CLI arguments forwarded.
38
+
39
+ ### Options
40
+
41
+ - `molnova [file.pdb ...]` — launch MolNova (optionally opening structure/trajectory/project files)
42
+ - `molnova --download-only` — download and verify the Windows binary without launching the GUI
43
+ - `molnova --version` — print wrapper & target release version
@@ -0,0 +1,10 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/molnova/__init__.py
5
+ src/molnova/cli.py
6
+ src/molnova.egg-info/PKG-INFO
7
+ src/molnova.egg-info/SOURCES.txt
8
+ src/molnova.egg-info/dependency_links.txt
9
+ src/molnova.egg-info/entry_points.txt
10
+ src/molnova.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ molnova = molnova.cli:main
@@ -0,0 +1 @@
1
+ molnova