Metadata-Version: 2.4
Name: passagemath-pari
Version: 10.8.4rc0
Summary: passagemath: Computational Number Theory with PARI/GP
Author-email: The Sage Developers <sage-support@googlegroups.com>
Maintainer: Matthias Köppe, passagemath contributors
License-Expression: GPL-2.0-or-later
Project-URL: release notes, https://github.com/passagemath/passagemath/releases
Project-URL: repo (upstream), https://github.com/sagemath/sage
Project-URL: repo, https://github.com/passagemath/passagemath
Project-URL: documentation, https://passagemath.org/docs/latest
Project-URL: homepage (upstream), https://www.sagemath.org
Project-URL: discourse, https://passagemath.discourse.group
Project-URL: tracker (upstream), https://github.com/sagemath/sage/issues
Project-URL: tracker, https://github.com/passagemath/passagemath/issues
Classifier: Development Status :: 6 - Mature
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: POSIX
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Scientific/Engineering :: Mathematics
Requires-Python: <3.15,>=3.11
Description-Content-Type: text/x-rst
Requires-Dist: cysignals!=1.12.4; sys_platform == "win32"
Requires-Dist: cysignals!=1.12.0,>=1.11.2
Requires-Dist: memory_allocator<0.2
Requires-Dist: passagemath-environment==10.8.4rc0
Requires-Dist: passagemath-categories==10.8.4rc0
Requires-Dist: conway-polynomials>=0.8
Provides-Extra: test
Requires-Dist: passagemath-repl; extra == "test"
Provides-Extra: elldata
Requires-Dist: passagemath-pari-elldata; extra == "elldata"
Provides-Extra: galdata
Requires-Dist: passagemath-pari-galdata; extra == "galdata"
Provides-Extra: galpol
Requires-Dist: passagemath-pari-galpol; extra == "galpol"
Provides-Extra: nflistdata
Requires-Dist: passagemath-pari-nflistdata; extra == "nflistdata"
Provides-Extra: nftables
Requires-Dist: passagemath-pari-nftables; extra == "nftables"
Provides-Extra: seadata
Requires-Dist: passagemath-pari-seadata; extra == "seadata"
Provides-Extra: seadata-big
Requires-Dist: passagemath-pari-seadata-big; extra == "seadata-big"
Provides-Extra: seadata-small
Requires-Dist: passagemath-pari-seadata-small; extra == "seadata-small"
Provides-Extra: jupyterkernel
Requires-Dist: ipykernel>=5.2.1; extra == "jupyterkernel"
Provides-Extra: jupyterlab
Requires-Dist: passagemath-pari[jupyterkernel]; extra == "jupyterlab"
Requires-Dist: jupyterlab; extra == "jupyterlab"
Provides-Extra: notebook
Requires-Dist: passagemath-pari[jupyterkernel]; extra == "notebook"
Requires-Dist: notebook>=6.1.1; extra == "notebook"
Provides-Extra: standard
Requires-Dist: passagemath-pari[galdata,seadata-small]; extra == "standard"

==================================================================================
 passagemath: Computational Number Theory with PARI/GP
==================================================================================

`passagemath <https://github.com/passagemath/passagemath>`__ is open
source mathematical software in Python, released under the GNU General
Public Licence GPLv2+.

It is a fork of `SageMath <https://www.sagemath.org/>`__, which has been
developed 2005-2026 under the motto “Creating a Viable Open Source
Alternative to Magma, Maple, Mathematica, and MATLAB”.

The passagemath fork uses the motto "Creating a Free Passage Between the
Scientific Python Ecosystem and Mathematical Software Communities."
It was created in October 2024 with the following goals:

-  providing modularized installation with pip from binary wheels,
   - this major project was started in May 2020 in the Sage codebase and completed in passagemath 10.5.29 (May 2025),

-  establishing first-class membership in the scientific Python
   ecosystem,

-  giving `clear attribution of upstream
   projects <https://groups.google.com/g/sage-devel/c/6HO1HEtL1Fs/m/G002rPGpAAAJ>`__,

-  providing independently usable Python interfaces to upstream
   libraries,

-  offering `platform portability and integration testing
   services <https://github.com/passagemath/passagemath/issues/704>`__
   to upstream projects,

-  inviting collaborations with upstream projects,

-  `building a professional, respectful, inclusive
   community <https://groups.google.com/g/sage-devel/c/xBzaINHWwUQ>`__,

-  `empowering Sage users to participate in the scientific Python ecosystem
   <https://github.com/passagemath/passagemath/issues/248>`__ by publishing packages,

-  developing a port to WebAssembly (`Pyodide <https://pyodide.org/en/stable/>`__, emscripten-forge) for
   serverless deployment with Javascript,

