Welcome to gmpy, General Multiprecision Python!

The project's main residence is on http://code.google.com/p/gmpy/ (do not use the sourceforge gmpy site: that's years old and outdated, and gmpy's developers don't have access to change it any more!).

gmpy is a C-coded Python extension module that wraps the GMP or MPIR libraries to provide to Python code fast multiprecision arithmetic (especially integer, but also rational and float), random number generation, advanced number-theoretical functions, and more.