{ "info": { "author": "David M. Straub", "author_email": "david.straub@tum.de", "bugtrack_url": null, "classifiers": [], "description": "[![Build Status](https://travis-ci.org/DavidMStraub/parton.svg?branch=master)](https://travis-ci.org/DavidMStraub/parton) [![Coverage Status](https://coveralls.io/repos/github/DavidMStraub/parton/badge.svg?branch=master)](https://coveralls.io/github/DavidMStraub/parton?branch=master)\n\n# parton – a Python package for parton densities and parton luminosities\n\nparton is a Python package providing parton density functions and parton luminosities. It uses the PDF data files provided by the [LHAPDF](https://lhapdf.hepforge.org/) project. Its API is partially compatible to LHAPDF's Python API, even though only a subset of its features are implemented.\n\nparton is written in pure Python, i.e. it runs on Linux, Mac OS, and Windows.\n\n## Installation\n\nTo install the package without administrator privileges, run\n```\npython3 -m pip install parton --user\n```\n\n## Command-line interface\n\nparton provides a command-line interface that mimicks (and is partially compatible to) LHAPDF's `lhapdf` command. In particular, it can be used to install PDF grid files. It is accessed by running the package as a script,\n```\npython3 -m parton\n```\nFor instance, to install a specific PDF set, run\n```\npython3 -m parton update\npython3 -m parton install 'CT10/0'\n```\nIf you already have a directory with PDF sets (e.g. from LHAPDF), that can be used as well.\n\n## Python usage\n\nThe API for numerically evaluating PDFs is modeled after LHAPDF's Python API:\n```python\nfrom parton import mkPDF\npdf = mkPDF('CT10', 0)\n# up quark PDF at x=0.1, Q=1000 GeV\npdf.xfxQ(1, 0.1, 1000)\n```\nIf the PDF sets are in a non-default location (on Linux, the default location is `~/.local/share/parton/`), this directory can be changed through `mkPDF`'s `pdfdir` argument.\n\nParton luminosities are accessed similarly through the `PLumi` class, but the factorization scale has to be fixed on instantiation,\n```python\nfrom parton import PLumi\n# pdf has been defined above\nplumi = PLumi(pdf, Q2=1000)\n# u-ubar parton luminosity shat/s=0.1\nplumi.L(1, -1, 0.1)\n```\n\n## License\n\nparton is released under the MIT license.\n\n## Author\n\nparton was written by David M. Straub.\n\n## Citation info\n\nparton cannot be cited at present. Please do not forget to also acknowledge the [LHAPDF](https://lhapdf.hepforge.org/) project.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "parton", "package_url": "https://pypi.org/project/parton/", "platform": "", "project_url": "https://pypi.org/project/parton/", "project_urls": null, "release_url": "https://pypi.org/project/parton/0.1/", "requires_dist": null, "requires_python": "", "summary": "Python package for parton densities and parton luminosities", "version": "0.1" }, "last_serial": 4533563, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "ebb8612f144502c6598a76184718adef", "sha256": "7fa94a35ea1c0839de01c402984ca9a400c7d7d6f7bef6f1e73816cc340bd3fc" }, "downloads": -1, "filename": "parton-0.1.tar.gz", "has_sig": false, "md5_digest": "ebb8612f144502c6598a76184718adef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12202, "upload_time": "2018-11-27T10:05:30", "url": "https://files.pythonhosted.org/packages/fa/2a/35bf50059168b2488d9af837eb71ff5ef7e8dab42f3efac0b7a2bf1de238/parton-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ebb8612f144502c6598a76184718adef", "sha256": "7fa94a35ea1c0839de01c402984ca9a400c7d7d6f7bef6f1e73816cc340bd3fc" }, "downloads": -1, "filename": "parton-0.1.tar.gz", "has_sig": false, "md5_digest": "ebb8612f144502c6598a76184718adef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12202, "upload_time": "2018-11-27T10:05:30", "url": "https://files.pythonhosted.org/packages/fa/2a/35bf50059168b2488d9af837eb71ff5ef7e8dab42f3efac0b7a2bf1de238/parton-0.1.tar.gz" } ] }