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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a7f44738b586acdd5f051c8e3f23564bd097082409aeae586853edbb67571db |
|
MD5 | f8f59fd3d23447add9bf67f73345a846 |
|
BLAKE2b-256 | 2d4315e16c5390cc0a54bf77680a3ee9042d26768880a2f5906982a81951caba |
Close
Hashes for politikontroller_py-2.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47eb0f62e854233541fb4c8304859b1d428b88200e02546ffe30af7808838301 |
|
MD5 | 100f3290bc74dc7d31c7927e5316cc98 |
|
BLAKE2b-256 | 8579e6e15c8f6b9fd0ff4a236e9a4e5e92da6a4c7cc0095dec33d41ed076fdc5 |