PayByBot 3
Originally forked from paybybot2, this packages implements a CLI interface to paybyphone, allowing you (for example) to automate parking.
Installation
pip install paybybot3
Usage
CONFIG_NAME is the name of your configuration, it would be example_account in the example configuration below.
--location is often the district (eg 75001). There are some special values that you can find out in the output of check as locationId.
For check, alert and pay, --location also accepts several locations at once, as a comma-separated list or a range: --location 75001,75005 or --location 75001-75020. They are all handled with a single login, and one failing location does not abort the others.
--rate is a ratePolicyId. List the available rate options for a location with the rate-options command, or read it from an ongoing session in the output of check (as ratePolicy.ratePolicyId).
alert
Usage: paybybot3 alert [OPTIONS] CONFIG_NAME
1. Check if there is an ongoing subscription
2. Else send a notification
Options:
--location TEXT
--config TEXT
--help Show this message and exit.
check
Usage: paybybot3 check [OPTIONS] CONFIG_NAME
Check if there is an ongoing subscription
Options:
--location TEXT
--config TEXT
--help Show this message and exit.
pay
Usage: paybybot3 pay [OPTIONS] CONFIG_NAME
1. Check if there is an ongoing subscription
2. Else pay
3. Check that the payment succeeded
4. Notify on failure
Options:
--location TEXT [required]
--rate INTEGER [required]
--duration TEXT [required]
--unit [Days|Hours|Minutes] Default: Days
--buffer
--config TEXT
--help Show this message and exit.
vehicles
Usage: paybybot3 vehicles [OPTIONS] CONFIG_NAME
1. Show the vehicles
Options:
--config TEXT
--help Show this message and exit.
payment-accounts
Usage: paybybot3 payment-accounts [OPTIONS] CONFIG_NAME
Show the payment accounts
Options:
--config TEXT
--help Show this message and exit.
rate-options
Usage: paybybot3 rate-options [OPTIONS] CONFIG_NAME
Show the available rate options for a location (use ratePolicyId as --rate)
Options:
--location TEXT [required]
--config TEXT
--help Show this message and exit.
Configuration
paybybot3 allows you to store your configuration in a YAML file ~/.config/paybybot3.yml.
Here is an example:
example_account:
plate: AB123CD
paybyphone:
login: "+330612345678"
password: password
apprise: #optional
services:
- mail:
service_url: "mailtos://{user}:{password}@{domain}?name=PayByBot3"
tag:
- "broadcast-warning"
- "broadcast-failure"
- discord:
service_url: "discord://{WebhookID}/{WebhookToken}"
tag:
- "broadcast-info"
- "broadcast-success"
- "broadcast-warning"
- "broadcast-failure"
- ...
paymentAccountId: "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
Notifications are delivered through the Apprise library.
If apprise is configured, at least one service must be configured. Service URLs can be found in the Apprise notification services documentation - refer to their documentation for required and additional parameters. Tags are mandatory and must at least be one of broadcast-info, broadcast-success, broadcast-warning or broadcast-failure, they are used to filter the notifications you want to receive.
The paymentAccountId can be found in the output of the payment-accounts command (under paymentCards, or whichever payment method you use).
Metadata
Release files for paybybot3 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| paybybot3-0.2.0.tar.gz | 11.1 kB | Without provenance | Details for paybybot3-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| paybybot3-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for paybybot3-0.2.0-py3-none-any.whl |
Total release size: 22.1 kB
Release files / paybybot3-0.2.0.tar.gz
| Download URL | paybybot3-0.2.0.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c43e22916af87edf24ca0ab67e9021ce3daba0a294dfcd88a4149da53d5f951
|
|
BLAKE2b-256 checksum How to use checksums |
cd796f4efdefef4b9f285c3908181f4ce1d6e9882d9f7ba8ac9596a17b472a2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.10
|
Release files / paybybot3-0.2.0-py3-none-any.whl
| Download URL | paybybot3-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
78464c74eeb8a9c087b8deb2ffd1ec9ee5ecd396fa792d1287332f0915618f79
|
|
BLAKE2b-256 checksum How to use checksums |
b50fe96ed3a21b5ca37a3c31ce6e3beb19b07130710c51ad2dcb4b88cbf373d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.10
|
Security for paybybot3 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.