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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc553ab4e9728a7ab8c614f0b0b92087ccff3626b2eacea0b0f129f378d4c73f |
|
MD5 | 417d14f6386d6930e97828bcd143d45c |
|
BLAKE2b-256 | d3f8176635a74c1ef58a0fa164f79733a201b3a3b49d8279b14be0ff88d35e8d |
Close
Hashes for politikontroller_py-2.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed59b2d333af77c1449ea9b98c69eed702c89cceaeaa8dbcf8c399e2d1064cba |
|
MD5 | ed7804a8bd180e1df1f84a38121e23aa |
|
BLAKE2b-256 | c4a2fe9b306069ce8fc94e7d917228efbd33e421dc413cf04ba537ec4cb69da3 |