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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8cf606f7333a8b92235c839fb52ee6bdc542a182629b676e31d73061bf5c455 |
|
MD5 | 81c284de62093a6fc9be705615164813 |
|
BLAKE2b-256 | a5a2a1e1185965e2e633fea1da1581140e49fdaa7e22e220fed135c1c2d45433 |
Close
Hashes for politikontroller_py-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 966969d7c9f907c62a651cff42c663952cd5d3f79f64a9a457a271f199226fe8 |
|
MD5 | a6d915df2fea259542744a6921abcb1e |
|
BLAKE2b-256 | 40f77164d6261e3c79f6f27d4bf5e7a91d27ac84718a3320e2d43fded9d3866c |