sahkon-hinta


Namesahkon-hinta JSON
Version 1.0.2 PyPI version JSON
download
home_page
SummaryA CLI tool to get the current electricity price in Finland using sahko.tk
upload_time2024-02-20 09:22:21
maintainer
docs_urlNone
authorelias-ka
requires_python>=3.10
license
keywords electricity price finland sähkö hinta sähkön hinta sahko.tk
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # sahkon-hinta

A simple CLI tool to fetch the current electricity price in Finland, using the data from [sahko.tk](https://sahko.tk/).

The program uses [Playwright](https://playwright.dev/python/) 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:
```bash
python3 -m pip install sahkon-hinta
```

## Example output
```console
$ 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
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "sahkon-hinta",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "electricity price finland s\u00e4hk\u00f6 hinta s\u00e4hk\u00f6n hinta sahko.tk",
    "author": "elias-ka",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/4b/cc/e530bda68a009036e309e1de4ae2b18dd16c98e5eb95ebaa0e2efb9030fc/sahkon_hinta-1.0.2.tar.gz",
    "platform": null,
    "description": "# sahkon-hinta\n\nA simple CLI tool to fetch the current electricity price in Finland, using the data from [sahko.tk](https://sahko.tk/).\n\nThe program uses [Playwright](https://playwright.dev/python/) 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.\n\nDone as a part of a Cloud Services course at the Oulu University of Applied Sciences.\n\nThis was a fun learning experience, as I had never used Playwright before nor published a package to PyPI.\n\n## Installation\nJust install the package from PyPI:\n```bash\npython3 -m pip install sahkon-hinta\n```\n\n## Example output\n```console\n$ sahkon-hinta\n>                 S\u00e4hk\u00f6n hinta (snt/kWh) 24% alv\n> Nyt   P\u00e4iv\u00e4n alin  P\u00e4iv\u00e4n ylin  7pv keskihinta  28pv keskihinta\n> 6.96     5.27         11.76          5.80            6.46\n>                         L\u00e4hde: sahko.tk\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A CLI tool to get the current electricity price in Finland using sahko.tk",
    "version": "1.0.2",
    "project_urls": null,
    "split_keywords": [
        "electricity",
        "price",
        "finland",
        "s\u00e4hk\u00f6",
        "hinta",
        "s\u00e4hk\u00f6n",
        "hinta",
        "sahko.tk"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "61214d3935f135855005e65b67274de6ea753a6098590ba2d22470f6e32087d2",
                "md5": "9487c5918a0f98eacb81e7001f073290",
                "sha256": "fdc2ed8931f302e65916acd6df3b94dec5d317a28fd5ce1f2076934454d2e96e"
            },
            "downloads": -1,
            "filename": "sahkon_hinta-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9487c5918a0f98eacb81e7001f073290",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 3023,
            "upload_time": "2024-02-20T09:20:34",
            "upload_time_iso_8601": "2024-02-20T09:20:34.198960Z",
            "url": "https://files.pythonhosted.org/packages/61/21/4d3935f135855005e65b67274de6ea753a6098590ba2d22470f6e32087d2/sahkon_hinta-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4bcce530bda68a009036e309e1de4ae2b18dd16c98e5eb95ebaa0e2efb9030fc",
                "md5": "ae0f72ee7b8ea2ad1c7bb8bc622b70d7",
                "sha256": "e5f6c99f42057d5890a4495f333a2c6fd29220512d8d748cb2ba31f2435ff033"
            },
            "downloads": -1,
            "filename": "sahkon_hinta-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "ae0f72ee7b8ea2ad1c7bb8bc622b70d7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 2376,
            "upload_time": "2024-02-20T09:22:21",
            "upload_time_iso_8601": "2024-02-20T09:22:21.493211Z",
            "url": "https://files.pythonhosted.org/packages/4b/cc/e530bda68a009036e309e1de4ae2b18dd16c98e5eb95ebaa0e2efb9030fc/sahkon_hinta-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-20 09:22:21",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "sahkon-hinta"
}
        
Elapsed time: 0.19405s