Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 756 Bytes

README.md

File metadata and controls

33 lines (29 loc) · 756 Bytes

Build

pyrozza

A Python wrapper for the UK Police API

Usage

Instantiate the client:

client = pyrozza.Client()

Currently, the following methods are available:

client.street_level_crimes(
        lat: float = None,
        lon: float = None,
        poly: List[tuple] = None,
        date: str = None,
    )
client.street_level_outcomes(
        lat: float = None,
        lon: float = None,
        poly: List[tuple] = None,
        location_id: int = None,
        date: str = None
    )

client.crime_categories(date: str = None)

For the geo-related kwargs, only one of the following must be provided:

  • lat AND lon
  • poly
  • location_id