Name | openpolicedata JSON |
Version |
0.12
JSON |
| download |
home_page | None |
Summary | The OpenPoliceData (OPD) Python library is the most comprehensive centralized public access point for incident-level police data |
upload_time | 2025-07-28 23:39:29 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
license | BSD 3-Clause License
Copyright (c) 2021, sowdm
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
keywords |
police data
use of force
traffic
stops
complaints
officer-involved
shootings
pandas
arcgis
socrata
police transparency
police accountability
|
VCS |
 |
bugtrack_url |
|
requirements |
sodapy
pandas
rapidfuzz
numpy
requests
packaging
tqdm
openpyxl
typing-extensions
xlrd
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
[](https://badge.fury.io/py/openpolicedata)
[](https://openpolicedata.streamlit.app)
# OpenPoliceData
The OpenPoliceData (OPD) Python library is the most comprehensive centralized public access point for incident-level police data in the United States. OPD provides easy access to 550+ incident-level datasets from 236 police agencies and 11 entire states. Types of data include traffic stops, use of force, officer-involved shootings, and complaints.
Users request data by department name and type of data, and the data is returned as a [pandas DataFrame](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html). There is no need to manually find the data online or to know how to work with open data APIs (ArcGIS, Socrata, etc.). When data is loaded by OPD, the returned data is unmodified (with the exception of formatting known date fields) from what appears on the source's site, and OPD provides links to the original data for transparency.
OpenPoliceData can be installed from the Python Package Index (PyPI):
```
pip install openpolicedata
```
OpenPoliceData provides access to police data with 2 simple lines of code:
```
> import openpolicedata as opd
> src = opd.Source("New Orleans")
> data = src.load(table_type="USE OF FORCE", date=2022)
```
- Documentation: https://openpolicedata.readthedocs.io/
- Source Code: https://github.com/openpolicedata/openpolicedata
- Bug Tracker: https://github.com/openpolicedata/openpolicedata/issues
- [Latest Datasets](#latest-datasets-added)
- [Release Notes](#release-notes-for-version-057-2023-09-05)
- [Contributing](#contributing)

## Latest Datasets Added to OPD
**We've added a huge number of datasets recently!**
- 2025 datasets: Phoenix and San Jose Calls for Service, Cedar Lake, IN Arrests, Calls for Service, Traffic Stops, Traffic Citations, Traffic Warnings, and Crashes, Griffith, IN Arrests, Calls for Service, Traffic Stops, Traffic Citations, Traffic Warnings, and Crashes, St. John, IN Arrests, Calls for Service, Traffic Stops, Traffic Citations, Traffic Warnings, and Crashes, Wichita Crashes, Louisville Incidents, New Orleans Calls for Services and Incidents, Minneapolis Incidents, Portland, OR Calls for Service
- 2024 datasets: Oakland Use of Force, Washington D.C. Incidents and Lawsuits, Chicago Pedestrian Stops, Louisville Incidents, New Orleans Calls for Services and Incidents, Baltimore Calls for Service, Pittsfield, MA Arrests and Crashes, Lincoln Calls for Service, Incidents, Traffic Stops, Vehicle Pursuits, and Use of Force, New York City Pedestrian Stops, Asheville Calls for Service, Durham Calls for Service, Norman Arrests, Comlaints, Crashes, Incidents, Traffic Stops and Use of Force, Charleston Citations, Nashville Calls for Service, Albemarle County VA STOPS, Bremerton, WA Arrests, Citations, and Incidents
- California: Stops data for all departments submitted for RIPA for 2018-2023
- Cincinnati Officer Involved Shootings and Use of Force
- Memphis Traffic Citations and Traffic Stops
- New Jersey State Police 2021 Traffic Stops
- Los Angeles Calls for Service and Incidents
- Seattle Arrests
- Portland, OR Arrests and Incidents
- Richmond, CA Arrests
## Contributing
[<img src="https://avatars.githubusercontent.com/u/67804485" alt="Alt Text" width="35" height="35">](https://github.com/sowdm)
[<img src="https://avatars.githubusercontent.com/u/9930263" alt="Alt Text" width="35" height="35">](https://github.com/potto216)
[<img src="https://avatars.githubusercontent.com/u/56132560" alt="Alt Text" width="35" height="35">](https://github.com/minkedup)
[<img src="https://avatars.githubusercontent.com/u/42755301" alt="Alt Text" width="35" height="35">](https://github.com/imrnmzri)
[<img src="https://avatars.githubusercontent.com/u/178184249" alt="Alt Text" width="35" height="35">](https://github.com/Brijeshthummar02)
[<img src="https://avatars.githubusercontent.com/u/142138112" alt="Alt Text" width="35" height="35">](https://github.com/harikrishnatp)
[<img src="https://avatars.githubusercontent.com/u/170487658" alt="Alt Text" width="35" height="35">](https://github.com/gotog11)
[<img src="https://avatars.githubusercontent.com/u/98405259" alt="Alt Text" width="35" height="35">](https://github.com/apancoast)
All contributions are welcome including code enhancments, bug fixes, bug reports, documentation updates, and locating new datasets. If you're interesting in helping out, see our [Contributing Guide](https://github.com/openpolicedata/openpolicedata/blob/main/CONTRIBUTING.MD) or reach out by [email](mailto:openpolicedata@gmail.com).
## v0.12 - 2025-07-27
### Changed
- Name of year input changed to date in Table and Source classes to more clearly reflect that input can handle both year and date ranges
### Deprecated
- Usage of year input changed to date in Table and Source classes. date input should be used instead.
Complete change log available at: https://github.com/openpolicedata/openpolicedata/blob/main/CHANGELOG.md
Raw data
{
"_id": null,
"home_page": null,
"name": "openpolicedata",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "police data, use of force, traffic, stops, complaints, officer-involved, shootings, pandas, arcgis, socrata, police transparency, police accountability",
"author": null,
"author_email": "Matt Sowd <openpolicedata@gmail.com>, Paul Otto <potto@ieee.org>",
"download_url": "https://files.pythonhosted.org/packages/c5/15/629e94fdf99dea45723c5734aed5b00613ee48da463abf54e18d8be53d58/openpolicedata-0.12.tar.gz",
"platform": null,
"description": "[](https://badge.fury.io/py/openpolicedata)\r\n[](https://openpolicedata.streamlit.app)\r\n\r\n# OpenPoliceData\r\nThe OpenPoliceData (OPD) Python library is the most comprehensive centralized public access point for incident-level police data in the United States. OPD provides easy access to 550+ incident-level datasets from 236 police agencies and 11 entire states. Types of data include traffic stops, use of force, officer-involved shootings, and complaints. \r\n\r\nUsers request data by department name and type of data, and the data is returned as a [pandas DataFrame](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html). There is no need to manually find the data online or to know how to work with open data APIs (ArcGIS, Socrata, etc.). When data is loaded by OPD, the returned data is unmodified (with the exception of formatting known date fields) from what appears on the source's site, and OPD provides links to the original data for transparency.\r\n\r\nOpenPoliceData can be installed from the Python Package Index (PyPI):\r\n```\r\npip install openpolicedata\r\n``` \r\n\r\nOpenPoliceData provides access to police data with 2 simple lines of code:\r\n```\r\n> import openpolicedata as opd\r\n> src = opd.Source(\"New Orleans\")\r\n> data = src.load(table_type=\"USE OF FORCE\", date=2022)\r\n```\r\n\r\n- Documentation: https://openpolicedata.readthedocs.io/\r\n- Source Code: https://github.com/openpolicedata/openpolicedata\r\n- Bug Tracker: https://github.com/openpolicedata/openpolicedata/issues\r\n- [Latest Datasets](#latest-datasets-added)\r\n- [Release Notes](#release-notes-for-version-057-2023-09-05)\r\n- [Contributing](#contributing)\r\n\r\n\r\n\r\n\r\n## Latest Datasets Added to OPD\r\n**We've added a huge number of datasets recently!**\r\n- 2025 datasets: Phoenix and San Jose Calls for Service, Cedar Lake, IN Arrests, Calls for Service, Traffic Stops, Traffic Citations, Traffic Warnings, and Crashes, Griffith, IN Arrests, Calls for Service, Traffic Stops, Traffic Citations, Traffic Warnings, and Crashes, St. John, IN Arrests, Calls for Service, Traffic Stops, Traffic Citations, Traffic Warnings, and Crashes, Wichita Crashes, Louisville Incidents, New Orleans Calls for Services and Incidents, Minneapolis Incidents, Portland, OR Calls for Service\r\n- 2024 datasets: Oakland Use of Force, Washington D.C. Incidents and Lawsuits, Chicago Pedestrian Stops, Louisville Incidents, New Orleans Calls for Services and Incidents, Baltimore Calls for Service, Pittsfield, MA Arrests and Crashes, Lincoln Calls for Service, Incidents, Traffic Stops, Vehicle Pursuits, and Use of Force, New York City Pedestrian Stops, Asheville Calls for Service, Durham Calls for Service, Norman Arrests, Comlaints, Crashes, Incidents, Traffic Stops and Use of Force, Charleston Citations, Nashville Calls for Service, Albemarle County VA STOPS, Bremerton, WA Arrests, Citations, and Incidents\r\n- California: Stops data for all departments submitted for RIPA for 2018-2023\r\n- Cincinnati Officer Involved Shootings and Use of Force\r\n- Memphis Traffic Citations and Traffic Stops\r\n- New Jersey State Police 2021 Traffic Stops\r\n- Los Angeles Calls for Service and Incidents\r\n- Seattle Arrests\r\n- Portland, OR Arrests and Incidents\r\n- Richmond, CA Arrests\r\n\r\n## Contributing\r\n[<img src=\"https://avatars.githubusercontent.com/u/67804485\" alt=\"Alt Text\" width=\"35\" height=\"35\">](https://github.com/sowdm)\r\n[<img src=\"https://avatars.githubusercontent.com/u/9930263\" alt=\"Alt Text\" width=\"35\" height=\"35\">](https://github.com/potto216)\r\n[<img src=\"https://avatars.githubusercontent.com/u/56132560\" alt=\"Alt Text\" width=\"35\" height=\"35\">](https://github.com/minkedup)\r\n[<img src=\"https://avatars.githubusercontent.com/u/42755301\" alt=\"Alt Text\" width=\"35\" height=\"35\">](https://github.com/imrnmzri)\r\n[<img src=\"https://avatars.githubusercontent.com/u/178184249\" alt=\"Alt Text\" width=\"35\" height=\"35\">](https://github.com/Brijeshthummar02)\r\n[<img src=\"https://avatars.githubusercontent.com/u/142138112\" alt=\"Alt Text\" width=\"35\" height=\"35\">](https://github.com/harikrishnatp)\r\n[<img src=\"https://avatars.githubusercontent.com/u/170487658\" alt=\"Alt Text\" width=\"35\" height=\"35\">](https://github.com/gotog11)\r\n[<img src=\"https://avatars.githubusercontent.com/u/98405259\" alt=\"Alt Text\" width=\"35\" height=\"35\">](https://github.com/apancoast)\r\n\r\nAll contributions are welcome including code enhancments, bug fixes, bug reports, documentation updates, and locating new datasets. If you're interesting in helping out, see our [Contributing Guide](https://github.com/openpolicedata/openpolicedata/blob/main/CONTRIBUTING.MD) or reach out by [email](mailto:openpolicedata@gmail.com).\r\n\r\n## v0.12 - 2025-07-27\r\n### Changed\r\n- Name of year input changed to date in Table and Source classes to more clearly reflect that input can handle both year and date ranges\r\n### Deprecated\r\n- Usage of year input changed to date in Table and Source classes. date input should be used instead.\r\n\r\nComplete change log available at: https://github.com/openpolicedata/openpolicedata/blob/main/CHANGELOG.md\r\n",
"bugtrack_url": null,
"license": "BSD 3-Clause License\r\n \r\n Copyright (c) 2021, sowdm\r\n All rights reserved.\r\n \r\n Redistribution and use in source and binary forms, with or without\r\n modification, are permitted provided that the following conditions are met:\r\n \r\n 1. Redistributions of source code must retain the above copyright notice, this\r\n list of conditions and the following disclaimer.\r\n \r\n 2. Redistributions in binary form must reproduce the above copyright notice,\r\n this list of conditions and the following disclaimer in the documentation\r\n and/or other materials provided with the distribution.\r\n \r\n 3. Neither the name of the copyright holder nor the names of its\r\n contributors may be used to endorse or promote products derived from\r\n this software without specific prior written permission.\r\n \r\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\r\n AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\r\n DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\r\n FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r\n DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\r\n SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\r\n CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\r\n OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\r\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r\n ",
"summary": "The OpenPoliceData (OPD) Python library is the most comprehensive centralized public access point for incident-level police data ",
"version": "0.12",
"project_urls": {
"documentation": "https://openpolicedata.readthedocs.io/en/stable/documentation.html",
"homepage": "https://openpolicedata.readthedocs.io/",
"repository": "https://github.com/openpolicedata/openpolicedata",
"tracker": "https://github.com/openpolicedata/openpolicedata/issues"
},
"split_keywords": [
"police data",
" use of force",
" traffic",
" stops",
" complaints",
" officer-involved",
" shootings",
" pandas",
" arcgis",
" socrata",
" police transparency",
" police accountability"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "4646b95da0a33273c0c014436170e99930161263f1a16d306b571bb9a85f3d3f",
"md5": "59a4b83d7430e28197fd400b94a9d205",
"sha256": "7f25f0f078bd438fa654d23b4607ec0880740d36085fa885001822e2fa46ca3b"
},
"downloads": -1,
"filename": "openpolicedata-0.12-py3-none-any.whl",
"has_sig": false,
"md5_digest": "59a4b83d7430e28197fd400b94a9d205",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 152487,
"upload_time": "2025-07-28T23:39:27",
"upload_time_iso_8601": "2025-07-28T23:39:27.735939Z",
"url": "https://files.pythonhosted.org/packages/46/46/b95da0a33273c0c014436170e99930161263f1a16d306b571bb9a85f3d3f/openpolicedata-0.12-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "c515629e94fdf99dea45723c5734aed5b00613ee48da463abf54e18d8be53d58",
"md5": "36c5e68fef9d5eee5dcfbd8d909a14f9",
"sha256": "68e5869c54102fa36b1de8781faaa34f25b3c9757961cc839ed80ae5fb1ede89"
},
"downloads": -1,
"filename": "openpolicedata-0.12.tar.gz",
"has_sig": false,
"md5_digest": "36c5e68fef9d5eee5dcfbd8d909a14f9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 176185,
"upload_time": "2025-07-28T23:39:29",
"upload_time_iso_8601": "2025-07-28T23:39:29.344933Z",
"url": "https://files.pythonhosted.org/packages/c5/15/629e94fdf99dea45723c5734aed5b00613ee48da463abf54e18d8be53d58/openpolicedata-0.12.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-28 23:39:29",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "openpolicedata",
"github_project": "openpolicedata",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "sodapy",
"specs": []
},
{
"name": "pandas",
"specs": [
[
"<",
"3.0.0"
],
[
">=",
"2.1"
]
]
},
{
"name": "rapidfuzz",
"specs": []
},
{
"name": "numpy",
"specs": []
},
{
"name": "requests",
"specs": []
},
{
"name": "packaging",
"specs": []
},
{
"name": "tqdm",
"specs": []
},
{
"name": "openpyxl",
"specs": []
},
{
"name": "typing-extensions",
"specs": []
},
{
"name": "xlrd",
"specs": []
}
],
"lcname": "openpolicedata"
}