Installation
Python
Install from PyPI — no RDKit or any C/C++ dependency required:
Requires Python 3.9+ and a modern platform. Pre-built wheels are provided for:
| Platform | Python | Status |
|---|---|---|
| Linux x86_64 | 3.9–3.13 | ✅ GitHub Actions |
| macOS arm64 (Apple Silicon) | 3.9–3.13 | ✅ GitHub Actions |
| macOS x86_64 | 3.9–3.13 | ✅ GitHub Actions |
| Windows x86_64 | 3.9–3.13 | ✅ GitHub Actions |
If your platform isn't listed, pip will attempt to build from source (requires Rust toolchain).
Rust
Add to Cargo.toml:
Or use cargo add:
JavaScript / Node.js
Or with yarn/pnpm:
WebAssembly (browser)
The WASM module is bundled with the npm package. For direct browser use without npm:
<script type="module">
import init, { find_routes } from 'https://unpkg.com/renkin@latest/renkin.js';
await init('https://unpkg.com/renkin@latest/renkin_bg.wasm');
const result = JSON.parse(find_routes("CC(=O)Oc1ccccc1C(=O)O", 5, 3, 0));
console.log(result);
</script>
Building from Source
Requires Rust 1.75+ (stable):
For Python wheels (requires maturin):
For WASM (requires wasm-pack):