Skip to main content

gmpy2 interface to GMP/MPIR, MPFR, and MPC for Python 2.7 and 3.5+

Project description

Introduction

gmpy2 is an optimized, C-coded Python extension module that supports fast multiple-precision arithmetic. gmpy2 is based on the original gmpy module. gmpy2 adds support for correctly rounded multiple-precision real arithmetic (using the MPFR library) and complex arithmetic (using the MPC library).

Version 2.1.x Status

gmpy2 2.1 was extensively refactored. Some of the significant changes are:

  • Support for thread-safe contexts and context methods

  • Interoperability with Cython extensions

  • mpz and mpq operation can release the GIL * The current implementation is experimental

  • Improved argument processing

The gmpy2 2.1 series will be the last to offer compatibility with Python 2.7. Release 2.1.3 is the last planned release of the 2.1 series.

Note: Versions 2.1.4 and 2.1.5 were released to address Apple Silicon wheel build issues. There are no code changes.

Release 2.1.5 is the last planned release of the 2.1 series.

Version 2.2 Plans

Version 2.2 will drop support for Python 2.7 and older Python 3.x versions.

The primary development focus will be on functions that operate on lists and release the GIL. See powmod_base_list and powmod_exp_list as examples.

Availability

gmpy2 is available at https://pypi.python.org/pypi/gmpy2/

Documentation is available at https://gmpy2.readthedocs.io/en/latest/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gmpy2-2.1.5.tar.gz (261.7 kB view hashes)

Uploaded Source

Built Distributions

gmpy2-2.1.5-cp311-cp311-win_amd64.whl (1.1 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

gmpy2-2.1.5-cp311-cp311-musllinux_1_1_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

gmpy2-2.1.5-cp311-cp311-musllinux_1_1_i686.whl (1.6 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

gmpy2-2.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

gmpy2-2.1.5-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (1.7 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686

gmpy2-2.1.5-cp311-cp311-macosx_11_0_arm64.whl (664.1 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

gmpy2-2.1.5-cp311-cp311-macosx_10_9_x86_64.whl (806.2 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

gmpy2-2.1.5-cp310-cp310-win_amd64.whl (1.1 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

gmpy2-2.1.5-cp310-cp310-musllinux_1_1_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

gmpy2-2.1.5-cp310-cp310-musllinux_1_1_i686.whl (1.6 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

gmpy2-2.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

gmpy2-2.1.5-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (1.6 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686

gmpy2-2.1.5-cp310-cp310-macosx_11_0_arm64.whl (664.1 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

gmpy2-2.1.5-cp310-cp310-macosx_10_9_x86_64.whl (806.2 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

gmpy2-2.1.5-cp39-cp39-win_amd64.whl (1.1 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

gmpy2-2.1.5-cp39-cp39-musllinux_1_1_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

gmpy2-2.1.5-cp39-cp39-musllinux_1_1_i686.whl (1.6 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ i686

gmpy2-2.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

gmpy2-2.1.5-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl (1.6 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ i686

gmpy2-2.1.5-cp39-cp39-macosx_11_0_arm64.whl (664.1 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

gmpy2-2.1.5-cp39-cp39-macosx_10_9_x86_64.whl (806.1 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

gmpy2-2.1.5-cp38-cp38-win_amd64.whl (1.1 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

gmpy2-2.1.5-cp38-cp38-musllinux_1_1_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

gmpy2-2.1.5-cp38-cp38-musllinux_1_1_i686.whl (1.6 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ i686

gmpy2-2.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

gmpy2-2.1.5-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl (1.6 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ i686

gmpy2-2.1.5-cp38-cp38-macosx_11_0_arm64.whl (665.3 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

gmpy2-2.1.5-cp38-cp38-macosx_10_9_x86_64.whl (807.8 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

gmpy2-2.1.5-cp37-cp37m-win_amd64.whl (1.1 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

gmpy2-2.1.5-cp37-cp37m-musllinux_1_1_x86_64.whl (1.6 MB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ x86-64

gmpy2-2.1.5-cp37-cp37m-musllinux_1_1_i686.whl (1.5 MB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ i686

gmpy2-2.1.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

gmpy2-2.1.5-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl (1.6 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ i686

gmpy2-2.1.5-cp37-cp37m-macosx_10_9_x86_64.whl (813.2 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

gmpy2-2.1.5-cp36-cp36m-win_amd64.whl (1.1 MB view hashes)

Uploaded CPython 3.6m Windows x86-64

gmpy2-2.1.5-cp36-cp36m-musllinux_1_1_x86_64.whl (1.6 MB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ x86-64

gmpy2-2.1.5-cp36-cp36m-musllinux_1_1_i686.whl (1.5 MB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ i686

gmpy2-2.1.5-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

gmpy2-2.1.5-cp36-cp36m-manylinux_2_17_i686.manylinux2014_i686.whl (1.6 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ i686

gmpy2-2.1.5-cp36-cp36m-macosx_10_9_x86_64.whl (813.1 kB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

gmpy2-2.1.5-cp35-cp35m-win_amd64.whl (1.1 MB view hashes)

Uploaded CPython 3.5m Windows x86-64

gmpy2-2.1.5-cp35-cp35m-manylinux2010_x86_64.whl (1.6 MB view hashes)

Uploaded CPython 3.5m manylinux: glibc 2.12+ x86-64

gmpy2-2.1.5-cp35-cp35m-manylinux2010_i686.whl (1.5 MB view hashes)

Uploaded CPython 3.5m manylinux: glibc 2.12+ i686

gmpy2-2.1.5-cp35-cp35m-macosx_10_9_x86_64.whl (775.5 kB view hashes)

Uploaded CPython 3.5m macOS 10.9+ x86-64

gmpy2-2.1.5-cp27-cp27mu-manylinux2010_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 2.7mu manylinux: glibc 2.12+ x86-64

gmpy2-2.1.5-cp27-cp27mu-manylinux2010_i686.whl (1.5 MB view hashes)

Uploaded CPython 2.7mu manylinux: glibc 2.12+ i686

gmpy2-2.1.5-cp27-cp27m-win_amd64.whl (1.1 MB view hashes)

Uploaded CPython 2.7m Windows x86-64

gmpy2-2.1.5-cp27-cp27m-manylinux2010_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 2.7m manylinux: glibc 2.12+ x86-64

gmpy2-2.1.5-cp27-cp27m-manylinux2010_i686.whl (1.5 MB view hashes)

Uploaded CPython 2.7m manylinux: glibc 2.12+ i686

gmpy2-2.1.5-cp27-cp27m-macosx_10_9_x86_64.whl (775.1 kB view hashes)

Uploaded CPython 2.7m macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page