Crime Categories

class police_api.crime.CrimeCategory(api, data={})

A crime category. Uses the crime-categories API call.

Parameters:
  • api (PoliceAPI) – The instance of PoliceAPI to use.
  • data (dict) – The attributes that will be copied to this instance.
id
Type:str

This crime category’s slugified name.

name
Type:str

The name of this crime category.