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
Usage: politikontroller [OPTIONS] COMMAND [ARGS]...
Username and password can be defined using env vars:
POLITIKONTROLLER_USERNAME POLITIKONTROLLER_PASSWORD
Options:
-u, --username INTEGER Username (i.e. phone number) [required]
--password TEXT Password [required]
--help Show this message and exit.
Commands:
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.
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-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d349d54d1d3a6febb6d00bde08fcbb0ee24413528d75f69d683a902e88e8d63 |
|
MD5 | bbfe23a6e239abb490a5ead97edc5492 |
|
BLAKE2b-256 | b6d5e4cd2b0661e1cb3f8e2c396c304d248f4888b017083ba841aad02abd4760 |
Close
Hashes for politikontroller_py-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76de5545aaf520ee2eb3ee06a98009bc34156bf3d003870c9152fe241ce0f0d7 |
|
MD5 | c3e65ccdc4ec2ed4f1099babe6f1bf49 |
|
BLAKE2b-256 | 30157aaf9ceeb36343247e1474bd61e1265759685e6087c59adb4b2cf4d38bf3 |