$npx skillfedfor your agent

pyroots

Pure python single variable function solvers

SkipPyPI LibrariesReleased Jun 2020122.8K downloads / moBSD-3-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pyroots-0.5.0-py2.py3-none-any.whl
v0.5.0 · released 2020-06-17 · Python >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*

No—not for new projects. The package is abandoned (last update 2020-06-17, no maintenance since). While the code is simple and low-friction, scipy is now the standard, well-maintained alternative for root-finding. Use pyroots only if you have a specific constraint (extreme size limits, legacy py2exe bundling) that scipy cannot meet and you are willing to maintain a dormant dependency yourself.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • You must provide an interval [xa, xb] that brackets the root (f(xa) and f(xb) must have opposite signs for most methods).
  • Low install friction with no runtime dependencies.
  • However, the package is abandoned—last release was 2020-06-17 and no commits since then.

License · maintenance · safety

BSD-3-Clause (permissive) — BSD-3-Clause is permissive, allowing commercial and private use with minimal restrictions. You may use, modify, and distribute pyroots freely provided you retain the license notice.

last release 2020-06-17 (2249 days) · last repo commit 2020-06-17 · 7 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 122,766 downloads/mo, #11,935 on PyPI

Verify before relying

pip install pyroots

from pyroots import Brentq

def f(x, a):
    return x ** 2 - a + 1

solver = Brentq(epsilon=1e-5)
result = solver(f, -3, 0, a=2)
print(result.x0, result.convergence)
  • Whether the package works reliably with Python versions beyond 3.8 given its abandoned status.
  • Real-world performance comparison with scipy's root-finding methods on expensive function evaluations.
  • Whether the claimed advantage of bundling with py2exe or similar tools remains practical in modern deployment workflows.
Same gist for agents: .md · .json

What it is and what it does

Pyroots is a pure-Python library that finds roots of single-variable functions using classical numerical methods: bisection, Ridder's method, and Brent's method (with two variants). It exists as a lightweight alternative to scipy, requiring no compiled dependencies and fitting easily into standalone projects or bundled applications. The library provides a unified API across all solvers, letting you switch methods by changing a single import.

You define a function taking at least one argument (the variable), specify an interval containing the root, and call the solver. It returns a result object with the root value, convergence status, iteration count, function call count, and the sequence of steps taken. The main design advantage is explicit control over precision via epsilon—you specify exactly how many digits of accuracy you want, avoiding unnecessary function evaluations that scipy might perform.

Use it for

  • Embedded applications or py2exe bundles where scipy's size is prohibitive and you need lightweight root-finding.
  • Expensive function evaluations (seconds or minutes per call) where scipy's over-convergence wastes computation.
  • Educational projects or numerical analysis teaching where you want transparent, readable solver implementations.
  • Standalone tools that need root-finding without pulling in a large scientific stack.
  • Functions with keyword arguments that scipy's API doesn't handle conveniently.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No—not for new projects.

The package is abandoned (last update 2020-06-17, no maintenance since). While the code is simple and low-friction, scipy is now the standard, well-maintained alternative for root-finding. Use pyroots only if you have a specific constraint (extreme size limits, legacy py2exe bundling) that scipy cannot meet and you are willing to maintain a dormant dependency yourself.

Install

pyroots on PyPI

Before you install

Low install friction with no runtime dependencies. However, the package is abandoned—last release was 2020-06-17 and no commits since then. Maintenance status is a significant concern for long-term reliability.

You must provide an interval [xa, xb] that brackets the root (f(xa) and f(xb) must have opposite signs for most methods).

License in practice

BSD-3-Clause is permissive, allowing commercial and private use with minimal restrictions. You may use, modify, and distribute pyroots freely provided you retain the license notice.

Quickstart

pip install pyroots

from pyroots import Brentq

def f(x, a):
    return x ** 2 - a + 1

solver = Brentq(epsilon=1e-5)
result = solver(f, -3, 0, a=2)
print(result.x0, result.convergence)

Verify before relying

  • Whether the package works reliably with Python versions beyond 3.8 given its abandoned status.
  • Real-world performance comparison with scipy's root-finding methods on expensive function evaluations.
  • Whether the claimed advantage of bundling with py2exe or similar tools remains practical in modern deployment workflows.

Package facts

LicenseBSD-3-Clause permissive
Python supportSupports the current Python release >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAbandoned 2,249 days since the last release
Last repo commit
First released
Downloads122,766 / month, #11,935 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Scientific/EngineeringTopic :: Scientific/Engineering :: MathematicsTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules

Evidence: pyroots-0.5.0-py2.py3-none-any.whl

Tags

Capabilities
root finding single variablenumerical solver bisect brentunivariate equation solverlightweight root finderscipy alternative root findingbrent ridder bisect algorithmfunction root locator
Topics
numerical-methodsabandoned-maintenance
PyPI keywords
numeric analysisbrentbisectriddersolverunivariate

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “root finding single variable”

  • pyrootsImplements root-finding algorithms (bisect, ridder, Brent) for…
  • optimistixOptimistix provides nonlinear solvers for root finding, minimization,…
  • rootutilsFinds your project root directory and configures Python path, working…

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also directsearch · qpsolvers · scipy · gram-newton-schulz · pysr · POT · pycosat · rdp · quadprog · ropwr