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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 988d3913b52d83b2b8e2450da23a29bdc00db18b32b193308e5317aff37efe88 |
|
MD5 | c66b01206965aec48380909fe384709e |
|
BLAKE2b-256 | 30352b84f1b17b724bdbffaadf97e905e5ecd11220b1365020ff142c8d5ad834 |
Close
Hashes for politikontroller_py-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1e8c23f848093dd0ac29a0d9a8db05640f6f23715d17527dae4107895d7d38c |
|
MD5 | d8ea8cb98bb683a635133bb7f89e1e3e |
|
BLAKE2b-256 | ab5413ff18df182af190dfa4c32dd74d33b34c7484fb4faec29d34cb0277da0e |