py-solar-forecast


Namepy-solar-forecast JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/rany2/py-solar-forecast
SummaryAsynchronous Python client for getting forecast solar information
upload_time2024-05-21 10:17:11
maintainerRany
docs_urlNone
authorKlaas Schoute
requires_python<4.0,>=3.11
licenseMIT
keywords forecast solar power energy api async client
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!--
*** To avoid retyping too much info. Do a search and replace for the following:
*** github_username, repo_name
-->

## Python API fetching Solarpanels forecast information.

## About

With this python library you can request data from [go-solar-forecast](https://github.com/rany2/go-solar-forecast)
and see what your solar panels may produce in the coming days.

## Installation

```bash
pip install py-solar-forecast
```

## Data

This library returns a lot of different data, based on the API:

### Energy

- Total Estimated Energy Production - today/tomorrow (kWh)
- Estimated Energy Production - This Hour (kWh)
- Estimated Energy Production - Next Hour (kWh)
- Estimated Energy Production - Remaining today (kWh)

### Power

- Highest Power Peak Time - Today (datetime)
- Highest Power Peak Time - Tomorrow (datetime)
- Estimated Power Production - Now (W)
- Estimated Power Production - Next Hour (W)
- Estimated Power Production - In +6 Hours (W)
- Estimated Power Production - In +12 Hours (W)
- Estimated Power Production - In +24 Hours (W)

### API Info

- Timezone
- Rate limit
- Account type
- Rate remaining

### Validation

- API key (bool)
- Plane (bool)

## Example

```python
import asyncio

from py_solar_forecast import PySolarForecast


async def main() -> None:
    """Show example on how to use the library."""
    async with PySolarForecast(
        latitude=52.16,
        longitude=4.47,
        declination=20,
        azimuth=10,
        kwp=2.160,
    ) as forecast:
        estimate = await forecast.estimate()
        print(estimate)


if __name__ == "__main__":
    asyncio.run(main())
```

| Parameter | value type | Description |
| --------- | ---------- | ----------- |
| `api_key` | `str` | Your API key (optional) |
| `declination` | `int` | The tilt of the solar panels (required) |
| `azimuth` | `int` | The direction the solar panels are facing (required) |
| `kwp` | `float` | The size of the solar panels in kWp (required) |

## Contributing

Would you like to contribute to the development of this project? Then read the prepared [contribution guidelines](CONTRIBUTING.md) and go ahead!

Thank you for being involved! :heart_eyes:

## Setting up development environment

This Python project relies on [Poetry][poetry] as its dependency manager,
providing comprehensive management and control over project dependencies.

You need at least:

- Python 3.11+
- [Poetry][poetry-install]

Install all packages, including all development requirements:

```bash
poetry install
```

Poetry creates by default an virtual environment where it installs all
necessary pip packages, to enter or exit the venv run the following commands:

```bash
poetry shell
exit
```

## License

MIT License

Copyright (c) 2021-2024 Klaas Schoute
Copyright (c) 2024 Rany

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

[poetry-install]: https://python-poetry.org/docs/#installation
[poetry]: https://python-poetry.org
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/rany2/py-solar-forecast",
    "name": "py-solar-forecast",
    "maintainer": "Rany",
    "docs_url": null,
    "requires_python": "<4.0,>=3.11",
    "maintainer_email": "rany@riseup.net",
    "keywords": "forecast, solar, power, energy, api, async, client",
    "author": "Klaas Schoute",
    "author_email": "hello@student-techlife.com",
    "download_url": "https://files.pythonhosted.org/packages/ef/84/88c586fad350a3f63211cec58253ca4a3591cda0d06242b5d08c16af8cbf/py_solar_forecast-0.0.3.tar.gz",
    "platform": null,
    "description": "<!--\n*** To avoid retyping too much info. Do a search and replace for the following:\n*** github_username, repo_name\n-->\n\n## Python API fetching Solarpanels forecast information.\n\n## About\n\nWith this python library you can request data from [go-solar-forecast](https://github.com/rany2/go-solar-forecast)\nand see what your solar panels may produce in the coming days.\n\n## Installation\n\n```bash\npip install py-solar-forecast\n```\n\n## Data\n\nThis library returns a lot of different data, based on the API:\n\n### Energy\n\n- Total Estimated Energy Production - today/tomorrow (kWh)\n- Estimated Energy Production - This Hour (kWh)\n- Estimated Energy Production - Next Hour (kWh)\n- Estimated Energy Production - Remaining today (kWh)\n\n### Power\n\n- Highest Power Peak Time - Today (datetime)\n- Highest Power Peak Time - Tomorrow (datetime)\n- Estimated Power Production - Now (W)\n- Estimated Power Production - Next Hour (W)\n- Estimated Power Production - In +6 Hours (W)\n- Estimated Power Production - In +12 Hours (W)\n- Estimated Power Production - In +24 Hours (W)\n\n### API Info\n\n- Timezone\n- Rate limit\n- Account type\n- Rate remaining\n\n### Validation\n\n- API key (bool)\n- Plane (bool)\n\n## Example\n\n```python\nimport asyncio\n\nfrom py_solar_forecast import PySolarForecast\n\n\nasync def main() -> None:\n    \"\"\"Show example on how to use the library.\"\"\"\n    async with PySolarForecast(\n        latitude=52.16,\n        longitude=4.47,\n        declination=20,\n        azimuth=10,\n        kwp=2.160,\n    ) as forecast:\n        estimate = await forecast.estimate()\n        print(estimate)\n\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n```\n\n| Parameter | value type | Description |\n| --------- | ---------- | ----------- |\n| `api_key` | `str` | Your API key (optional) |\n| `declination` | `int` | The tilt of the solar panels (required) |\n| `azimuth` | `int` | The direction the solar panels are facing (required) |\n| `kwp` | `float` | The size of the solar panels in kWp (required) |\n\n## Contributing\n\nWould you like to contribute to the development of this project? Then read the prepared [contribution guidelines](CONTRIBUTING.md) and go ahead!\n\nThank you for being involved! :heart_eyes:\n\n## Setting up development environment\n\nThis Python project relies on [Poetry][poetry] as its dependency manager,\nproviding comprehensive management and control over project dependencies.\n\nYou need at least:\n\n- Python 3.11+\n- [Poetry][poetry-install]\n\nInstall all packages, including all development requirements:\n\n```bash\npoetry install\n```\n\nPoetry creates by default an virtual environment where it installs all\nnecessary pip packages, to enter or exit the venv run the following commands:\n\n```bash\npoetry shell\nexit\n```\n\n## License\n\nMIT License\n\nCopyright (c) 2021-2024 Klaas Schoute\nCopyright (c) 2024 Rany\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n[poetry-install]: https://python-poetry.org/docs/#installation\n[poetry]: https://python-poetry.org",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Asynchronous Python client for getting forecast solar information",
    "version": "0.0.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/rany2/py-solar-forecast/issues",
        "Changelog": "https://github.com/rany2/py-solar-forecast/releases",
        "Documentation": "https://github.com/rany2/py-solar-forecast",
        "Homepage": "https://github.com/rany2/py-solar-forecast",
        "Repository": "https://github.com/rany2/py-solar-forecast"
    },
    "split_keywords": [
        "forecast",
        " solar",
        " power",
        " energy",
        " api",
        " async",
        " client"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "45e0a024b3ca9c5d07518dfb1ceb69482bfbe658230455108c6859d73ed976b0",
                "md5": "f7be33e0f66e3204f289d57299347791",
                "sha256": "c9f750e28f8baf9b566374547b120518b3273f48fe305bad02c7ffc81bc80add"
            },
            "downloads": -1,
            "filename": "py_solar_forecast-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f7be33e0f66e3204f289d57299347791",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.11",
            "size": 8283,
            "upload_time": "2024-05-21T10:17:10",
            "upload_time_iso_8601": "2024-05-21T10:17:10.095537Z",
            "url": "https://files.pythonhosted.org/packages/45/e0/a024b3ca9c5d07518dfb1ceb69482bfbe658230455108c6859d73ed976b0/py_solar_forecast-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ef8488c586fad350a3f63211cec58253ca4a3591cda0d06242b5d08c16af8cbf",
                "md5": "302526e973d743f95faae3427ccad939",
                "sha256": "925171a0a80832120c6ad5cd25ff0b6199cefac2100e2f6f0eb14f3641f414b6"
            },
            "downloads": -1,
            "filename": "py_solar_forecast-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "302526e973d743f95faae3427ccad939",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.11",
            "size": 7122,
            "upload_time": "2024-05-21T10:17:11",
            "upload_time_iso_8601": "2024-05-21T10:17:11.823388Z",
            "url": "https://files.pythonhosted.org/packages/ef/84/88c586fad350a3f63211cec58253ca4a3591cda0d06242b5d08c16af8cbf/py_solar_forecast-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-21 10:17:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rany2",
    "github_project": "py-solar-forecast",
    "github_not_found": true,
    "lcname": "py-solar-forecast"
}
        
Elapsed time: 0.59013s