oligo
Cliente Python (NO OFICIAL) para i-DE (Iberdrola distribución)
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (4.3%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Cliente Python (NO OFICIAL) para i-DE (Iberdrola distribución)
Basic Info
- Host: GitHub
- Owner: hectorespert
- License: mit
- Language: Python
- Default Branch: master
- Homepage: https://hectorespert.github.io/python-oligo/
- Size: 81.1 KB
Statistics
- Stars: 70
- Watchers: 9
- Forks: 27
- Open Issues: 1
- Releases: 7
Topics
Metadata Files
README.md
python-oligo
[ES] Cliente Python (NO OFICIAL) para i-DE (Iberdrola distribución).
Instalación:
Requests support:
pip install oligo[requests]
Async support:
pip install oligo[asyncio]
Ejemplos:
Consultar consumo actual (Sync):
```python from oligo import Iber
connection = Iber() connection.login("user", "password")
watt = connection.watthourmeter() print(watt) ```
Consultar consumo actual (ASync):
```python import asyncio from oligo.asyncio import AsyncIber
async def main(): connection = AsyncIber() await connection.login("user", "password")
watt = await connection.watthourmeter()
print(watt)
await connection.close()
asyncio.run(main()) ```
Consultar estado ICP interno (Sync):
python
from oligo import Iber
connection = Iber()
connection.login("user", "password")
status = connection.icpstatus()
print(status)
Consultar estado ICP interno (ASync):
```python import asyncio from oligo.asyncio import AsyncIber
async def main(): connection = AsyncIber() await connection.login("user", "password") status = await connection.icpstatus() print(status)
asyncio.run(main()) ```
Obtener el consumo horario durante un periodo (Sync)
```python from oligo import Iber from datetime import date, timedelta
connection = Iber() connection.login("user", "password")
fromdate = date.today() - timedelta(days=7) untildate = date.today() - timedelta(days=1)
consumo = connection.consumption(fromdate, untildate)
print(consumo[:10]) ```
Obtener el consumo horario durante un periodo (ASync)
```python import asyncio from oligo.asyncio import AsyncIber from datetime import date, timedelta
async def main(): connection = AsyncIber() await connection.login("user", "password")
from_date = date.today() - timedelta(days=7)
until_date = date.today() - timedelta(days=1)
consumo = await connection.consumption(from_date, until_date)
print(consumo[:10])
asyncio.run(main()) ```
Los datos son el consumo por hora en Watt-horas. En este caso tendremos los dato de una semana, que son 7 por 24, 168 valores. Si sumamos y dividimos por 1000, tenemos el consumo de una semana en kWh.
[EN] Python client (UNOFFICIAL) for i-DE (Iberdrola distribución).
Install:
pip install oligo
Example:
Obtain current consumption (Sync):
```python from oligo import Iber
connection = Iber() connection.login("user", "password")
watt = connection.watthourmeter() print(watt) ```
Obtain current consumption (ASync):
```python import asyncio from oligo.asyncio import AsyncIber
async def main(): connection = AsyncIber() await connection.login("user", "password")
watt = await connection.watthourmeter()
print(watt)
asyncio.run(main()) ```
Get ICP status (Sync):
python
from oligo import Iber
connection = Iber()
connection.login("user", "password")
status = connection.icpstatus()
print(status)
Get ICP status (ASync):
```python import asyncio from oligo.asyncio import AsyncIber
async def main(): connection = AsyncIber() await connection.login("user", "password") status = await connection.icpstatus() print(status)
asyncio.run(main()) ```
Retrieve the hourly consumption during a time period (Sync)
```python from oligo import Iber from datetime import date, timedelta
connection = Iber() connection.login("user", "password")
fromdate = date.today() - timedelta(days=7) untildate = date.today() - timedelta(days=1)
consumo = connection.consumption(fromdate, untildate)
print(consumo[:10]) ```
Retrieve the hourly consumption during a time period (Async)
```python import asyncio from oligo.asyncio import AsyncIber from datetime import date, timedelta
async def main(): connection = AsyncIber() await connection.login("user", "password")
from_date = date.today() - timedelta(days=7)
until_date = date.today() - timedelta(days=1)
consumo = await connection.consumption(from_date, until_date)
print(consumo[:10])
asyncio.run(main()) ```
The values are the consumption in Watt-hours. In this case, we have the data of one week, which are 7 times 24, 168 values. If we sum and divide by 1000, we will have the total consumption from one week in kWh.
Owner
- Name: Hector Espert
- Login: hectorespert
- Kind: user
- Location: Spain
- Website: https://hectorespert.github.io
- Twitter: hectorespert
- Repositories: 58
- Profile: https://github.com/hectorespert
GitHub Events
Total
- Create event: 3
- Release event: 2
- Issues event: 3
- Delete event: 3
- Push event: 5
- Pull request event: 2
- Pull request review event: 2
- Pull request review comment event: 1
- Fork event: 1
Last Year
- Create event: 3
- Release event: 2
- Issues event: 3
- Delete event: 3
- Push event: 5
- Pull request event: 2
- Pull request review event: 2
- Pull request review comment event: 1
- Fork event: 1
Committers
Last synced: 12 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Hector Espert | h****o@g****m | 73 |
| dependabot[bot] | 4****] | 7 |
| hectorespert | b****g | 4 |
| Paul Balm | p****m@g****m | 3 |
| earada | e****a@g****m | 1 |
| Fernando Pascual | f****5@g****m | 1 |
| Grant Croker | g****r@s****s | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 20
- Total pull requests: 30
- Average time to close issues: 7 months
- Average time to close pull requests: about 1 month
- Total issue authors: 18
- Total pull request authors: 8
- Average comments per issue: 1.75
- Average comments per pull request: 1.03
- Merged pull requests: 26
- Bot issues: 0
- Bot pull requests: 11
Past Year
- Issues: 1
- Pull requests: 3
- Average time to close issues: 5 days
- Average time to close pull requests: about 20 hours
- Issue authors: 1
- Pull request authors: 2
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 1
Top Authors
Issue Authors
- pirracas77 (2)
- nykroy (2)
- Jujonet (1)
- t4hor3 (1)
- yayitazale (1)
- sgoetz (1)
- inphower (1)
- rafolas (1)
- unaipuelles (1)
- Michaelito80 (1)
- triplecillas (1)
- cmedinga (1)
- omj77 (1)
- alfonso-presa (1)
- alsak0de (1)
Pull Request Authors
- hectorespert (11)
- dependabot[bot] (11)
- think-free (2)
- pbalm (2)
- fer112233 (1)
- GermanDZ (1)
- earada (1)
- grantc (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 141 last-month
- Total dependent packages: 0
- Total dependent repositories: 2
- Total versions: 15
- Total maintainers: 1
pypi.org: oligo
UNOFFICIAL Python client for i-DE
- Homepage: https://github.com/hectorespert/python-oligo
- Documentation: https://oligo.readthedocs.io/
- License: MIT License
-
Latest release: 2.1.2
published 8 months ago
Rankings
Maintainers (1)
Dependencies
- aiohttp *
- deprecated *
- requests *
- requests-mock *
- deprecated *
- actions/checkout v4 composite
- actions/setup-python v5 composite
- actions/cache v4 composite
- actions/checkout v4 composite
- actions/setup-python v5 composite