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.9 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.1.0

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.1.0
File Size Uploaded Provenance Actions
ries_rs-2.1.0.tar.gz 417.9 kB Without provenance Details for ries_rs-2.1.0.tar.gz

Built distributions (wheels)

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

Total release size: 1.6 MB

Release files / ries_rs-2.1.0.tar.gz

Download URL ries_rs-2.1.0.tar.gz
Size 417.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b6b0234d7ceee59a52c3133095631f3c124014228504e249ac181abb31e070df
BLAKE2b-256 checksum
How to use checksums
41a20b59dac17f191e88b969593994e0a04764eaa3b01a5751e07b478cb47b19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / ries_rs-2.1.0-cp39-abi3-win_amd64.whl

Download URL ries_rs-2.1.0-cp39-abi3-win_amd64.whl
Size 333.7 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
56e073f14426eb62f7c093539a07899cb029894ec5a19ea57f1206250aef6519
BLAKE2b-256 checksum
How to use checksums
76e76a687f8873e1b9e38c57730647aea9d304f8fc99b276b64bb8b68beb232d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / ries_rs-2.1.0-cp39-abi3-manylinux_2_34_x86_64.whl

Download URL ries_rs-2.1.0-cp39-abi3-manylinux_2_34_x86_64.whl
Size 443.9 kB
Tags CPython 3.9 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
3a6ad06adb3eeeef8f936b08533b1569e510436a8e85b6332a8b014b07ddbbf4
BLAKE2b-256 checksum
How to use checksums
121890e4d1b524de59e172bdde6ec806436f6fd93ac436dd934b616a8d2e13e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / ries_rs-2.1.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL ries_rs-2.1.0-cp39-abi3-macosx_11_0_arm64.whl
Size 389.5 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
59c0f483d73fb02d798ff47db2a46e0d92903cc3306e1483864f2c3a27cd2fa1
BLAKE2b-256 checksum
How to use checksums
3f4c7a885d55ed707617e14c2f61e4ab976ac3610c76f82b09434898be845ce8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for ries-rs 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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