An open API service indexing awesome lists of open source software.

https://github.com/happyleavesaoc/python-crimereports


https://github.com/happyleavesaoc/python-crimereports

crimereports python

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

python-crimereports [![Build Status](https://travis-ci.org/happyleavesaoc/python-crimereports.svg?branch=master)](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.