-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from regoawt/release/0.1.0
Release/0.1.0
- Loading branch information
Showing
12 changed files
with
834 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[flake8] | ||
max-line-length = 80 | ||
select = C,E,F,W,B,B950 | ||
ignore = E501,W606,W503,F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,33 @@ | ||
![Build](https://github.com/regoawt/pyrozza/actions/workflows/cicd.yml/badge.svg) | ||
# pyrozza | ||
A Python wrapper for the UK Police API | ||
|
||
## Usage | ||
Instantiate the client: | ||
```python | ||
client = pyrozza.Client() | ||
``` | ||
|
||
Currently, the following methods are available: | ||
```python | ||
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` |
Oops, something went wrong.