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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40e82134e2d365a182b65f7c69591d3a63f4a0b5bb5f190584ee99f0f8fc6441 |
|
MD5 | c564331df2d4e54612a2ad545b256b3e |
|
BLAKE2b-256 | 03dec6228dc2446cbc93c6edd32aeeff5dea2bdb25a006dd97d86c01935b105f |
Close
Hashes for politikontroller_py-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91ffff8274b5470597bded2f9f1ee1bbadf444f0911d0187619c359a225b3f65 |
|
MD5 | 0647a08fa3c51292f2f19329a13842e8 |
|
BLAKE2b-256 | 25ae02a06eca5d7beeaaadcd6474d82b58282376ea53287df154aba204d7dde9 |