{ "info": { "author": "Rhys Elsmore", "author_email": "me@rhys.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "accept\n======\n\n\n.. image:: https://travis-ci.org/rhyselsmore/accept.png?branch=master\n :target: https://travis-ci.org/rhyselsmore/accept\n\n.. image:: https://pypip.in/d/accept/badge.png\n :target: https://pypi.python.org/pypi/accept\n\n\nA simple library for parsing and ordering a HTTP Accept header.\n\nIncludes parameter extraction.\n\n\nInstallation\n------------\n\n.. code-block:: bash\n\n pip install accept\n\nOr if you *must* use easy_install:\n\n.. code-block:: bash\n\n alias easy_install=\"pip install $1\"\n easy_install accept\n\n\nUsage\n-----\n\n.. code-block:: python\n\n >>> import accept\n >>> accept.parse(\"text/*, text/html, text/html;level=1, */*\")\n [, , , ]\n >>> d = accept.parse(\"application/json; version=1; q=1.0; response=raw\")[0]\n >>> d.media_type\n 'application/json'\n >>> d.quality\n 1.0\n >>> d.q\n 1.0\n >>> d.params\n {'version': '1', 'response': 'raw'}\n >>> d['version']\n '1'\n >>> d['potato']\n None\n\n\nContribute\n----------\n\n#. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug. There is a Contributor Friendly tag for issues that should be ideal for people who are not very familiar with the codebase yet.\n#. Fork `the repository`_ on Github to start making your changes to the **master** branch (or branch off of it).\n#. Write a test which shows that the bug was fixed or that the feature works as expected.\n#. Send a pull request and bug the maintainer until it gets merged and published.\n\n.. _`the repository`: http://github.com/rhyselsmore/accept\n\n\nHistory\n-------\n\n0.1.0 (2015-01-05)\n++++++++++++++++++\n\n* Initial Release!", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/rhyselsmore/accept", "keywords": null, "license": "Copyright (c) 2015, Rhys Elsmore \n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\nACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\nOR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "accept", "package_url": "https://pypi.org/project/accept/", "platform": "any", "project_url": "https://pypi.org/project/accept/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/rhyselsmore/accept" }, "release_url": "https://pypi.org/project/accept/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Parse and order a HTTP Accept header.", "version": "0.1.0" }, "last_serial": 1370657, "releases": { "0": [], "0.1.0": [ { "comment_text": "", "digests": { "md5": "924283e7d43b81006eeccfd69d2873f6", "sha256": "760241df3a6be5a5c4f00682a381280a8c3c7e0286fd55612f68d0f9e9dcfed4" }, "downloads": -1, "filename": "accept-0.1.0.tar.gz", "has_sig": false, "md5_digest": "924283e7d43b81006eeccfd69d2873f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4328, "upload_time": "2015-01-05T05:03:24", "url": "https://files.pythonhosted.org/packages/21/c4/979ec79b3d6b9a882a75930f7342d8144c2bb4bff340777c3ea6d222678a/accept-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "924283e7d43b81006eeccfd69d2873f6", "sha256": "760241df3a6be5a5c4f00682a381280a8c3c7e0286fd55612f68d0f9e9dcfed4" }, "downloads": -1, "filename": "accept-0.1.0.tar.gz", "has_sig": false, "md5_digest": "924283e7d43b81006eeccfd69d2873f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4328, "upload_time": "2015-01-05T05:03:24", "url": "https://files.pythonhosted.org/packages/21/c4/979ec79b3d6b9a882a75930f7342d8144c2bb4bff340777c3ea6d222678a/accept-0.1.0.tar.gz" } ] }