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.5.tar.gz
(10.6 kB
view hashes)
Built Distribution
Close
Hashes for politikontroller_py-3.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f99c840aa216c94f1bf2acad62269e0d1e3aa91b741bc711602469bbfdac01bd |
|
MD5 | fc54be87a9ae908a3d4595c936403743 |
|
BLAKE2b-256 | 886fceec9734dacf5437df9e00872a64284e4e2a84b7e4ab6a7dbba13de730aa |
Close
Hashes for politikontroller_py-3.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 847141a68b3863db64cb4d666163c1c71db9040bf822d0a31a7336a9b8e7ee49 |
|
MD5 | 17fa2cf5f4d5fd008849cc9bbc003f0d |
|
BLAKE2b-256 | 0b7ecfc2f88af779d25bfb7fad1c24301f5bcb94d58f1be214ff9006e2ecbad0 |