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
File details
Details for the file politikontroller_py-3.0.10.tar.gz
.
File metadata
- Download URL: politikontroller_py-3.0.10.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.1 CPython/3.11.0 Linux/6.5.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06b364b3250cee143b21b7bed167292a61a114593dd6fff2fa867118964e7773 |
|
MD5 | 3b9a59fe73f5c0fd4dc58870ddc0c994 |
|
BLAKE2b-256 | 670897acbb9f79c2a0f35860197100e671caa5d63b539978d6a9dc1a4ec75fbc |
File details
Details for the file politikontroller_py-3.0.10-py3-none-any.whl
.
File metadata
- Download URL: politikontroller_py-3.0.10-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.1 CPython/3.11.0 Linux/6.5.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14ba2728d488f1d415b9d10fe15c760a698365bb88fe8bb51e6d0bcbfd965dd1 |
|
MD5 | 78c1ee89d6f30dbcee7492250c26726d |
|
BLAKE2b-256 | 425086b02e19397d80cf5b7d1a6c40ea4966c7a45d9c095c1aec6a1d39eb9d42 |