{ "info": { "author": "Luca De Feo, Vincent Delecroix, Jeroen Demeyer, Vincent Klein", "author_email": "sage-devel@googlegroups.com", "bugtrack_url": null, "classifiers": [], "description": "CyPari 2\n========\n\n.. image:: https://travis-ci.org/sagemath/cypari2.svg?branch=master\n :target: https://travis-ci.org/sagemath/cypari2\n.. image:: https://readthedocs.org/projects/cypari2/badge/?version=latest\n :target: https://cypari2.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\nA Python interface to the number theory library `PARI/GP `_.\n\nThis library supports both Python 2 and Python 3.\n\nInstallation\n------------\n\nGNU/Linux\n^^^^^^^^^\n\nA package `python-cypari2` or `python2-cypari2` or `python3-cypari2` might be\navailable in your package manager.\n\nUsing pip\n^^^^^^^^^\n\nRequirements:\n\n- PARI/GP >= 2.9.4 (header files and library)\n- Python 2.7 or Python >= 3.4\n- pip\n- `cysignals `_ >= 1.7\n- Cython >= 0.28\n\nInstall cypari2 via the Python Package Index (PyPI) via\n\n::\n\n $ pip install cypari2 [--user]\n\n(the optional option *--user* allows to install cypari2 for a single user\nand avoids using pip with administrator rights). Depending on your operating\nsystem the pip command might also be called pip2 or pip3.\n\nIf you want to try the development version use\n\n::\n\n $ pip install git+https://github.com/sagemath/cypari2.git [--user]\n\nIf you have an error saying libpari-gmp*.so* is missing and have all requirements\nalready installed, try to reinstall cysignals and cypari2\n\n::\n\n $ pip install cysignals --upgrade [--user]\n $ pip install cypari2 --upgrade [--user]\n\nOther\n^^^^^\n\nAny other way to install cypari2 is not supported. In particular, ``python\nsetup.py install`` will produce an error.\n\nUsage\n-----\n\nThe interface as been kept as close as possible from PARI/GP. The following\ncomputation in GP\n\n::\n\n ? zeta(2)\n %1 = 1.6449340668482264364724151666460251892\n\n ? p = x^3 + x^2 + x - 1;\n ? modulus = t^3 + t^2 + t - 1;\n ? fq = factorff(p, 3, modulus);\n ? centerlift(lift(fq))\n %5 =\n [ x - t 1]\n\n [x + (t^2 + t - 1) 1]\n\n [ x + (-t^2 - 1) 1]\n\ntranslates into\n\n::\n\n >>> import cypari2\n >>> pari = cypari2.Pari()\n\n >>> pari(2).zeta()\n 1.64493406684823\n\n >>> p = pari(\"x^3 + x^2 + x - 1\")\n >>> modulus = pari(\"t^3 + t^2 + t - 1\")\n >>> fq = p.factorff(3, modulus)\n >>> fq.lift().centerlift()\n [x - t, 1; x + (t^2 + t - 1), 1; x + (-t^2 - 1), 1]\n\nThe object **pari** above is the object for the interface and acts as a\nconstructor. It can be called with basic Python objects like integer\nor floating point. When called with a string as in the last example\nthe corresponding string is interpreted as if it was executed in a GP shell.\n\nBeyond the interface object **pari** of type **Pari**, any object you get a\nhandle on is of type **Gen** (that is a wrapper around the **GEN** type from\nlibpari). All PARI/GP functions are then available in their original names as\n*methods* like **zeta**, **factorff**, **lift** or **centerlift** above.\n\nAlternatively, the pari functions are accessible as methods of **pari**. The\nsame computations be done via\n\n::\n\n >>> import cypari2\n >>> pari = cypari2.Pari()\n\n >>> pari.zeta(2)\n 1.64493406684823\n\n >>> p = pari(\"x^3 + x^2 + x - 1\")\n >>> modulus = pari(\"t^3 + t^2 + t - 1\")\n >>> fq = pari.factorff(p, 3, modulus)\n >>> pari.centerlift(pari.lift(fq))\n [x - t, 1; x + (t^2 + t - 1), 1; x + (-t^2 - 1), 1]\n\nThe complete documentation of cypari2 is available at http://cypari2.readthedocs.io and\nthe PARI/GP documentation at http://pari.math.u-bordeaux.fr/doc.html\n\nContributing\n------------\n\nSubmit pull request or get in touch with the SageMath developers.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sagemath/cypari2", "keywords": "PARI/GP number theory", "license": "GNU General Public License, version 2 or later", "maintainer": "", "maintainer_email": "", "name": "cypari2", "package_url": "https://pypi.org/project/cypari2/", "platform": "", "project_url": "https://pypi.org/project/cypari2/", "project_urls": { "Homepage": "https://github.com/sagemath/cypari2" }, "release_url": "https://pypi.org/project/cypari2/2.1.1/", "requires_dist": null, "requires_python": "", "summary": "A Python interface to the number theory library PARI/GP", "version": "2.1.1" }, "last_serial": 5176871, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "b1ff519041d080df2c5a291eb8936104", "sha256": "c7402b347e94ebf30211504ea9d30aac7fdc0a2715cdc3dba143a45205aa8a8f" }, "downloads": -1, "filename": "cypari2-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b1ff519041d080df2c5a291eb8936104", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 113217, "upload_time": "2017-04-28T13:22:39", "url": "https://files.pythonhosted.org/packages/6a/3e/c6bbac12c804829d7afb6d07d61ff6e6e0e2a8a8cbf913ed9e3d28d82321/cypari2-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "40465762c1509f63f52a7003adc93c43", "sha256": "3937cece3f3de5f346c2dd19c2d564f2998643a267b11e88841a89478aabbc50" }, "downloads": -1, "filename": "cypari2-1.1.0.tar.gz", "has_sig": false, "md5_digest": "40465762c1509f63f52a7003adc93c43", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 120135, "upload_time": "2017-08-23T10:21:31", "url": "https://files.pythonhosted.org/packages/00/85/fa16eef48d19b2fce3bb563332762e16ad7f26ef4c80622a7985757a8cb5/cypari2-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "1fabc73b44d56ef222fb9e87628b3ecb", "sha256": "6acc7db5c7e80e57d4b711cecffea11bc88e3ff3575fa6c7b13d225913f3c1f3" }, "downloads": -1, "filename": "cypari2-1.1.1.tar.gz", "has_sig": false, "md5_digest": "1fabc73b44d56ef222fb9e87628b3ecb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 120269, "upload_time": "2017-08-24T12:16:30", "url": "https://files.pythonhosted.org/packages/1c/ff/a9a0c9087c08d14807214930bed13ccfb6b2198f38c6992d89c63eb5870b/cypari2-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "6a220ce4ea66f1b972a19401a52e82da", "sha256": "c8a5bdb6e6294ab77b7216bf2224d8879033e81a1f3de273c21afc958be98025" }, "downloads": -1, "filename": "cypari2-1.1.2.tar.gz", "has_sig": false, "md5_digest": "6a220ce4ea66f1b972a19401a52e82da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 120265, "upload_time": "2017-09-26T08:49:49", "url": "https://files.pythonhosted.org/packages/d6/21/cd21db63f67f5018c35a04f35afe9810d89b88fb537813c02a11cb5686c3/cypari2-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "f268f870d255bb98bd4e917f0d74a463", "sha256": "5f38e231269a80239e255b71996b2b303279cd5d87a1b2a59b485ddfbad89c0b" }, "downloads": -1, "filename": "cypari2-1.1.3.tar.gz", "has_sig": false, "md5_digest": "f268f870d255bb98bd4e917f0d74a463", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 120366, "upload_time": "2017-10-04T12:12:46", "url": "https://files.pythonhosted.org/packages/4c/1c/744860168d0019ab1695086129d65412314dbefa54c8f10c5d2c15e0785b/cypari2-1.1.3.tar.gz" } ], "1.1.4": [ { "comment_text": "", "digests": { "md5": "38149046fbdbecc390ce45e28fc10f8a", "sha256": "ab1ac63bf94b3a4da6c7769d3fbfc0c5b8ef671d2d8dc79572f5ef5d31ba1558" }, "downloads": -1, "filename": "cypari2-1.1.4.tar.gz", "has_sig": false, "md5_digest": "38149046fbdbecc390ce45e28fc10f8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 120481, "upload_time": "2018-02-05T08:28:11", "url": "https://files.pythonhosted.org/packages/04/f2/c98aba64571bf13fc5f8e7116ab59eadcff39db2eab0c16b01c90a410f94/cypari2-1.1.4.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "81397fc5665239f23bb22838d84e2f5b", "sha256": "e1f3a9474611dcf9218cf569128aa20f73d967f67558d0016402585682d38468" }, "downloads": -1, "filename": "cypari2-1.2.0.tar.gz", "has_sig": false, "md5_digest": "81397fc5665239f23bb22838d84e2f5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 119276, "upload_time": "2018-07-10T14:25:42", "url": "https://files.pythonhosted.org/packages/60/2a/606e825b958a9d1c136e7d786cde9873276bfd806a939cd70f71ba8ac2f6/cypari2-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "fca6036b9d7175b5e1d86461d556c118", "sha256": "93e0e0ac6e52abfab02355aacd92f63e48ce14859f5b7324c2bb29e0f88c536c" }, "downloads": -1, "filename": "cypari2-1.2.1.tar.gz", "has_sig": false, "md5_digest": "fca6036b9d7175b5e1d86461d556c118", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 119286, "upload_time": "2018-07-13T12:41:21", "url": "https://files.pythonhosted.org/packages/1e/c6/44db1db0ff314ca632c321899ee1a371ea9b6e045f56bb425314d73740b7/cypari2-1.2.1.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "ad2ebbbd925c686bb5908a13b9c0c3c6", "sha256": "e99e7287203893bb6e8a7f0e30b8e98e34edc2871de3e467fec05f216aadf3af" }, "downloads": -1, "filename": "cypari2-1.3.0.tar.gz", "has_sig": false, "md5_digest": "ad2ebbbd925c686bb5908a13b9c0c3c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 119119, "upload_time": "2018-10-04T12:30:24", "url": "https://files.pythonhosted.org/packages/b1/07/0650dc654ccfdd6acdb57797ce09fd63d2fb9986ccb0e86243e8509e9aad/cypari2-1.3.0.tar.gz" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "32f123679b6fc47c6713be2d9e0d2407", "sha256": "99a0d4934e008ca0475298a10971510060c9cbaee1e108c03ee32b856e07c011" }, "downloads": -1, "filename": "cypari2-1.3.1.tar.gz", "has_sig": false, "md5_digest": "32f123679b6fc47c6713be2d9e0d2407", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 119156, "upload_time": "2018-10-05T19:35:50", "url": "https://files.pythonhosted.org/packages/8c/1f/609f6576c3f1e32b218f2d1cff144174c7301c3f158449b49f1219d69252/cypari2-1.3.1.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "ed2fa4fc9330eb21b750e57e5aac38c5", "sha256": "3512d8a78217dfd3ac431b470453342188f70b2053386678a1ec3c74aae7427a" }, "downloads": -1, "filename": "cypari2-2.0.0.tar.gz", "has_sig": false, "md5_digest": "ed2fa4fc9330eb21b750e57e5aac38c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 121099, "upload_time": "2018-10-29T15:43:45", "url": "https://files.pythonhosted.org/packages/a3/7b/2c617483bc33162e9059265b19cab905bf34d323f64082de4f4ea8d400cd/cypari2-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "8b1ffb61dc1bdf68b430d974f65f99c6", "sha256": "32fad615d773e9b5a9394c078ddc2c868e64e35f1ac9633ff90b456901b9d886" }, "downloads": -1, "filename": "cypari2-2.0.1.tar.gz", "has_sig": false, "md5_digest": "8b1ffb61dc1bdf68b430d974f65f99c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 121302, "upload_time": "2018-11-08T12:01:30", "url": "https://files.pythonhosted.org/packages/a5/8a/c0cd4ace712745f6d40f35feeb6795812ea78a5ccb30cc176a57ef83ec34/cypari2-2.0.1.tar.gz" } ], "2.0.2": [ { "comment_text": "", "digests": { "md5": "5e7dbb17db5894a1ad7bea1d8c77bced", "sha256": "4a6f56d52cd00d26b40001993d747883f5363f62358ee0e2d666f879787e7c5c" }, "downloads": -1, "filename": "cypari2-2.0.2.tar.gz", "has_sig": false, "md5_digest": "5e7dbb17db5894a1ad7bea1d8c77bced", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 121795, "upload_time": "2019-01-10T15:31:26", "url": "https://files.pythonhosted.org/packages/b4/0d/817d280300e525a879b1d68ae31a4500f29b82ee4a603be5b0ff9572976e/cypari2-2.0.2.tar.gz" } ], "2.0.3": [ { "comment_text": "", "digests": { "md5": "8bfa43eea70fe6164c5be8453ff9f5ad", "sha256": "cc037b9c1351b61ab6e88f2d51e7ad1dcba8cde9ad83d2c2ed64f84a635df055" }, "downloads": -1, "filename": "cypari2-2.0.3.tar.gz", "has_sig": false, "md5_digest": "8bfa43eea70fe6164c5be8453ff9f5ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 122430, "upload_time": "2019-01-16T13:20:36", "url": "https://files.pythonhosted.org/packages/64/bd/93fd5d8e7515a87be0f74958d0e1dd1b67ac0d009c0ca4d36be891e72c49/cypari2-2.0.3.tar.gz" } ], "2.1.0": [ { "comment_text": "", "digests": { "md5": "84c05ca455bed3376a016d1073639ea2", "sha256": "91f6fdb89907c7ea8beb67bd2accfc4973cdcf26bc163496b1885ccceb96a52e" }, "downloads": -1, "filename": "cypari2-2.1.0.tar.gz", "has_sig": false, "md5_digest": "84c05ca455bed3376a016d1073639ea2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 123722, "upload_time": "2019-03-04T15:50:11", "url": "https://files.pythonhosted.org/packages/ae/07/2280e92023240a44fffd9e95a34a1ae0e94ad68547d9fb7925488a978b6f/cypari2-2.1.0.tar.gz" } ], "2.1.1": [ { "comment_text": "", "digests": { "md5": "9f431126112828c923f82e0393cbf317", "sha256": "df1ef62e771ec36e5a456f5fc8b51bc6745b70f0efdd0c7a30c3f0b5f1fb93db" }, "downloads": -1, "filename": "cypari2-2.1.1.tar.gz", "has_sig": false, "md5_digest": "9f431126112828c923f82e0393cbf317", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 123610, "upload_time": "2019-04-23T11:52:43", "url": "https://files.pythonhosted.org/packages/0c/d0/8b868cedd991bbb2098bbc10a0788c7d3ea6bc9dee946e1eb8424cd4b9f6/cypari2-2.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9f431126112828c923f82e0393cbf317", "sha256": "df1ef62e771ec36e5a456f5fc8b51bc6745b70f0efdd0c7a30c3f0b5f1fb93db" }, "downloads": -1, "filename": "cypari2-2.1.1.tar.gz", "has_sig": false, "md5_digest": "9f431126112828c923f82e0393cbf317", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 123610, "upload_time": "2019-04-23T11:52:43", "url": "https://files.pythonhosted.org/packages/0c/d0/8b868cedd991bbb2098bbc10a0788c7d3ea6bc9dee946e1eb8424cd4b9f6/cypari2-2.1.1.tar.gz" } ] }