Freshpoint.cz webpage CLI interface.
Reason this release was yanked:
This version relies on a yanked FreshPointSync release.
Project description
FreshPointCLI
A CLI REPL interface to query FreshPoint product price and availability.
Installation
FreshPointCLI
supports Python 3.8 and higher. The library can be installed
using the following CLI command:
$ pip install freshpointcli
Usage
FreshPointCLI
is a Read-Eval-Print Loop (REPL) application intended to be used
only from the command line interface (CLI).
Starting Up the Application
You can initialize the application using the following CLI command:
$ freshpoint <location_id>
<location_id> is the ID of the FreshPoint location to track. It can be found in the page URL. For example, for https://my.freshpoint.cz/device/product-list/296, location id is 296.
Location ID is preserved between the application sessions, so if you intend to track the same location as the last time, you can omit the location id argument and invoke the application without it.
Invoke the application with --help
to receice start-up information:
$ freshpoint --help
Querying the Product Page
Once the application is running, it displays an input promt, and you can type in queries to check for products' availability, price, and more.
To query if a product is avalable, use the following command:
FreshPoint@LocationName> <product_name> --available
Replace <product_name>
with the name of the product you want to query. Note
that name and category matching is case-insensitive, supports partial match,
and ignores diacritics.
To query for all the products that are currently on sale, use the following command:
FreshPoint@LocationName> --sale
Query arguments can be combined in any way:
FreshPoint@LocationName> --available --price-max 100 --vegerarian
To display all the supported arguments, use --help
:
FreshPoint@LocationName> --help
Contributing
Contributions are welcome! If you find a bug or have a feature request, please open an issue on GitHub. If you would like to contribute code, please fork the repository and submit a pull request.
License
FreshPointCLI
is licensed under the MIT License.
See the LICENSE
file for more information.
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 freshpointcli-0.1.1.tar.gz
.
File metadata
- Download URL: freshpointcli-0.1.1.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 136ce97d5304283f425ec46e7ba7847bfaad9646be0c67845d42eb148b261db8 |
|
MD5 | aed159a7435bdc5331b8e5decb42b3b4 |
|
BLAKE2b-256 | 5f8876477723d77dbe53c17933ed370b1b8963f3935a413ffb059f0be2ce1fd4 |
Provenance
File details
Details for the file FreshPointCLI-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: FreshPointCLI-0.1.1-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c420288f110d47711410973f13fbe1792cf9f072f6a342ec9737b139bb96e853 |
|
MD5 | 16d0c89942819fd870f5a962cbee7769 |
|
BLAKE2b-256 | 2758d0aefab344d3becfb174681598d8687611cee50bf19513ee60972eea3b2c |