Skip to main content

ries-rs

Python bindings for ries, a Rust inverse equation solver that turns a target number into compact algebraic equations.

Install the package from PyPI as ries-rs, then import it in Python as ries_rs.

The Python package uses the same core search engine as the CLI and WASM builds, including the same presets and typed match objects. For deterministic mode, JSON manifests, or the full compatibility-oriented CLI surface, use the main ries-rs executable.

Install

pip install ries-rs

Published wheels use CPython's stable ABI and support Python 3.8 and newer.

Quick Start

import ries_rs

results = ries_rs.search(1.6487212707, level=5, max_matches=3)
for match in results:
    print(f"{match.lhs} = {match.rhs}")
x^2 = e
x = sqrt(e)
ln(x) = 1/2

More Examples

Use a preset to expose domain-specific constants:

import ries_rs

results = ries_rs.search(1.64493406685, preset="analytic-nt", level=2, max_matches=5)
for match in results[:5]:
    print(match.solve_for_x or f"{match.lhs} = {match.rhs}")

Export structured results for notebooks or downstream tooling:

import json
import ries_rs

payload = [match.to_dict() for match in ries_rs.search(1.618033988749895, max_matches=3)]
print(json.dumps(payload, indent=2))

What You Get

  • ries_rs.search(...) for equation search
  • ries_rs.list_presets() for available domain presets
  • ries_rs.version() for runtime version checks
  • PyMatch objects with to_dict() for serialization

Metadata

Release files for ries-rs 2.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ries-rs 2.0.2
File Size Uploaded
ries_rs-2.0.2.tar.gz 375.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for ries-rs 2.0.2
File Interpreter ABI Platform
ries_rs-2.0.2-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details
ries_rs-2.0.2-cp38-abi3-manylinux_2_34_x86_64.whl CPython 3.8 abi3 Linux glibc 2.34+ x86-64 Details
ries_rs-2.0.2-cp38-abi3-macosx_11_0_arm64.whl CPython 3.8 abi3 macOS 11.0+ ARM64 Details

Total release size: 1.4 MB

Release files / ries_rs-2.0.2.tar.gz

Download URL ries_rs-2.0.2.tar.gz
Size 375.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f7a96a87ae17db4d9e636a670894d98e68f0a68ac248cb508516b3ce60771712
BLAKE2b-256 checksum
How to use checksums
a05500204835c4bb7387cde7a0adb92e81060fe6a1c936f7865742d5cf78fea2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / ries_rs-2.0.2-cp38-abi3-win_amd64.whl

Download URL ries_rs-2.0.2-cp38-abi3-win_amd64.whl
Size 299.2 kB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
dbd37df7f1720ade503171a67c412c527f7ef93b63d5e92bdfa7abd7aa4f1d00
BLAKE2b-256 checksum
How to use checksums
9e8fe8102434010c47dfd68b8920810e91ef4bb21fe935727ac9f3ebf9a85342
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / ries_rs-2.0.2-cp38-abi3-manylinux_2_34_x86_64.whl

Download URL ries_rs-2.0.2-cp38-abi3-manylinux_2_34_x86_64.whl
Size 412.6 kB
Tags CPython 3.8 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
b3e210456c15f04fd2e33da613e0c253801dc14fcb1b7b16f88c7e5f8b6e9cb7
BLAKE2b-256 checksum
How to use checksums
cf3c698a4939f78506bf2ac1246c8cbfa28251e4fc55679ce53b8ffd85dc5ce8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / ries_rs-2.0.2-cp38-abi3-macosx_11_0_arm64.whl

Download URL ries_rs-2.0.2-cp38-abi3-macosx_11_0_arm64.whl
Size 359.1 kB
Tags CPython 3.8 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b8f95c8fd3ce1361233ad5cdec4500cf565b15aa65296433c4bd9cd548dee53b
BLAKE2b-256 checksum
How to use checksums
ec6aa44e84c95c3eb4aad5b1a4888423bf62f004776e41ca6226c7649bbaf813
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

2.0.2 This release

4 release files

2.0.1

4 release files

2.0.0

4 release files

1.1.1

4 release files

1.1.0

4 release files

1.0.1

4 release files

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page