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.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65dbe180ef4ed513bb029dde87151126c493069a51313f2df40df60be67fef13 |
|
MD5 | 0c9e9cd65446506145da2c18ff2b6e25 |
|
BLAKE2b-256 | 830553d5fa7394476326e0d5e33e2cbfeff1f8837d0e115a69c9f77b5ee34242 |
Close
Hashes for politikontroller_py-2.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fc0b533549d09683446076c90013f6f3a80d4ee3827fb950120c9f21bc35c4c |
|
MD5 | 2108b6e27bfa50e80305b74a3acd6697 |
|
BLAKE2b-256 | bc40d8e3ec971b7835faac34c323b92ab36f615d3109661ddc095f4c682db177 |