Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sahkon_hinta-1.0.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

sahkon_hinta-1.0.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file sahkon_hinta-1.0.2.tar.gz.

File metadata

  • Download URL: sahkon_hinta-1.0.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for sahkon_hinta-1.0.2.tar.gz
Algorithm Hash digest
SHA256 e5f6c99f42057d5890a4495f333a2c6fd29220512d8d748cb2ba31f2435ff033
MD5 ae0f72ee7b8ea2ad1c7bb8bc622b70d7
BLAKE2b-256 4bcce530bda68a009036e309e1de4ae2b18dd16c98e5eb95ebaa0e2efb9030fc

See more details on using hashes here.

Provenance

File details

Details for the file sahkon_hinta-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: sahkon_hinta-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for sahkon_hinta-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fdc2ed8931f302e65916acd6df3b94dec5d317a28fd5ce1f2076934454d2e96e
MD5 9487c5918a0f98eacb81e7001f073290
BLAKE2b-256 61214d3935f135855005e65b67274de6ea753a6098590ba2d22470f6e32087d2

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page