Skip to content

regoawt/pyrozza

Repository files navigation

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

About

A Python wrapper for the UK Police API

Resources

License

Stars

Watchers

Forks

Packages

No packages published