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
politikontroller_py-3.0.6.tar.gz
(10.6 kB
view hashes)
Built Distribution
Close
Hashes for politikontroller_py-3.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ca194ee08abe0f4c36cad4110e03417cacf512d50cce171bdf31af7eb960752 |
|
MD5 | a2881740ff57f479a060a7167d34252f |
|
BLAKE2b-256 | ae2b6c05ff076328350082530b0ddf81b5049afe950b05d85d1f86f041eff0f6 |
Close
Hashes for politikontroller_py-3.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7aaac6911f8b7c67420e43d7ccec24be7eaa40bdd8d2e71e763861a1972ef4f7 |
|
MD5 | 4ac02f44132fb722b413a2c65c1fa4a4 |
|
BLAKE2b-256 | 121a8b81e080fe8133c21a03a47ee14e2c18c81d88f1313a21f20d03c7e796e9 |