Skip to main content

A Python wrapper for the UK Police API

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrozza-0.1.0a1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrozza-0.1.0a1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file pyrozza-0.1.0a1.tar.gz.

File metadata

  • Download URL: pyrozza-0.1.0a1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.15 CPython/3.8.13 Linux/5.15.0-1017-azure

File hashes

Hashes for pyrozza-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 51f27f729278237b92466d458be89ba43c215f8e462e87c1e09b4a1ce7dfd1b6
MD5 1b3e58a80fd8c34b53f4a9df0447751b
BLAKE2b-256 43d98edbd3e19c0b52558c7af7b2826fdfcf334b87812f8b541a31afe8450ea8

See more details on using hashes here.

File details

Details for the file pyrozza-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: pyrozza-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.15 CPython/3.8.13 Linux/5.15.0-1017-azure

File hashes

Hashes for pyrozza-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc2329450ad12487f2e7640948e037c36a8a2edba29d81120082701f01bc94bf
MD5 df3098e7bb3b3d2a19744636a018db76
BLAKE2b-256 04d6075dd74c1cc34fe86d218a89a7c8b6a4fc159f4afdba87351473af2d0afb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page