Registry / ai-ml / cyrk
library0.17.1pypypi✓ verified 81d ago

CyRK is a Python package providing fast Runge-Kutta ODE integrators implemented in Cython and Numba. Version 0.17.1 supports Python 3.9–3.14 and offers drop-in replacements for scipy.integrate.solve_ivp with improved performance via C++ backends and optional numba acceleration. It has a moderate release cadence, roughly monthly.

pip install cyrk
INSTALL
IMPORT
SIG · CYRK
C
cyrk
ai-mlpythonv0.17.1
Install
12.0s avg
Import
Disk
445MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.17.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
installs and imports cleanly · install 12.0s · import 0.000s · 443MB
445MB installed
● package 445MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

nbsolve_ivp
from CyRK import nbsolve_ivp
from CyRK import cysolve_ivp
PySolver
from CyRK import PySolver
NbCySolverResult
from CyRK import NbCySolverResult

Basic usage of cysolve_ivp to solve a simple ODE. Note the case-sensitive import.

import numpy as np from CyRK import cysolve_ivp def diffeq(t, y): return np.array([-0.5 * y[0]]) t_span = (0.0, 10.0) y0 = np.array([1.0]) result = cysolve_ivp(diffeq, t_span, y0, method='RK45', rtol=1e-6, atol=1e-8) print(result.success, result.t[-1], result.y[0, -1])
Debug
Known issues
gotchaPackage import is case-sensitive: import CyRK not cyrk. Wrong casing raises ImportError.
fix
Use from CyRK import ...
affects: all
gotchaCyRK uses its own solver classes and does not accept scipy OdeSolvers as input. Passing a scipy solver object will fail.
fix
Use only methods like 'RK45', 'RK23', 'DOP853' (strings) supported by CyRK.
affects: all
breakingIn v0.15.0, std::optional was removed from integrator configs. Code relying on accessing optional fields directly may break.
fix
Update to v0.15+; if you used optional fields, access them as regular attributes now.
affects: <0.15.0
Upgrade
Version history
0.17.1latest on PyPI · released Feb 23, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
OpenAI (training)
1
Resources
cyrk — pip install cyrk · libregistry