-  developing a native Windows port
   - passagemath 10.6.1 (July 2025) published the first pip-installable wheel packages for native Windows on x86_64,
   - passagemath packages became available in the [MSYS2 software distribution](https://packages.msys2.org/search?t=pkg&q=passagemath) in November 2025.

Moreover, the passagemath project:

-  provides a stable, frequently updated version of the Sage distribution,
-  integrates additional mathematical software, notably Macaulay2, a full set of GAP packages,
   and the Combinatorial Matrix Recognition library,
-  curates a library of Sage user packages.

`Full documentation <https://passagemath.org/docs/latest/html/en/index.html>`__ is
available online.

passagemath attempts to support and provides binary wheels suitable for
all major Linux distributions and recent versions of macOS.

Binary wheels for native Windows (x86_64, ARM) are are available for a subset of
the passagemath distributions. Use of the full functionality of passagemath
on Windows currently requires the use of Windows Subsystem for Linux (WSL)
or virtualization.

The supported Python versions in the passagemath-10.8.x series are 3.11.x-3.14.x;
the passagemath-10.6.x series (EOL 2026-10) still supports Python 3.10.x.


About this pip-installable distribution package
-----------------------------------------------

This pip-installable distribution ``passagemath-pari`` is a small
distribution that provides modules that depend on
`PARI/GP <https://pari.math.u-bordeaux.fr/>`__, the computer algebra
system designed for fast computations in number theory: factorizations,
algebraic number theory, elliptic curves, modular forms, L-functions...


What is included
----------------

- `integer factorization <https://passagemath.org/docs/10.6/html/en/reference/rings_standard/sage/rings/factorint_pari.html#module-sage.rings.factorint_pari>`__

- `finite fields <https://passagemath.org/docs/10.6/html/en/reference/finite_rings/sage/rings/finite_rings/finite_field_pari_ffelt.html#module-sage.rings.finite_rings.finite_field_pari_ffelt>`__

- much of the `p-adics functionality of the Sage library <https://passagemath.org/docs/10.6/html/en/reference/padics/index.html>`__

- `discrete valuations <https://passagemath.org/docs/10.6/html/en/reference/valuations/index.html>`__

- parts of the `quadratic forms functionality of the Sage library <https://passagemath.org/docs/10.6/html/en/reference/quadratic_forms/index.html>`__

- various other modules with dependencies on PARI/GP, see `MANIFEST <https://github.com/passagemath/passagemath/blob/main/pkgs/sagemath-pari/MANIFEST.in>`_

- the `cypari2 <https://pypi.org/project/cypari2/>`_ API

- the `pari-jupyter kernel <https://github.com/passagemath/upstream-pari-jupyter>`__

- the binary wheels on PyPI ship a prebuilt copy of PARI/GP

- the binary wheels on PyPI ship XEUS-GP, another Jupyter kernel for PARI/GP


Examples
--------

Starting the GP calculator from the command line::

    $ pipx run --pip-args="--prefer-binary" --spec "passagemath-pari" sage -gp
    GP/PARI CALCULATOR Version 2.17.2 (released)
    ...

Using the pexpect interface to the GP calculator::

    $ pipx run --pip-args="--prefer-binary" --spec "passagemath-pari[test]" ipython

    In [1]: from sage.interfaces.gp import gp

    In [2]: E = gp.ellinit([1,2,3,4,5])

    In [3]: E.ellglobalred()
    Out[3]: [10351, [1, -1, 0, -1], 1, [11, 1; 941, 1], [[1, 5, 0, 1], [1, 5, 0, 1]]]

Using the ``cypari2`` library interface::

    $ pipx run --pip-args="--prefer-binary" --spec "passagemath-pari" python

    >>> import cypari2
    >>> pari = cypari2.Pari()

    >>> pari(2).zeta()
    1.64493406684823

    >>> p = pari("x^3 + x^2 + x - 1")
    >>> modulus = pari("t^3 + t^2 + t - 1")
    >>> fq = p.factorff(3, modulus)
    >>> fq.lift().centerlift()
    [x - t, 1; x + (t^2 + t - 1), 1; x + (-t^2 - 1), 1]


Available as extras, from other distributions
---------------------------------------------

PARI/GP data packages
~~~~~~~~~~~~~~~~~~~~~

See https://pari.math.u-bordeaux.fr/packages.html for detailed descriptions.

``pip install "passagemath-pari[elldata]"``

``pip install "passagemath-pari[galdata]"``

``pip install "passagemath-pari[galpol]"``

``pip install "passagemath-pari[nflistdata]"``

``pip install "passagemath-pari[nftables]"``

``pip install "passagemath-pari[seadata]"``

``pip install "passagemath-pari[seadata-big]"``

``pip install "passagemath-pari[seadata-small]"``
