$npx skillfedfor your agent

python-flint

Bindings for FLINT

With conditionsPyPI MathematicsReleased Jul 202686.1K downloads / moMIT AND LGPL-3.0-or-laterPlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — python_flint-0.9.0-cp310-abi3-macosx_10_9_x86_64.whl · python_flint-0.9.0-cp310-abi3-macosx_11_0_arm64.whl · python_flint-0.9.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
v0.9.0 · released 2026-07-03 · Python >=3.10

Yes, if you need exact arithmetic or certified numerical results. The package is actively maintained, has no known vulnerabilities, and provides prebuilt wheels for modern Python versions on common platforms. Install friction is moderate due to the compiled FLINT dependency, but wheels eliminate build complexity for supported platforms. Dual licensing (MIT/LGPL-3.0-or-later) requires attention to copyleft obligations if redistributing derivative works.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires FLINT 3.0 or later to be installed on the system; prebuilt wheels available for CPython 3.10–3.14 on Windows (x86-64), macOS (x86-64, arm64), and Linux (x86-64, aarch64).
  • Prebuilt wheels available for CPython 3.10–3.14 on Windows, macOS, and Linux; medium install friction due to compiled C extension dependency on FLINT 3.0 or later, which may require system package installation or source build on unsupported platforms.

License · maintenance · safety

MIT AND LGPL-3.0-or-later (copyleft) — Dual-licensed under MIT and LGPL-3.0-or-later; copyleft treatment means derivative works must comply with LGPL-3.0-or-later terms if distributed, though MIT applies to some components.

last release 2026-07-03 (42 days) · last repo commit 2026-08-02 · 151 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 86,095 downloads/mo, #13,886 on PyPI

Verify before relying

pip install python-flint

from flint import fmpz, fmpq, fmpz_poly

# Integer arithmetic
print(fmpz(1000).partitions_p())

# Rational arithmetic
print(fmpq.bernoulli(64))

# Polynomial GCD
a = fmpz_poly([1, 2, 3])
b = fmpz_poly([2, 3, 4])
print(a.gcd(a * b))
  • Performance characteristics compared to other arbitrary-precision libraries for specific workloads.
  • Stability and completeness of free-threaded (no-GIL) build support marked as experimental.
  • Extent of missing FLINT type wrappings (finite field matrices, p-adic numbers, rational functions).
Same gist for agents: .md · .json

What it is and what it does

Python-FLINT is a Python extension module that wraps FLINT (Fast Library for Number Theory) and Arb (arbitrary-precision ball arithmetic), exposing exact integer, rational, and modular arithmetic alongside arbitrary-precision real and complex numbers with rigorous error bounds. It provides polynomial, power series, and matrix types over all these number systems, plus a large collection of mathematical functions including number-theoretic operations, factorization, and numerical integration.

The library is designed for applications requiring exact symbolic computation or certified numerical results. It supports CPython 3.10–3.14 and provides prebuilt wheels for common platforms; source builds are available for other architectures. The package has no runtime Python dependencies and relies on the underlying FLINT C library, making it suitable for both interactive use and embedded in larger applications.

Use it for

  • Compute exact number-theoretic functions like partition counts and Bernoulli numbers without floating-point error.
  • Perform polynomial arithmetic (GCD, factorization, evaluation) over exact integer and rational coefficients.
  • Work with matrices of exact rationals or modular integers, including determinant and LLL reduction.
  • Evaluate special functions and integrals with certified error bounds using arbitrary-precision ball arithmetic.
  • Prototype symbolic mathematics computations before translating to production systems.

Worth the install?

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

With conditions

Yes, if you need exact arithmetic or certified numerical results.

The package is actively maintained, has no known vulnerabilities, and provides prebuilt wheels for modern Python versions on common platforms. Install friction is moderate due to the compiled FLINT dependency, but wheels eliminate build complexity for supported platforms. Dual licensing (MIT/LGPL-3.0-or-later) requires attention to copyleft obligations if redistributing derivative works.

Install

python-flint on PyPI

Before you install

Prebuilt wheels available for CPython 3.10–3.14 on Windows, macOS, and Linux; medium install friction due to compiled C extension dependency on FLINT 3.0 or later, which may require system package installation or source build on unsupported platforms.

Requires FLINT 3.0 or later to be installed on the system; prebuilt wheels available for CPython 3.10–3.14 on Windows (x86-64), macOS (x86-64, arm64), and Linux (x86-64, aarch64).

License in practice

Dual-licensed under MIT and LGPL-3.0-or-later; copyleft treatment means derivative works must comply with LGPL-3.0-or-later terms if distributed, though MIT applies to some components.

Quickstart

pip install python-flint

from flint import fmpz, fmpq, fmpz_poly

# Integer arithmetic
print(fmpz(1000).partitions_p())

# Rational arithmetic
print(fmpq.bernoulli(64))

# Polynomial GCD
a = fmpz_poly([1, 2, 3])
b = fmpz_poly([2, 3, 4])
print(a.gcd(a * b))

Verify before relying

  • Performance characteristics compared to other arbitrary-precision libraries for specific workloads.
  • Stability and completeness of free-threaded (no-GIL) build support marked as experimental.
  • Extent of missing FLINT type wrappings (finite field matrices, p-adic numbers, rational functions).

Package facts

LicenseMIT AND LGPL-3.0-or-later copyleft
Python supportSupports the current Python release >=3.10
Install frictionMedium. Platform-specific wheel
Runtime dependenciesNone
MaintenanceActively maintained 42 days since the last release
Last repo commit
First released
Downloads86,095 / month, #13,886 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Topic :: Scientific/Engineering :: Mathematics

Evidence: python_flint-0.9.0-cp310-abi3-macosx_10_9_x86_64.whl; python_flint-0.9.0-cp310-abi3-macosx_11_0_arm64.whl; python_flint-0.9.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; python_flint-0.9.0-cp310-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl; python_flint-0.9.0-cp310-abi3-win_amd64.whl; python_flint-0.9.0-cp310-abi3-win_arm64.whl; python_flint-0.9.0-cp313-cp313-macosx_10_13_x86_64.whl; python_flint-0.9.0-cp313-cp313-macosx_11_0_arm64.whl; python_flint-0.9.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; python_flint-0.9.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl; python_flint-0.9.0-cp313-cp313-win_amd64.whl; python_flint-0.9.0-cp313-cp313-win_arm64.whl; python_flint-0.9.0-cp314-cp314-macosx_10_15_x86_64.whl; python_flint-0.9.0-cp314-cp314-macosx_11_0_arm64.whl; python_flint-0.9.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; python_flint-0.9.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl; python_flint-0.9.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl; python_flint-0.9.0-cp314-cp314t-macosx_10_15_x86_64.whl; python_flint-0.9.0-cp314-cp314t-macosx_11_0_arm64.whl; python_flint-0.9.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Tags

Capabilities
arbitrary precision arithmeticnumber theory libraryexact rational computationpolynomial arithmeticrigorous error trackingmatrix operations exactFLINT bindings
Topics
exact-arithmeticnumber-theorysymbolic-computation

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 › “exact rational computation”

  • python-flintPython bindings for FLINT and Arb that provide exact integer and…
  • py-lets-be-rationalComputes implied volatility from option prices using Peter Jaeckel's…
  • piecewise-rationalPerforms shape-preserving piecewise rational cubic interpolation…

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

More Mathematics packages

networkx Worth it
PyPI · Python Modules · released Dec 2025

NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.

BSD-3-Clausepure Python
290.9Mdownloads / mo
kiwisolver Worth it
PyPI · Mathematics · released Mar 2026

kiwisolver is a Python binding to a fast C++ implementation of the Cassowary constraint solver, enabling you to solve systems of linear constraints and inequalities.

Install it if you need to solve constraint systems; skip it if you only need simple linear algebra.

BSD-3-Clausecompiled wheel · 3.10+
205.5Mdownloads / mo
sympy Worth it
PyPI · Scientific/Engineering · released Apr 2025

SymPy is a Python library for symbolic mathematics, performing algebraic manipulation, calculus, equation solving, and mathematical expression simplification without numerical approximation.

BSD-3-Clausepure Python · 3.9+
196.4Mdownloads / mo
contourpy Worth it
PyPI · Information Analysis · released Jul 2025

ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.

BSD-3-Clausecompiled wheel · 3.11+
191.2Mdownloads / mo
torch With conditions
PyPI · Software Development · released Jul 2026

PyTorch provides GPU-accelerated tensor computation and automatic differentiation for building and training deep neural networks in Python.

Apache-2.0 AND Apache-2.0 WITH LLVM-exception AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND MITcompiled wheel · 3.10+
102.5Mdownloads / mo
onnxruntime Worth it
PyPI · Software Development · released Jul 2026

onnxruntime loads and executes Open Neural Network Exchange (ONNX) models with a focus on inference performance across CPUs and accelerators.

Install it if you have ONNX models to run in production or development.

MITcompiled wheel · 3.11+
89.3Mdownloads / mo

See also galois · cypari2 · fixedint · intbitset · passagemath-objects · transforms3d · typedunits · pyglm