Skip to main content

Fetch crime statistics from the ExpenseCheck crime statistics API.

Project description


Fetch crime statistics from the ExpenseCheck crime statistics API.


PyPi is the easiest:

pip install pycrime


Create a new API client with:

from pycrime import CrimeClient

client = CrimeClient(jwt=<your-token>)

Please replace <your-token> with your API token as a string.

Fetch crime statistics based on postcode with:


Here, the postcode for Melbourne's CBD, 3000, has been used. Please substitute for the postcode of interest. The return value is a dict containing shaped like the following:

    'localityTheftRate': 27524.8484848485,  # per 100k population
    'stateTheftRate': 3448.8149871704,      # per 100k population
    'theftStateAnomaly': 698.0958267475     # percentage

Project details

Download files

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

Files for pycrime, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size pycrime-0.0.6.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page