gmpy2

General Multi-Precision arithmetic for Python 2.6+/3+ (GMP, MPIR, MPFR, MPC)

https://github.com/aleaxit/gmpy

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    3 of 32 committers (9.4%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.2%) to scientific vocabulary

Keywords from Contributors

computer-algebra closember spec-0 repl notebook ipython special-functions ordinary-differential-equations numerical-optimization numerical-methods
Last synced: 10 months ago · JSON representation

Repository

General Multi-Precision arithmetic for Python 2.6+/3+ (GMP, MPIR, MPFR, MPC)

Basic Info
Statistics
  • Stars: 562
  • Watchers: 23
  • Forks: 90
  • Open Issues: 53
  • Releases: 15
Created over 11 years ago · Last pushed 10 months ago
Metadata Files
Readme License

README.rst

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

gmpy2 2.3.0
-----------

gmpy2 2.3.0 supports Python 3.14 and free-threaded builds,

* Preliminary support for free-threaded builds.
* Fix behavior and memory leaks for contexts.
* Fix memory leaks for `mpfr` caching.
* Fix rounding error in float(mpz).
* Add missing methods to `mpz` and `mpq`.
* Fix round(mpz, ndigits) if ndigits is negative.
* Improved support for mixed `mpfr` and `mpc` arithmetic.

Version 2.2
-----------

gmpy2 2.2.2 (released as 2.3.0)
-------------------------------

* Many bug fixes.
* Initial support for free-threaded builds.

gmpy2 2.2.1
-----------

* Bug fix: use C int instead of C char for some internal code.
* 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/

Owner

  • Name: Alex Martelli
  • Login: aleaxit
  • Kind: user
  • Location: Sunnyvale, CA, USA
  • Company: Google, Inc

GitHub Events

Total
  • Create event: 2
  • Commit comment event: 3
  • Release event: 1
  • Issues event: 69
  • Watch event: 38
  • Issue comment event: 177
  • Push event: 37
  • Pull request review comment event: 5
  • Pull request review event: 6
  • Pull request event: 59
  • Fork event: 5
Last Year
  • Create event: 2
  • Commit comment event: 3
  • Release event: 1
  • Issues event: 69
  • Watch event: 38
  • Issue comment event: 177
  • Push event: 37
  • Pull request review comment event: 5
  • Pull request review event: 6
  • Pull request event: 59
  • Fork event: 5

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 1,488
  • Total Committers: 32
  • Avg Commits per committer: 46.5
  • Development Distribution Score (DDS): 0.534
Past Year
  • Commits: 275
  • Committers: 7
  • Avg Commits per committer: 39.286
  • Development Distribution Score (DDS): 0.255
Top Committers
Name Email Commits
casevh c****h@f****1 693
Case Van Horsen c****h@g****m 375
Sergey B Kirpichev s****v@g****m 215
Vincent Klein v****n@u****r 51
riemannic r****c@f****1 30
aleaxit a****t@f****1 29
Vincent Delecroix v****x@l****r 15
Isuru Fernando i****f@g****m 13
casevh@gmail.com c****h@g****m@f****1 10
Seth Troisi s****i@g****m 8
Pan z****i@y****m 8
Christian Clauss c****s@m****m 6
KK b****d@g****m 5
Jeroen Demeyer j****r@c****e 4
Jerry James l****y@g****m 4
Dan Fandrich d****n@c****m 2
Jeff Epler j****r@g****m 2
Jakub Wilk j****k@j****t 2
Frédéric Chapoton f****2@g****m 2
Martin Kelly m****n@m****m 2
Gonzalo Tornaría t****a@c****y 1
William Morriss w****s@g****m 1
mulhern a****n@r****m 1
tanjuntao i****o@g****m 1
Dima Pasechnik d****a@p****o 1
Ekaterina Vaartis v****s@k****h 1
TomsOzols t****5@g****m 1
Justin Mathews g****b@j****a 1
William Rummler w****r@g****m 1
Tyler Lanphear t****r@v****m 1
and 2 more...

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 146
  • Total pull requests: 194
  • Average time to close issues: almost 2 years
  • Average time to close pull requests: 17 days
  • Total issue authors: 72
  • Total pull request authors: 21
  • Average comments per issue: 4.82
  • Average comments per pull request: 2.35
  • Merged pull requests: 161
  • Bot issues: 0
  • Bot pull requests: 1
