Unofficial client for politikontroller.no
Project description
politikontroller-py
Install
pip3 install politikontroller-py
Usage
from politikontroller_py import Client
from politikontroller_py.models import Account
# A valid registered user @ politikontroller.no
user = Account(
username="4790112233", # Include 2 digit prefix - or else DEFAULT_COUNTRY is assumed
password="super-secret",
)
client = Client(user)
police_controls = client.get_controls(63, 11)
CLI tool
$ politikontroller --help
Usage: politikontroller [OPTIONS] COMMAND [ARGS]...
Username and password can be defined using env vars:
POLITIKONTROLLER_USERNAME
POLITIKONTROLLER_PASSWORD
Options:
-u, --username TEXT Username (i.e. phone number) [required]
-p, --password TEXT Password [required]
--debug Set logging level to DEBUG
--help Show this message and exit.
Commands:
exchange-points exchange points (?)
get-control get details on a control.
get-controls get a list of all active controls.
get-controls-radius get all active controls inside a radius.
get-maps get own maps.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for politikontroller_py-2.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 734aca8c0323263aed78ffcd302f3eda36b5d30627a761c2b256341ebf96d0a3 |
|
MD5 | 61e832c984b54195fa83710fa582c8db |
|
BLAKE2b-256 | 5a5c0d16e107b963431613dcf1862d63c6950f8c3ca1cbb164102c810c0da3d6 |
Close
Hashes for politikontroller_py-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d18d70140b32c3a2ef61a77c1bdc3ef02a4a31fed76f6dcce64d160cbd4ed1c |
|
MD5 | f4d01a21f1565221c1158602b2d7ac82 |
|
BLAKE2b-256 | 4e0c4d2761d8951b8a17216c65969a8414e72fd2d92fbea230b2ce0edbd73e7b |