renkin 0.30.0 → 0.31.0

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.
package/README.md CHANGED
@@ -21,13 +21,19 @@
21
21
 
22
22
  ---
23
23
 
24
+ **Keep your planner. Audit every route.** Audit retrosynthesis routes from AiZynthFinder, Syntheseus, or RENKIN — locally, reproducibly, and without sending molecular structures anywhere.
25
+
26
+ [**Audit a route in your browser →**](https://kent-tokyo.github.io/renkin/playground/) · [**Python quick start ↓**](#audit-a-route) · [**Route planning engine ↓**](#quick-start)
27
+
28
+ ---
29
+
24
30
  ## What is RENKIN?
25
31
 
26
- RENKIN is an open-source **retrosynthesis engine** for **computer-aided synthesis planning (CASP)** that automatically discovers optimal chemical reaction routes from a target molecule back to cheap, commercially available starting materials.
32
+ RENKIN Bridge is a tool-neutral **route auditor**: it checks structural integrity, stock coverage, and declared-reaction forward-replay for routes from **AiZynthFinder**, **Syntheseus**, or RENKIN's own planner the identical `pass`/`fail`/`partial` pipeline regardless of which tool produced the route, entirely local and reproducible (every audit records a verifiable [`audit_manifest`](https://kent-tokyo.github.io/renkin/guides/audit-reproducibility-contract/)), structures never leaving your machine unless you explicitly ask.
27
33
 
28
- Built entirely in Rust with the [`chematic`](https://docs.rs/chematic/) cheminformatics crate zero C/C++ dependencies, `#![forbid(unsafe_code)]` throughout. One codebase compiles to a native CLI, a Rust library, Python wheels (PyO3), and a WebAssembly module that runs entirely client-side in the browser.
34
+ RENKIN is also, in its own right, an open-source **retrosynthesis engine** for **computer-aided synthesis planning (CASP)** that automatically discovers chemical reaction routes from a target molecule back to cheap, commercially available starting materials.
29
35
 
30
- Use RENKIN as an independent audit layer for retrosynthesis routes generated by RENKIN or AiZynthFinder see [RENKIN Bridge / `audit-route`](#key-features) below.
36
+ Built entirely in Rust with the [`chematic`](https://docs.rs/chematic/) cheminformatics crate zero C/C++ dependencies, `#![forbid(unsafe_code)]` throughout. One codebase compiles to a native CLI, a Rust library, Python wheels (PyO3), and a WebAssembly module that runs entirely client-side in the browser.
31
37
 
32
38
  ---
33
39
 
@@ -39,6 +45,10 @@ cargo add renkin # Rust
39
45
  npm install renkin # JavaScript (browser / bundler -- see docs/api/wasm.md)
40
46
  ```
41
47
 
48
+ Auditing Syntheseus routes needs one more, optional package:
49
+ `pip install renkin[syntheseus]` (verified against Syntheseus `0.7.2` and
50
+ `0.8.0` — see the [compatibility spike](https://github.com/kent-tokyo/renkin/blob/master/docs/design/syntheseus-0.8-compatibility-spike.md)).
51
+
42
52
  ---
43
53
 
44
54
  ## Live Playground
@@ -47,8 +57,44 @@ npm install renkin # JavaScript (browser / bundler -- see docs/api/wasm
47
57
 
48
58
  ---
49
59
 
60
+ ## Audit a Route
61
+
62
+ Bring a route from wherever you already plan them — every path below runs through the identical audit pipeline: the same `pass`/`fail`/`partial` verdict regardless of source tool, or whether you ran it from the CLI, Python, or a browser tab.
63
+
64
+ **AiZynthFinder**
65
+
66
+ ```python
67
+ import json
68
+ import renkin
69
+
70
+ report = json.loads(
71
+ renkin.audit_route(open("trees.json").read(), format="aizynthfinder")
72
+ )
73
+ print(report["summary"])
74
+ ```
75
+
76
+ **Syntheseus** (`pip install renkin[syntheseus]`)
77
+
78
+ ```python
79
+ import json
80
+ import renkin
81
+ from renkin.syntheseus_exporter import dumps_syntheseus_route_v1
82
+
83
+ route_json = dumps_syntheseus_route_v1(my_synthesis_graph)
84
+ report = json.loads(renkin.audit_route(route_json, format="syntheseus"))
85
+ print(report["summary"])
86
+ ```
87
+
88
+ **In your browser** — no installation, no upload, no server: [**Try the Playground →**](https://kent-tokyo.github.io/renkin/playground/)
89
+
90
+ Full walkthroughs with real output, end to end: [AiZynthFinder](https://kent-tokyo.github.io/renkin/guides/aizynthfinder-audit-demo/) · [Syntheseus](https://kent-tokyo.github.io/renkin/guides/syntheseus-audit-demo/).
91
+
92
+ ---
93
+
50
94
  ## Quick Start
51
95
 
96
+ *Planning a route from scratch, not auditing one you already have — see [Audit a Route](#audit-a-route) above for that.*
97
+
52
98
  ```python
53
99
  import json
54
100
  import renkin
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "kent-tokyo <kent-tokyo@users.noreply.github.com>"
6
6
  ],
7
7
  "description": "Ultra-fast retrosynthesis engine for computer-aided synthesis planning (CASP) — pure Rust, WASM-ready, Python bindings via PyO3",
8
- "version": "0.30.0",
8
+ "version": "0.31.0",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",
package/renkin_bg.wasm CHANGED
Binary file