Skip to main content

A simple command line app for retrieving data on UK police forces and neighbourhoods.

Screenshot of ukpol

Installation

pip install ukpol-cli

Usage

The command has 4 main arguments all accepting a UK postcode without a space e.g. B458ES or SK224PL:

  • area - Tells you the covering force, contact info an description of force area.

  • force - more detailed information on the force in that area including outreach info.

  • contact - Basic contact info

  • crimes - Show a listing of crimes comitted in the area. An option –date parameter can be provided.

Examples

ukpol area B610PL

Area Example

ukpol force SK224PL

Force Example

Getting Help

Just running ukpol on its own will give you the following help output:

Usage: ukpol [OPTIONS] COMMAND [ARGS]...

  The UK Police CLI. Find out data and info based on a UK postcode.

  Examples:

      ukpol area B610PL
      ukpol force SK224PL
      ukpol contact PE227DB

  Do not put a space inside the postcode!
  To get help with a subcommand, add the --help option after the command.

Options:
  -v, --version  Show the version and exit.
  -h, --help     Show this message and exit.

Commands:
  area
  contact
  force

Release files for ukpol-cli 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ukpol-cli 0.0.6
File Size Uploaded
ukpol-cli-0.0.6.tar.gz 4.5 kB Details

Release files / ukpol-cli-0.0.6.tar.gz

Download URL ukpol-cli-0.0.6.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
71e50cd2c04aba97ba08daeb896006b9665b233938e413ec4b2b3757b45fd055
BLAKE2b-256 checksum
How to use checksums
a3b92414a603ca9f13023b7c47cf70cef91dbda17b22e4797a622f39d12c9273
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.6 This release

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page