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.0.3

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.3
File Size Uploaded Provenance Actions
ries_rs-2.0.3.tar.gz 414.7 kB Without provenance Details for ries_rs-2.0.3.tar.gz

Built distributions (wheels)

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

Total release size: 1.6 MB

Release files / ries_rs-2.0.3.tar.gz

Download URL ries_rs-2.0.3.tar.gz
Size 414.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a1bc780922ea05ecbe6805f79a93c98313362cfc04ab3449001a48e724b8d476
BLAKE2b-256 checksum
How to use checksums
f25456b1656184da5b5ddd5c053614312dbc26d37912ad46faf97dacf2056f8c
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.0.3-cp39-abi3-win_amd64.whl

Download URL ries_rs-2.0.3-cp39-abi3-win_amd64.whl
Size 333.7 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
76e392113fe99a23c6be6d9197d33f881e274e474fcc3c2551109a7c6789785d
BLAKE2b-256 checksum
How to use checksums
c06ca377420df4d50c4a0cf03f953f50cadc2678b0d1ee28ab62bc1d60f52260
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.0.3-cp39-abi3-manylinux_2_34_x86_64.whl

Download URL ries_rs-2.0.3-cp39-abi3-manylinux_2_34_x86_64.whl
Size 444.6 kB
Tags CPython 3.9 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
4d90647c8966ebb23a88b2ad374866b8bd09806ace85e82af6fa3bf5e0577f9d
BLAKE2b-256 checksum
How to use checksums
234e8040e93e9dce576aeb0a65618042d83d8ef14ce4be41916678ad8f7b84d7
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.0.3-cp39-abi3-macosx_11_0_arm64.whl

Download URL ries_rs-2.0.3-cp39-abi3-macosx_11_0_arm64.whl
Size 388.8 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
38be058d7d023f726f2c81f0da181ea7a75e51a1d1fd905d66f500835e51e29e
BLAKE2b-256 checksum
How to use checksums
b292cde88323f19c81a965bd0455baed1c8e26453841ca9239693df56a9fb85d
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.0.3

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