green-energy


Namegreen-energy JSON
Version 0.1.0 PyPI version JSON
download
home_page
SummaryA python library to access the Awattar Energy Price API.
upload_time2023-01-20 10:10:50
maintainer
docs_urlNone
author
requires_python>=3.7
license
keywords green_energy kfw api cloud
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # green_energy

A python library to access the Awattar Api. Refer also to the [Awattar Energy Price API](https://www.awattar.de/). This repo provides functionality for:

- Getting Energy Price forecast information.

## Installing the library locally

Python 3 is recommended for this project.

```bash
python -m pip install -e .
```

> **This is needed for the first time when working with the library/examples/tests.**

## Example usage

```bash
ENERGY_DATA_API_URL="https://api.awattar.de" python3 examples/simple.py
```

or

```python
from green_energy_api.green_energy_api import GreenEnergyApi

green_energy_api = GreenEnergyApi('provide_api_url')
# or you can define additional optional parameters
# green_energy_api = GreenEnergyApi('provide_api_url', timeout=10)

print(green_energy_api.get_electricity_price())
```

## Development

### Installing required pip packages

```bash
python pip install -r requirements.txt
pre-commit install -t pre-push
```

### Linting

```bash
pylint green_energy_api/*.py tests/*.py examples/*.py
```

### Unit testing

```bash
pytest tests/*.py

# show logs
pytest -o log_cli=true

# code coverage
pytest --durations=10 --cov-report term-missing --cov=green_energy_api tests
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "green-energy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "green_energy,kfw,api,cloud",
    "author": "",
    "author_email": "Ingmar Mueller <ingmar.mueller@kfw.de>, Mario Macai <mario.macai@accenture.com>, Melissa Schmidt <melissa.schmidt@accenture.com>, Georgia Moldovan <georgia.moldovan@accenture.com>, Felix Stark <felix.stark@kfw.de>",
    "download_url": "https://files.pythonhosted.org/packages/24/dd/eb09f570ef725bed2c911707c9d87450626c42dba687b3e06012dd56adf5/green_energy-0.1.0.tar.gz",
    "platform": null,
    "description": "# green_energy\n\nA python library to access the Awattar Api. Refer also to the [Awattar Energy Price API](https://www.awattar.de/). This repo provides functionality for:\n\n- Getting Energy Price forecast information.\n\n## Installing the library locally\n\nPython 3 is recommended for this project.\n\n```bash\npython -m pip install -e .\n```\n\n> **This is needed for the first time when working with the library/examples/tests.**\n\n## Example usage\n\n```bash\nENERGY_DATA_API_URL=\"https://api.awattar.de\" python3 examples/simple.py\n```\n\nor\n\n```python\nfrom green_energy_api.green_energy_api import GreenEnergyApi\n\ngreen_energy_api = GreenEnergyApi('provide_api_url')\n# or you can define additional optional parameters\n# green_energy_api = GreenEnergyApi('provide_api_url', timeout=10)\n\nprint(green_energy_api.get_electricity_price())\n```\n\n## Development\n\n### Installing required pip packages\n\n```bash\npython pip install -r requirements.txt\npre-commit install -t pre-push\n```\n\n### Linting\n\n```bash\npylint green_energy_api/*.py tests/*.py examples/*.py\n```\n\n### Unit testing\n\n```bash\npytest tests/*.py\n\n# show logs\npytest -o log_cli=true\n\n# code coverage\npytest --durations=10 --cov-report term-missing --cov=green_energy_api tests\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A python library to access the Awattar Energy Price API.",
    "version": "0.1.0",
    "split_keywords": [
        "green_energy",
        "kfw",
        "api",
        "cloud"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ae431bc3b162a06c5640b03cf72b367db497d043310aa1be6b13efc6ae35878a",
                "md5": "b3a04b532e110b39ba6f477c95883e34",
                "sha256": "428774e718ffa6c4578f425bb1610bb3c4692cca39ae1c3c03ec81a67f1ba28f"
            },
            "downloads": -1,
            "filename": "green_energy-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b3a04b532e110b39ba6f477c95883e34",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 17191,
            "upload_time": "2023-01-20T10:10:49",
            "upload_time_iso_8601": "2023-01-20T10:10:49.021261Z",
            "url": "https://files.pythonhosted.org/packages/ae/43/1bc3b162a06c5640b03cf72b367db497d043310aa1be6b13efc6ae35878a/green_energy-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "24ddeb09f570ef725bed2c911707c9d87450626c42dba687b3e06012dd56adf5",
                "md5": "f01ef557473813db0e6f8ff934f6ebcc",
                "sha256": "3746366db851b78148b0ad2a10372907203e24c6031aa3b09ea0cf0eed175535"
            },
            "downloads": -1,
            "filename": "green_energy-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f01ef557473813db0e6f8ff934f6ebcc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 16258,
            "upload_time": "2023-01-20T10:10:50",
            "upload_time_iso_8601": "2023-01-20T10:10:50.761791Z",
            "url": "https://files.pythonhosted.org/packages/24/dd/eb09f570ef725bed2c911707c9d87450626c42dba687b3e06012dd56adf5/green_energy-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-20 10:10:50",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "green-energy"
}
        
Elapsed time: 0.07156s