{ "info": { "author": "Troy Farrell", "author_email": "troy@entheossoft.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English" ], "description": "HandsetDetection Python API kit\r\n===============================\r\n\r\n:Author: Troy Farrell \r\n:Copyright: 2009, 2013 Teleport Corp Pty Ltd.\r\n:License: see the file LICENSE\r\n\r\nThis is a Python module exposing the Handset Detection API version 2.0. If you\r\naren't sure what that means, please visit http://handsetdetection.com/ and then\r\nread this document.\r\n\r\nAPI\r\n---\r\n\r\nThe API for handsetdetection.com is quite simple. There are four available\r\nmethods: detect, model, track, and vendor.\r\n\r\ndetect(data, options)\r\n Get device information and capabilities given sufficient idenifying\r\n information, such as a user-agent or x-wap-profile.\r\n\r\n data - a dictionary containing a User-Agent, IP address, x-wap-profile,\r\n and any other information that may be useful in identifying the\r\n handset\r\n options - a string or list of options to be returned from your query,\r\n e.g., \"geoip,product_info,display\" or [\"geoip\",\r\n \"product_info\"], etc.\r\n\r\nmodel(vendor)\r\n Get a list of models for a given vendor.\r\n\r\ntrack(data)\r\n Track a series of requests from a user. Tracking requests allows you to\r\n get better statistics from handsetdetection.com.\r\n\r\n data - a dictionary containing a User-Agent, IP address, x-wap-profile,\r\n and any other information that may be useful in identifying the\r\n handset\r\n\r\nvendor()\r\n Get a list of handset vendors.\r\n\r\nYou should also know about two methods of this API interface:\r\n\r\nset_v2_apikey(apikey)\r\n Set a new API key. This is only necessary if you wish you use a new API\r\n key or have modified this package in a significant way.\r\n\r\nset_credentials(username, secret)\r\n Your username is the e-mail address you used when you signed up at\r\n handsetdetection.com.\r\n\r\n The secret is the secret shown in your profile. It's your API version\r\n 2.0 secret - not your API version 1.0 APIKey.\r\n\r\nFor convenience, these methods are exposed as functions on the handsetdetection\r\npackage. Should you desire additional flexibility, use the methods on the\r\nhandsetdetection.HandsetDetection class.\r\n\r\nExamples\r\n--------\r\n\r\nThere are four examples describing the module's use in the examples directory::\r\n\r\ndetect.py\r\n Detect a mobile device and display the click-to-call and send-sms strings\r\n for the device.\r\ndetect_and_redirect.py\r\n Detect a mobile device and redirect it to a new URL.\r\nmodel.py\r\n For a given mobile device vendor, display known models.\r\nvendor.py\r\n Display known mobile device vendors.\r\n\r\nDeveloping This Package\r\n-----------------------\r\n\r\nThe following tools may be helpful to anyone furthering the development of this Python package::\r\n\r\n * docutils\r\n * Nose (nosetests)\r\n * pylint\r\n * setuptools", "description_content_type": null, "docs_url": null, "download_url": "http://handset-detection-python-api-kit.googlecode.com/files/handsetdetection-1.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://code.google.com/p/handset-detection-python-api-kit/", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "handsetdetection", "package_url": "https://pypi.org/project/handsetdetection/", "platform": "", "project_url": "https://pypi.org/project/handsetdetection/", "project_urls": { "Download": "http://handset-detection-python-api-kit.googlecode.com/files/handsetdetection-1.1.tar.gz", "Homepage": "http://code.google.com/p/handset-detection-python-api-kit/" }, "release_url": "https://pypi.org/project/handsetdetection/1.1/", "requires_dist": null, "requires_python": null, "summary": "Handset Detection Python API kit", "version": "1.1" }, "last_serial": 545537, "releases": { "1.0": [], "1.1": [ { "comment_text": "", "digests": { "md5": "c1fde585473a29c341434018d483de61", "sha256": "3eee448ff04fd642f9da78a33d8b22287f1d441964e07f4a614862d2b8f3331c" }, "downloads": -1, "filename": "handsetdetection-1.1.tar.gz", "has_sig": true, "md5_digest": "c1fde585473a29c341434018d483de61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21963, "upload_time": "2013-01-18T21:35:45", "url": "https://files.pythonhosted.org/packages/d2/73/5f03440630d281e5ccc37366b860cad454efb2cbf30971c51f04ffa407ca/handsetdetection-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c1fde585473a29c341434018d483de61", "sha256": "3eee448ff04fd642f9da78a33d8b22287f1d441964e07f4a614862d2b8f3331c" }, "downloads": -1, "filename": "handsetdetection-1.1.tar.gz", "has_sig": true, "md5_digest": "c1fde585473a29c341434018d483de61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21963, "upload_time": "2013-01-18T21:35:45", "url": "https://files.pythonhosted.org/packages/d2/73/5f03440630d281e5ccc37366b860cad454efb2cbf30971c51f04ffa407ca/handsetdetection-1.1.tar.gz" } ] }