Past Year
  • Issues: 36
  • Pull requests: 75
  • Average time to close issues: 26 days
  • Average time to close pull requests: 11 days
  • Issue authors: 16
  • Pull request authors: 6
  • Average comments per issue: 2.14
  • Average comments per pull request: 1.12
  • Merged pull requests: 55
  • Bot issues: 0
  • Bot pull requests: 1
Top Authors
Issue Authors
  • skirpichev (35)
  • casevh (12)
  • GoogleCodeExporter (5)
  • kloczek (4)
  • brubsby (3)
  • haru-44 (3)
  • oscarbenjamin (3)
  • dimpase (3)
  • mkoeppe (3)
  • videlec (3)
  • tanjuntao (3)
  • b-kamphorst (2)
  • thomaswucher (2)
  • ozankabak (2)
  • lschoe (2)
Pull Request Authors
  • skirpichev (163)
  • bebound (3)
  • martingkelly (2)
  • thomaswucher (2)
  • dfandrich (2)
  • DavidOsipov (2)
  • b-kamphorst (2)
  • jamesjer (2)
  • cclauss (2)
  • sethtroisi (2)
  • mgorny (2)
  • r-barnes (1)
  • mkoeppe (1)
  • jwilk (1)
  • dependabot[bot] (1)
Top Labels
Issue Labels
auto-migrated (5) Priority-Medium (4) Type-Enhancement (3) Type-Defect (2) Priority-Low (1)
Pull Request Labels
dependencies (1)

Packages

  • Total packages: 4
  • Total downloads:
    • pypi 346,403 last-month
  • Total docker downloads: 363,853,778
  • Total dependent packages: 81
    (may contain duplicates)
  • Total dependent repositories: 3,987
    (may contain duplicates)
  • Total versions: 43
  • Total maintainers: 1
pypi.org: gmpy2

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

  • Versions: 33
  • Dependent Packages: 71
  • Dependent Repositories: 3,633
  • Downloads: 346,403 Last month
  • Docker Downloads: 363,853,778
Rankings
Dependent repos count: 0.2%
Docker downloads count: 0.3%
Dependent packages count: 0.3%
Downloads: 1.1%
Average: 1.6%
Stargazers count: 2.9%
Forks count: 4.9%
Maintainers (1)
Last synced: 10 months ago
conda-forge.org: gmpy2
  • Versions: 6
  • Dependent Packages: 8
  • Dependent Repositories: 177
Rankings
Dependent repos count: 2.6%
Average: 4.9%
Dependent packages count: 7.1%
Last synced: 10 months ago
proxy.golang.org: github.com/aleaxit/gmpy
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 6.3%
Average: 6.5%
Dependent repos count: 6.8%
Last synced: 10 months ago
anaconda.org: gmpy2

gmpy2 is a C-coded Python extension module that supports multiple-precision arithmetic. It is the successor to the original gmpy module (supported only the GMP library). gmpy2 adds support for the MPFR (correctly rounded real floating-point arithmetic) and MPC (correctly rounded complex floating-point arithmetic) libraries.

  • Versions: 3
  • Dependent Packages: 2
  • Dependent Repositories: 177
Rankings
Dependent repos count: 14.8%
Dependent packages count: 20.4%
Average: 25.5%
Stargazers count: 32.7%
Forks count: 34.2%
Last synced: 10 months ago

Dependencies

.github/workflows/build_wheels.yml actions
  • actions/checkout v3 composite
  • actions/upload-artifact v3 composite
  • pypa/cibuildwheel v2.16.0 composite
.github/workflows/pip_install_gmpy2.yml actions
  • actions/checkout v4 composite
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • actions/upload-artifact v3 composite
  • codecov/codecov-action v3 composite
  • msys2/setup-msys2 v2 composite
demo/setup.py pypi
pyproject.toml pypi
setup.py pypi