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.2.tar.gz
(10.6 kB
view hashes)
Built Distribution
Close
Hashes for politikontroller_py-3.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5416f9353ec6e8666ae7e279e15b4b6f27462dc971314099d169d7e502fcc58 |
|
MD5 | 41367cc88d73e24673a58a8d64b1dc6a |
|
BLAKE2b-256 | 38efb595437af555cb1c07fcf44b319d9feff3adcebbdc33cb1ccf133980f116 |
Close
Hashes for politikontroller_py-3.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 707b3078f3c45cd53181b631e2425a89179b5113bb5237fede9e42b21038227a |
|
MD5 | c43c7d659f21aef5dfbe04d842b61891 |
|
BLAKE2b-256 | 6609dc09cce8e2fee35eb86c545e5c93cb7908a88d887152d2a50c983fbae086 |