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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7f73f84b36412e3e5a2e06807d984a371ddea5550908a12d6decd8456c36322 |
|
MD5 | ec91413abe0037dd6b960525ff60e62c |
|
BLAKE2b-256 | 8e29306c6067f9bcaf25ef1cf7f7fd13560796cfa2f72da0fabb466fa19f5d4c |
Close
Hashes for politikontroller_py-2.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be30b1b127fd63a1c98d429449000ca391c2edf87496f967f73a86ad98cb4e33 |
|
MD5 | 9b962084de3584915dc60dbcd01cbf33 |
|
BLAKE2b-256 | 0d05b8293dbe6938f2b5b5c508070173f6b34cf17de4081fa91ca43da6ae4b20 |