{ "info": { "author": "Tim Lehr", "author_email": "contact@timlehr.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6" ], "description": "# PyPiParser\n\n[![Build Status](https://travis-ci.org/timlehr/pypiparser.svg?branch=master)](https://travis-ci.org/timlehr/pypiparser)\n\nSimple PyPI Package Index parser for index servers without XML / JSON API.\n\n_Note: It's still very much a prototype and missing a lot of potentially cool features, \nsince I wrote it with a specific project need in mind._\n\n# Installation\n\nvia PIP\n\n```\npip install pypiparser\n```\n\n# Usage\n\n from pypiparser import PackageIndex\n\n # create an index object to work with\n index = PackageIndex(\"http://pypi.example.com\")\n\n # get simple index url / base url\n print index.index_url\n \"\"\" Result: http://pypi.example.com/simple \"\"\" \n\n # check if a package is available on the index\n print index.provides_package(\"pyside2\")\n \"\"\" Result: True \"\"\"\n\n # get all available package versions from index\n print index.get_all_versions(\"pyside2\")\n \"\"\" Result: \n [<'pyside2' (Wheel, v5.9.0a1.dev1527518830, '')>, \n <'pyside2' (Wheel, v5.9.0a1.dev1527519010, '')>, \n <'pyside2' (Wheel, v5.9.0a1.dev1527519532, '')>, \n <'pyside2' (Wheel, v5.9.0a1.dev1527520114, '')>, \n <'pyside2' (Wheel, v5.9.0a1.dev1527520119, '')>, \n <'pyside2' (Wheel, v5.9.0a1.dev1527520955, '')>] \"\"\"\n\n\n # get the newest compatible version with my setup (filter=True)\n pkg = index.get_newest_version(\"pyside2\", filter=True)\n print pkg\n \"\"\" Result: <'pyside2' (Wheel, v5.9.0a1.dev1527518830, '')> \"\"\" \n\n # access metadata\n print pkg.distribution\n print pkg.version\n \"\"\" Result: \n pyside2\n 5.9.0a1.dev1527518830\n \"\"\" \n\n # access metadata as dict\n print pkg.as_dict()\n \"\"\" Result: \n {'platform': u'linux_x86_64', \n 'url': 'http://pypi.example.com/packages/PySide2-5.9.0a1.dev1527518830-5.9.6-cp27-cp27mu-linux_x86_64.whl#md5=d87921063a3701e16478b7e0c2b09012', \n 'abi': u'cp27mu', 'python': u'cp27', \n 'version': u'5.9.0a1.dev1527518830', \n 'build': u'5.9.6', 'distribution': 'pyside2'}\n \"\"\" \n\n\n# Requirements\n\n- [beautifulsoup](https://pypi.org/project/beautifulsoup4/) (MIT license)\n- [requests](https://pypi.org/project/requests/) (Apache 2.0 license)\n\n# Todo\n\n- tarball / egg support\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/timlehr/pypiparser", "keywords": "pypi,parser,packaging,simple,pip", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pypiparser", "package_url": "https://pypi.org/project/pypiparser/", "platform": "", "project_url": "https://pypi.org/project/pypiparser/", "project_urls": { "Homepage": "https://github.com/timlehr/pypiparser" }, "release_url": "https://pypi.org/project/pypiparser/0.2.4/", "requires_dist": [ "beautifulsoup4", "requests" ], "requires_python": "", "summary": "Simple Python Package Index Parser", "version": "0.2.4", "yanked": false, "yanked_reason": null }, "last_serial": 6195064, "releases": { "0.2.3": [ { "comment_text": "", "digests": { "md5": "4220eba020256c5da24d322bd73a9ea5", "sha256": "ff4b4b545836b50ef0cc11ec8d9def484ab55499b2a04f0e233bcfe0ee438cc0" }, "downloads": -1, "filename": "pypiparser-0.2.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4220eba020256c5da24d322bd73a9ea5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5404, "upload_time": "2019-06-26T22:02:54", "upload_time_iso_8601": "2019-06-26T22:02:54.824358Z", "url": "https://files.pythonhosted.org/packages/d7/e1/62179115eed7fee2f52e1af95d455f8351a7812cbbd2717a0035d4b3d8d8/pypiparser-0.2.3-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "08baa68f561d5015c1e0c385878434a8", "sha256": "c3585495ead43ce1680e1a584ce8a0db65b865f20f9b8a5426ce6aff06d3b2b0" }, "downloads": -1, "filename": "pypiparser-0.2.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "08baa68f561d5015c1e0c385878434a8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5481, "upload_time": "2019-07-04T17:14:25", "upload_time_iso_8601": "2019-07-04T17:14:25.669447Z", "url": "https://files.pythonhosted.org/packages/d4/22/f2ebbaa48673fc3fba6825604f1cec271f6e2c5447fa7b58354f0a404aa4/pypiparser-0.2.4-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "08baa68f561d5015c1e0c385878434a8", "sha256": "c3585495ead43ce1680e1a584ce8a0db65b865f20f9b8a5426ce6aff06d3b2b0" }, "downloads": -1, "filename": "pypiparser-0.2.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "08baa68f561d5015c1e0c385878434a8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5481, "upload_time": "2019-07-04T17:14:25", "upload_time_iso_8601": "2019-07-04T17:14:25.669447Z", "url": "https://files.pythonhosted.org/packages/d4/22/f2ebbaa48673fc3fba6825604f1cec271f6e2c5447fa7b58354f0a404aa4/pypiparser-0.2.4-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }