-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from hudsonbrendon/feat/docs
feat: add documentations with mkdocs
- Loading branch information
Showing
6 changed files
with
716 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ __pycache__/ | |
# Distribution / packaging | ||
.Python | ||
build/ | ||
site/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,83 @@ | ||
# Python Solar Plus Intelbras | ||
|
||
[](https://github.com/hudsonbrendon/python-solar-plus-intelbras/actions/workflows/pythonpackage.yml) | ||
[](https://github.com/hudsonbrendon/python-solar-plus-intelbras/actions/workflows/python-publish.yml) | ||
[](https://github.com/hudsonbrendon/python-solar-plus-intelbras/actions/workflows/dependabot/dependabot-updates) | ||
[](https://github.com/hudsonbrendon/python-solar-plus-intelbras/actions/workflows/pages/pages-build-deployment) | ||
|
||
A wrapper for api solar plus intelbras | ||
|
||
|
||
[](https://hudsonbrendon.github.io/python-solar-plus-intelbras/) | ||
|
||
|
||
Install using pip: | ||
|
||
|
||
```shell | ||
pip install solar_plus_intelbras | ||
``` | ||
|
||
Now, let's get started: | ||
|
||
|
||
```pycon | ||
>>> from solar_plus_intelbras import SolarPlusIntelbras | ||
>>> solar_plus_intelbras = SolarPlusIntelbras(email="[email protected]", plus="i2gH3zuE68ClMDop50h8OxKlOYjvWd0vCDACBtN9sEo") | ||
>>> solar_plus_intelbras.records(plant_id=12345, period="day", key="energy_today", start_date="2025-01-01", end_date="2025-01-01") | ||
``` | ||
|
||
## Features | ||
|
||
Python Solar Plus Intelbras supports the main endpoints of the Intelbras API: | ||
|
||
- Plants: return the list of plants of account; | ||
- Records: return the records of especific range; | ||
- Inverters: return the inverters of account; | ||
- Alerts: return the alerts of account; | ||
- Notifications: return the notifications of account. | ||
|
||
## Documentation | ||
|
||
Project documentation is available at [https://hudsonbrendon.github.io/python-solar-plus-intelbras//](https://hudsonbrendon.github.io/python-solar-plus-intelbras/). | ||
|
||
## Contribute | ||
|
||
If you want to contribute with Python Solar Plus Intelbras check out the Contributing Guide to learn how to start. | ||
|
||
```shell | ||
$ git clone [email protected]:hudsonbrendon/python-solar-plus-intelbras.git | ||
``` | ||
|
||
```shell | ||
$ cd python-solar-plus-intelbras | ||
``` | ||
|
||
```shell | ||
$ poetry install | ||
``` | ||
|
||
### Run tests | ||
|
||
```shell | ||
$ pytest | ||
``` | ||
Or running via vscode interface. | ||
|
||
## Dependencies | ||
|
||
The Python Solar Plus project relies on these excellent libraries: | ||
|
||
- poetry - A manager for virtualenvs and dependencies; | ||
- requests - A client for http requests; | ||
- pytest - The best lib python for tests; | ||
- python 3 - support for python >= 3.8. | ||
|
||
<div align="center"> | ||
|
||
`python solar plus intelbras` is made with 💙 by the [@hudsonbrendon](https://github.com/hudsonbrendon) and distributed under [MIT License](LICENSE.md). | ||
|
||
|
||
|
||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Documentation | ||
|
||
::: solar_plus_intelbras.solar_plus_intelbras |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
site_name: Python Solar Plus Intelbras | ||
|
||
theme: | ||
name: "material" | ||
palette: | ||
primary: "green" | ||
accent: "light green" | ||
font: | ||
text: "Roboto" | ||
code: "Fire Code" | ||
|
||
markdown_extensions: | ||
- pymdownx.superfences | ||
- pymdownx.details | ||
- pymdownx.emoji | ||
- pymdownx.tasklist | ||
- pymdownx.tilde | ||
- pymdownx.magiclink | ||
- pymdownx.smartsymbols | ||
- pymdownx.highlight | ||
- pymdownx.caret | ||
- pymdownx.superfences | ||
- pymdownx.tabbed | ||
- pymdownx.snippets | ||
|
||
plugins: | ||
- search | ||
- mkdocstrings: | ||
handlers: | ||
python: | ||
options: | ||
show_source: true # Para ocultar os links do código-fonte |
Oops, something went wrong.