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(
phone_number=90112233,
phone_prefix=47,
password="super-secret",
)
# Alternative;
user = Account(username="4790112233", 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.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf5e11998c5b2936a3b6065586683c995e26a11b447340fd2f30e51f018e1a74 |
|
MD5 | afb95456dce484c8e6b32bb45f938630 |
|
BLAKE2b-256 | a23bdedc78ea1854fc8e3767ff97c96ab1cffb1396ac53cd523cde365ff870fc |
Close
Hashes for politikontroller_py-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d413446b7f3b62708bd45d1b25b82afda0c1f5763b8b6a30cd37e5747a79319 |
|
MD5 | 5e2d38f28524b3e7dcbb7de5f6743991 |
|
BLAKE2b-256 | 926307b922ea4132fcecd82a1f238da7810e0e3b8b10addd8fb2795f95a8ad52 |