{ "info": { "author": "Victor Oliveira da Silva", "author_email": "victor_o_silva@hotmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "python-links-from-link-header\n#############################\n\n.. image:: https://travis-ci.org/victor-o-silva/python-links-from-link-header.svg?branch=master\n :target: https://travis-ci.org/victor-o-silva/python-links-from-link-header\n\n.. image:: https://landscape.io/github/victor-o-silva/python-links-from-link-header/master/landscape.svg?style=flat\n :target: https://landscape.io/github/victor-o-silva/python-links-from-link-header/master\n :alt: Code Health\n\n.. image:: https://coveralls.io/repos/github/victor-o-silva/python-links-from-link-header/badge.svg?branch=master\n :target: https://coveralls.io/github/victor-o-silva/python-links-from-link-header?branch=master\n\nThis Python module contains only one function: ``extract``.\n\nIt extracts links and their relations from a Link Header Field [1]_ and\nreturns a dict where the keys are the relations and the values are the\nlinks themselves.\n\n.. [1] https://www.w3.org/wiki/LinkHeader and http://www.rfc-editor.org/rfc/rfc5988.txt\n\nInstallation\n************\n\n::\n\n pip install links-from-link-header\n\nUsage\n*****\n\n::\n \n >>> import links_from_header\n\n >>> header = '; rel=\"first\", ; rel=\"prev\", ; rel=\"next\", ; rel=\"last\"'\n\n >>> links_from_header.extract(header)\n {\n 'first': 'https://api.github.com/user/repos?page=1',\n 'prev': 'https://api.github.com/user/repos?page=9',\n 'next': 'https://api.github.com/user/repos?page=11',\n 'last': 'https://api.github.com/user/repos?page=50',\n }", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/victor-o-silva/python-links-from-link-header", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "links-from-link-header", "package_url": "https://pypi.org/project/links-from-link-header/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/links-from-link-header/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/victor-o-silva/python-links-from-link-header" }, "release_url": "https://pypi.org/project/links-from-link-header/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Python module that extracts links and their relations from a Link Header Field and returns them in a dict.", "version": "0.1.0" }, "last_serial": 2067516, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "0c505874b782780f72409ce74e8fef47", "sha256": "e0c1b5a34cee90dee55fa77c016d12144b116525527c790243d196281db9a25b" }, "downloads": -1, "filename": "links-from-link-header-0.1.0.tar.gz", "has_sig": false, "md5_digest": "0c505874b782780f72409ce74e8fef47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1629, "upload_time": "2016-04-16T19:30:02", "url": "https://files.pythonhosted.org/packages/f1/82/4a877f68045d7e503e60d021da6fefb18bd3be973ba44ff7edec4dc778ce/links-from-link-header-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0c505874b782780f72409ce74e8fef47", "sha256": "e0c1b5a34cee90dee55fa77c016d12144b116525527c790243d196281db9a25b" }, "downloads": -1, "filename": "links-from-link-header-0.1.0.tar.gz", "has_sig": false, "md5_digest": "0c505874b782780f72409ce74e8fef47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1629, "upload_time": "2016-04-16T19:30:02", "url": "https://files.pythonhosted.org/packages/f1/82/4a877f68045d7e503e60d021da6fefb18bd3be973ba44ff7edec4dc778ce/links-from-link-header-0.1.0.tar.gz" } ] }