pricedisplay
Terminal Display for the Finnish Power Price
Building
You can install the dependencies and build the package with Poetry:
poetry install
poetry build
You can test the build with:
poetry run python -m pricedisplay
Installing
Install the package via pipx:
pipx install pricedisplay
or globally with pip:
python -m pip install pricedisplay
Currently you need Python 3.9 or greater.
NOTE: On macOS you may get a warning from urllib3. The default installation of Python includes OpenSSL version compiled with LibreSSL, which is no longer supported. You can fix this by installing Python with Homebrew. For details see this issue.
Usage
If you installed with pipx, you can run the display simply with the command:
pricedisplay
or if you used pip:
python -m pricedisplay
The package creates a settings file config.yml in your config path.
| OS | Settings Location |
|---|---|
| macOS | ~/Library/Application Support/pricedisplay/ |
| GNU/Linux | ~/.config/pricedisplay/ |
| Windows | %APPDATA%\pricedisplay\ |
You can also pass your own settings file as an argument:
pricedisplay --settings PATH
Notes
The actual display of the graph depends on your terminal font and colors. For best results you should have UTF-8 encoding and a font which includes unicode East Asian ambiguous characters (in wide format). Some tested combinations are:
| OS | Terminal | Font |
|---|---|---|
| macOS | iTerm with Bash | Hack |
| GNU/Linux | Gnome with Bash | Ubuntu Mono |
| Windows | Mintty with Bash | Lucida Console |
Sample outputs
Metadata
Release files for pricedisplay 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pricedisplay-0.7.1.tar.gz | 31.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pricedisplay-0.7.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.6 kB
Release files / pricedisplay-0.7.1.tar.gz
| Download URL | pricedisplay-0.7.1.tar.gz |
|---|---|
| Size | 31.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b95a03cad16d794954ef8af87e982493ba8ac25b7d5f435c8578b264fa674e6
|
|
BLAKE2b-256 checksum How to use checksums |
056cd800179c6f5894234505205df9c3abb49afa9ca84ed12a29c8b3ef43d646
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.11 Linux/6.5.0-1025-azure
|
Release files / pricedisplay-0.7.1-py3-none-any.whl
| Download URL | pricedisplay-0.7.1-py3-none-any.whl |
|---|---|
| Size | 34.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fea80f1c481208b2f68653c8442fb0b685d55ba55550e35c25ca7b68f479310c
|
|
BLAKE2b-256 checksum How to use checksums |
9bcbc0c7eb4d65af1468dc6a565065adcbf557214e2c9f50e30dc07295c4f504
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.11 Linux/6.5.0-1025-azure
|