🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

gmpy2

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gmpy2

gmpy2 interface to GMP, MPFR, and MPC for Python 3.7+

2.2.1
100

Supply Chain Security

100

Vulnerability

100

Quality

100

Maintenance

70

License

Maintainers
1

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.2

gmpy2 2.2.1

  • Bug fix: use C int instead of C char for some internal code. Issue
  • Bug fix: add xmpz.bit_count method.

gmpy2 2.2.0

gmpy2 2.2.0 is now available with support for Python 3.7 to 3.13.

  • Support for thread-safe contexts and context methods has been improved.
  • Interoperability with Cython extensions has been updated.
  • Extensive improvements have been made to the build and testing processes.
  • Many bug fixes.
  • Extensive documentation cleanup.

Availability

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

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts