https://github.com/happyleavesaoc/python-crimereports
https://github.com/happyleavesaoc/python-crimereports
crimereports python
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/happyleavesaoc/python-crimereports
- Owner: happyleavesaoc
- License: mit
- Created: 2017-02-13T22:02:39.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-02-18T18:34:07.000Z (almost 7 years ago)
- Last Synced: 2024-11-01T08:18:59.409Z (about 1 year ago)
- Topics: crimereports, python
- Language: Python
- Size: 6.84 KB
- Stars: 3
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
python-crimereports [](https://travis-ci.org/happyleavesaoc/python-crimereports)
==============================================================================================================================================================================================
Provides basic API to [Crime Reports](http://crimereports.com).
## Install
`pip install crimereports`
## Usage
```python
import datetime
from crimereports import CrimeReports
cr = CrimeReports((lat, lng), radius, miles=True)
for incident in cr.get_incidents(datetime.datetime.now().date(), None, ['Community Policing']):
print(incident)
```
## Development
Pull requests welcome. Must pass `tox` and include tests.
## Disclaimer
Not affiliated with crimereports.com. Use at your own risk.