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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f546b31f5f3c22bf97ce288a758e128032a49683452d65fa8e1006f75dbc68a |
|
MD5 | d3441e6b197159aefd93c88a961801f0 |
|
BLAKE2b-256 | 40b2b3356a974592d420c12334dd5edb7e60885cf4cbf7bc9a2380c97d04b9d5 |
Close
Hashes for politikontroller_py-2.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3069adfd1fab26e26569180eeaa644c9d07fd659a1b07b0757f1eb894d021b4 |
|
MD5 | 8fd3108c293675cb2fd2de1b8533d1b5 |
|
BLAKE2b-256 | a5c2c6f146a5bcdaf644f9b9b4c014f6540cd7062c71d19e108948637e9b02e1 |