{ "info": { "author": "Rock Kitchen Harris", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [], "description": "Police API Client (Python) |travis_badge|\n=========================================\n\nA Python client for the `Police API`_. Supports Python 2.6, 2.7, 3.2, 3.3 and\n3.4.\n\nInstallation\n------------\n\nInstall the Police API client with ``pip``::\n\n pip install police-api-client\n\nUsage\n-----\n\nThe Police API doesn't require authentication, so no setup is required::\n\n >>> from police_api import PoliceAPI\n >>> api = PoliceAPI()\n\nRetrieving force & neighbourhood data::\n\n >>> api.get_forces()\n [ Avon and Somerset Constabulary, ..., Wiltshire Police]\n >>> leicestershire = api.get_force('leicestershire')\n >>> city_centre = api.get_neighbourhood(leicestershire, 'city-centre-neighbourhood')\n >>> city_centre.description\n The Castle neighbourhood\u00a0is\u00a0a diverse\u00a0covering all of the City Centre. In addition it covers De Montfort University, the Univesity of Leicester,\u00a0Leicester Royal Infirmary, the Leicester Tigers rugby ground and\u00a0the Clarendon Park and Riverside communities.\n ...\n >>> city_centre.contact_details\n {u'email': u'central.lpu@leicestershire.pnn.police.uk', u'telephone': u'101', u'address': u'74 Belgrave Gate\\n, Leicester, LE1 3GG'}\n\nLocating neighbourhoods::\n\n >>> n = api.locate_neighbourhood(52.63473, -1.137514)\n >>> n\n C04\n >>> n.force\n Leicestershire Police\n\nCrime & outcomes data::\n\n >>> api.get_latest_date()\n u'2013-09'\n >>> api.get_crimes_area(city_centre.boundary)\n [ 26926242, ..., 26925710]\n >>> len(api.get_crimes_area(city_centre.boundary, date='2013-08'))\n 810\n >>> crime = api.get_crimes_area(city_centre.boundary, date='2013-06')[0]\n >>> crime.outcomes\n [ Under investigation, Suspect charged, Awaiting court outcome]\n\nFor more advanced usage, see the documentation_.\n\n.. _Police API: http://data.police.uk/docs/\n.. _documentation: http://police-api-client-python.readthedocs.org\n\n.. |travis_badge| image:: https://api.travis-ci.org/rkhleics/police-api-client-python.svg\n :target: https://travis-ci.org/rkhleics/police-api-client-python", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/rkhleics/police-api-client-python/downloads", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rkhleics/police-api-client-python", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "police-api-client", "package_url": "https://pypi.org/project/police-api-client/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/police-api-client/", "project_urls": { "Download": "https://github.com/rkhleics/police-api-client-python/downloads", "Homepage": "https://github.com/rkhleics/police-api-client-python" }, "release_url": "https://pypi.org/project/police-api-client/1.2.2/", "requires_dist": null, "requires_python": null, "summary": "Python client library for the Police API", "version": "1.2.2" }, "last_serial": 1119206, "releases": { "0.9": [ { "comment_text": "", "digests": { "md5": "aaa0478fa7251b9030566e2d997c73d9", "sha256": "5ac05671a0beaf2782c7d2f9070e9030abb58139dc957b295825cda93910af8f" }, "downloads": -1, "filename": "police-api-client-0.9.tar.gz", "has_sig": false, "md5_digest": "aaa0478fa7251b9030566e2d997c73d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6529, "upload_time": "2013-11-13T14:52:20", "url": "https://files.pythonhosted.org/packages/6d/02/901e6d2b1c2cac0cb8fec5329ab6103bd9b64b845d86d4d2523476f13cbc/police-api-client-0.9.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "0d0e85277699c29e4022b52ba3ab198f", "sha256": "fca42708eeef44bcaa8581391911f6b91609a8bf32a807146825eed775e72b79" }, "downloads": -1, "filename": "police-api-client-1.0.0.tar.gz", "has_sig": false, "md5_digest": "0d0e85277699c29e4022b52ba3ab198f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8863, "upload_time": "2013-12-11T11:54:48", "url": "https://files.pythonhosted.org/packages/12/fa/0a2dc09f3f8cf8fb751398b7d7916a4ae19013ec25686bd3579c9c34d541/police-api-client-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "84efcb9b919e42465c5f663bc8c12bdb", "sha256": "bbc57632b8d7a841a2b850dae2e15d262fa51e4a3abefcdfe0dff93afee2e630" }, "downloads": -1, "filename": "police-api-client-1.0.1.tar.gz", "has_sig": false, "md5_digest": "84efcb9b919e42465c5f663bc8c12bdb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9186, "upload_time": "2014-01-20T15:00:43", "url": "https://files.pythonhosted.org/packages/47/ed/55091d0c1c04c611da3e69105209c4ba71004a54858307c71764fc3ebdfb/police-api-client-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "1688659e2392a3be0cf26e8d35e57dee", "sha256": "558bcb4242b212f43fc8378ed60b928a405619cf5f5443bc79d0a8622a2a400a" }, "downloads": -1, "filename": "police-api-client-1.0.2.tar.gz", "has_sig": false, "md5_digest": "1688659e2392a3be0cf26e8d35e57dee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9158, "upload_time": "2014-02-12T10:23:12", "url": "https://files.pythonhosted.org/packages/e5/18/7089f22ced7db9a1f9a25d312b219c04b0c4c49c81622eb7fef38341cbb0/police-api-client-1.0.2.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "05d2b618d8d2b251e8b49ef84ef4a438", "sha256": "124a50fde0587f282fdb17ccd7cb44873f8b49c29dcf7fe83983fc73c23dd563" }, "downloads": -1, "filename": "police-api-client-1.1.0.tar.gz", "has_sig": false, "md5_digest": "05d2b618d8d2b251e8b49ef84ef4a438", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9363, "upload_time": "2014-03-17T12:56:12", "url": "https://files.pythonhosted.org/packages/5a/26/3beb85461cbc236acbc36cf16b0dadff3adeb5b5ad4e01e367d61090ea21/police-api-client-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "dfc7237bb8451f78e1a97707f35090a3", "sha256": "8216959419c29bf0c89d2871dbe64feac30589a22cd357f8c88513c2aed97199" }, "downloads": -1, "filename": "police-api-client-1.2.0.tar.gz", "has_sig": false, "md5_digest": "dfc7237bb8451f78e1a97707f35090a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9624, "upload_time": "2014-05-15T11:29:12", "url": "https://files.pythonhosted.org/packages/87/96/a38243f3961031dc0025213490e48de1f36b3a55524648db9d03c06939b2/police-api-client-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "f2d4e85dbf56cc2dc8269287fdfa308a", "sha256": "c9145a02fd29b56ebb0bc0a5439206ffbec6a190aab789aa5cb95ccaa6c5e70c" }, "downloads": -1, "filename": "police-api-client-1.2.1.tar.gz", "has_sig": false, "md5_digest": "f2d4e85dbf56cc2dc8269287fdfa308a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9901, "upload_time": "2014-06-09T11:16:13", "url": "https://files.pythonhosted.org/packages/7d/e0/42eafa7351b12830a0e1e0119df88b9da530eb8ac060f62454ee5aace8ee/police-api-client-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "4b9a2ccc0696fddaa0e3ef789cbb8a7e", "sha256": "df93e41e226efbbae81b34d8d111bb9436b2b1b0c6db18805af8b9f538b0da94" }, "downloads": -1, "filename": "police-api-client-1.2.2.tar.gz", "has_sig": false, "md5_digest": "4b9a2ccc0696fddaa0e3ef789cbb8a7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10024, "upload_time": "2014-06-09T13:39:41", "url": "https://files.pythonhosted.org/packages/d6/62/158fee6d35be9d6e5f28a775c110648ca564edc23c344748573c91bd7172/police-api-client-1.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4b9a2ccc0696fddaa0e3ef789cbb8a7e", "sha256": "df93e41e226efbbae81b34d8d111bb9436b2b1b0c6db18805af8b9f538b0da94" }, "downloads": -1, "filename": "police-api-client-1.2.2.tar.gz", "has_sig": false, "md5_digest": "4b9a2ccc0696fddaa0e3ef789cbb8a7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10024, "upload_time": "2014-06-09T13:39:41", "url": "https://files.pythonhosted.org/packages/d6/62/158fee6d35be9d6e5f28a775c110648ca564edc23c344748573c91bd7172/police-api-client-1.2.2.tar.gz" } ] }