Skip to main content

An interface to the number theory library libpari

Project description

# CyPari 2

[![Build Status](](

A Python interface to the number theory library [libpari](

This library supports both Python 2 and Python 3

## Installation

  1. Install libpari
  2. Clone the cypari2 project

3) Install with pip: ` $ cd where_I_cloned_cypari2 $ pip install . ` Note that any other kind of installation program is not supported. In particular, python install does NOT work.

## Usage

Just launch Python and then you can perform some PARI/GP computation inside python ` >>> import cypari2 >>> pari = cypari2.Pari() >>> pari(2).zeta() 1.64493406684823 >>> K = pari("bnfinit(x^3 - 2)") >>> K.bnfunit() [x - 1] `

## Issues

1) If you change your PARI installation you need to recompile cysignals and cypari2 using the –no-cache-dir option of pip

pip install cysignals –no-cache-dir –force-reinstall [–user] pip install cypari2 –no-cache-dir –force-reinstall [–user]

## Contributing

Submit pull request or get in contact with [Luca De Feo](

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
cypari2-1.0.0.tar.gz (113.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page