{ "info": { "author": "Chris Drackett", "author_email": "drackett@mac.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "About\n=====\n\nThis application adds attributes to your request object that describe the users browser. This will let you fine tune the templates or code to use based on the traits of the browser.\n\nThe following is currently added to the request:\n\nSimple Device\n-------------\n\n\trequest.is_simple_device\n\nTrue for all non-desktop devices (browsers) without \"modern\" CSS and JS support. This includes non \"smart\" phones and simpler browsers like those found on game consoles and the kindle.\n\nTouch Device\n------------\n\n\trequest.is_touch_device\n\nTrue for devices that use touch events.\n\nWide Device\n-----------\n\n\trequest.is_wide_device\n\nTrue for devices that are wider than a common mobile phone. This covers tablets and desktop browsers.\n\nDevice Type\n-----------\n\n\trequest.is_ios_device\n\trequest.is_ios5_device\n\trequest.is_android_device\n\trequest.is_webos_device\n\trequest.is_windows_phone_device\n\trequest.is_kindle_device\n\nTrue if the device is part of the given platform.\n\nThese give more granular information about modern smart devices. This is helpful if you want to target features to a specific device type.\n\nOther Attributes\n----------------\n\n\trequest.is_webkit\n\nTrue if the browser is webkit (desktop or mobile.)\n\nInstallation\n============\n\nAfter you've added browser_info to your python path (manually or with pip) you can access its attributes with one of two methods.\n\nAll Requests\n------------\n\nTo use browser_info on all requests just add\n\n\tbrowser_info.Middleware\n\nto the `MIDDLEWARE_CLASSES` tuple in your settings.py\n\nSpecific Requests\n-----------------\n\nIf you only have certain views that need the distinction all you need to do is wrap the relevant views like this:\n\n\tfrom browser_info import add_browser_info\n\n\t@add_browser_info\n\tdef my_mobile_view(request):\n\t\t# your view code here.", "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/chrisdrackett/django-browser-info", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-browser-info", "package_url": "https://pypi.org/project/django-browser-info/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-browser-info/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/chrisdrackett/django-browser-info" }, "release_url": "https://pypi.org/project/django-browser-info/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "Django middleware and view decorator to add browser info to the request object", "version": "1.0.1" }, "last_serial": 789214, "releases": { "0.9": [], "0.9.1": [ { "comment_text": "", "digests": { "md5": "49d39864b147598e40d5b7bcf84354d6", "sha256": "f159ed8689b31b23049aef07b0901eb81a560cc6676096a674345fda7eb3b136" }, "downloads": -1, "filename": "django-browser-info-0.9.1.tar.gz", "has_sig": false, "md5_digest": "49d39864b147598e40d5b7bcf84354d6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4372, "upload_time": "2011-03-23T18:37:09", "url": "https://files.pythonhosted.org/packages/5c/ad/45c65266aa8b09c901e2af3120aa430bde24d6b68cb045ed42023288ce4f/django-browser-info-0.9.1.tar.gz" } ], "0.9.2": [ { "comment_text": "", "digests": { "md5": "6e2866ce953f8449697bbdbd819b17eb", "sha256": "9bd6da7144ff5135ae957aa2a84aea25132cc66cf30a1f65d30d87a66d9c3b94" }, "downloads": -1, "filename": "django-browser-info-0.9.2.tar.gz", "has_sig": false, "md5_digest": "6e2866ce953f8449697bbdbd819b17eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3532, "upload_time": "2011-03-30T18:59:09", "url": "https://files.pythonhosted.org/packages/1f/7c/1d1b1204cd7c6740aa243ee4bc135fbde7422a589301a8e64423e3590731/django-browser-info-0.9.2.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "5915300595acfe0f62225c780e97c086", "sha256": "8dde2c68e0418983a0362cee99d436bba8bdbd056148e1d7b0c5f682a01497af" }, "downloads": -1, "filename": "django-browser-info-1.0.tar.gz", "has_sig": false, "md5_digest": "5915300595acfe0f62225c780e97c086", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4519, "upload_time": "2011-10-08T00:30:03", "url": "https://files.pythonhosted.org/packages/2d/6c/a0fbad493c14338c285e0710f1adab3e8ce783818a788bc9c352c21c504c/django-browser-info-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "52141d8eb3c49f3a923c9d16d96089a8", "sha256": "ce8e7f55e5dc1da8a169958e99bbb985495d06e0c8ab5e3e51349fe6d83baeb0" }, "downloads": -1, "filename": "django-browser-info-1.0.1.tar.gz", "has_sig": false, "md5_digest": "52141d8eb3c49f3a923c9d16d96089a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4683, "upload_time": "2012-05-04T23:17:14", "url": "https://files.pythonhosted.org/packages/bf/1f/b5fe128c0ecd4f0e5441b1f1a4481eef92df3430a5422e9b82430e41e2ea/django-browser-info-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "52141d8eb3c49f3a923c9d16d96089a8", "sha256": "ce8e7f55e5dc1da8a169958e99bbb985495d06e0c8ab5e3e51349fe6d83baeb0" }, "downloads": -1, "filename": "django-browser-info-1.0.1.tar.gz", "has_sig": false, "md5_digest": "52141d8eb3c49f3a923c9d16d96089a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4683, "upload_time": "2012-05-04T23:17:14", "url": "https://files.pythonhosted.org/packages/bf/1f/b5fe128c0ecd4f0e5441b1f1a4481eef92df3430a5422e9b82430e41e2ea/django-browser-info-1.0.1.tar.gz" } ] }