A CLI tool to get the current electricity price in Finland using sahko.tk
Project description
sahkon-hinta
A simple CLI tool to fetch the current electricity price in Finland, using the data from sahko.tk.
The program uses Playwright to spin up a headless browser and fetch the data from the website. The data is then parsed and printed to the console in a nice format.
Done as a part of a Cloud Services course at the Oulu University of Applied Sciences.
This was a fun learning experience, as I had never used Playwright before nor published a package to PyPI.
Installation
Just install the package from PyPI:
python3 -m pip install sahkon-hinta
Example output
$ sahkon-hinta
> Sähkön hinta (snt/kWh) 24% alv
> Nyt Päivän alin Päivän ylin 7pv keskihinta 28pv keskihinta
> 6.96 5.27 11.76 5.80 6.46
> Lähde: sahko.tk
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 sahkon_hinta-1.0.0.tar.gz
.
File metadata
- Download URL: sahkon_hinta-1.0.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98ba5137af5e1a2797d27b49b9ca701c4492234cfa639154607d354fbbfa54e2 |
|
MD5 | 0d8631beea64cb0c03c6944b819e6d2b |
|
BLAKE2b-256 | 89d23af1bcc9d11d01799c4eaaa1a8fe7ce34f09ab739ec330f9056c8e0d57cd |
Provenance
File details
Details for the file sahkon_hinta-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: sahkon_hinta-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a386861270ce6d4783ea3a81e5277ac1bf818900fb07d355a2d3b7dfc45e05f4 |
|
MD5 | e381bcb765681c1539e70e2315f630c6 |
|
BLAKE2b-256 | 24193dad63d07eedd6eb658dbbd608c8e221cf3e5d224568c424ebd287057692 |