Skip to main content

regrex (Python)

Find the formulas behind your data. Python bindings for Regrex, a symbolic regression engine written in Rust.

pip install pyregrex
import regrex

m = [1.0, 2.5, 4.0, 0.8, 7.2, 3.3]
v = [3.0, 1.2, 7.5, 12.0, 0.6, 4.4]
energy = [0.5 * a * b * b for a, b in zip(m, v)]

best = regrex.search({"m": m, "v": v}, energy)[0]
print(best["formula"])  # 0.5 * m * v^2

# Which columns of a table are computed from the others?
report = regrex.scan_file("invoices.csv", ignore=["invoice"])
for d in report["derived"]:
    print(d["column"], "=", d["formula"], d["exception_rows"])

# Also works with pandas DataFrames or dicts of columns:
report = regrex.scan(df, units={"time": "s", "distance": "m"})

Results are plain dictionaries with the same fields as the --json output of the regrex command-line tool.

Metadata

Release files for pyregrex 0.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 pyregrex 0.1.0
File Size Uploaded Provenance Actions
pyregrex-0.1.0.tar.gz 214.0 kB With provenance Details for pyregrex-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pyregrex 0.1.0
File Actions
pyregrex-0.1.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for pyregrex-0.1.0-cp39-abi3-win_amd64.whl
pyregrex-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for pyregrex-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pyregrex-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for pyregrex-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
pyregrex-0.1.0-cp39-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 10.12+ x86-64, macOS 11.0+ ARM64, macOS 10.12+ universal2 (ARM64, x86-64) Details for pyregrex-0.1.0-cp39-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Total release size: 25.9 MB

Release files / pyregrex-0.1.0.tar.gz

Download URL pyregrex-0.1.0.tar.gz
Size 214.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0742c21bf8088d258d667bd9cf9fa04a2689786c0425e1d294a21163419e6739
BLAKE2b-256 checksum
How to use checksums
98c1ebe9e0c45b1de986418f98aaf8676a6f718a289aa6d5e5002d6b91f05f0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / pyregrex-0.1.0-cp39-abi3-win_amd64.whl

Download URL pyregrex-0.1.0-cp39-abi3-win_amd64.whl
Size 4.7 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
6a7ea6f9c6a43e96f259ac2962588e7e6cdc405324f46f913ef322cf548347ea
BLAKE2b-256 checksum
How to use checksums
a8e742808cdad38f8d445d0e5cf6579977428544e23e6e2812e6ca5d44478561
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / pyregrex-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pyregrex-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 5.6 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
7cabb9ec0c8bf6ed544085d376a008040d140c0b712a72e56484617a320b60cc
BLAKE2b-256 checksum
How to use checksums
ecb41de690089a278bf40d54ea5c2e9aa62a7fb214efedfc04831c71f43b3e92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / pyregrex-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL pyregrex-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 5.4 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
b654cf4f27644634c07d75d6b0fc55c7c7930a67e7dc6a853bfb6d32508d8c1d
BLAKE2b-256 checksum
How to use checksums
fdae46c6a12e0e25e107d32f4ba6c5ae733550cb3027a3595ddb939de9f2c4a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / pyregrex-0.1.0-cp39-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Download URL pyregrex-0.1.0-cp39-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
Size 9.9 MB
Tags CPython 3.9 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
601fa47e30fd8904b7f1075218ea7db84e03cdc94fc5e76960b39b1eaf63a571
BLAKE2b-256 checksum
How to use checksums
5bc198e75a25574fb2dc5fb1b9afc98d4a24973165de41eb9d77763749e751e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for pyregrex 0.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.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for pyregrex-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

5 release files Full provenance

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