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.0.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.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyrozza-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 9164bf2c4a1c5a2ec55b15457c852c980fe9782c705b4c12f338e0a9010cd55e
MD5 8e111d54785ca3bc9e8715785a8dabe7
BLAKE2b-256 c492d26d987d6de6ab33fa1bab5833b821d5376ab5e177a3d970cb84f21cc090

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrozza-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7711c8676c5142ce11043792198add661ec1b557dc2ecb055690c2cd13979067
MD5 dd916e72c0b7b8f0f7adfa06e590a03d
BLAKE2b-256 cf611786535d1429c36f129a1292f944e9073ab9bddae1a8773f3b796b3f1c49

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