oligo

Cliente Python (NO OFICIAL) para i-DE (Iberdrola distribución)

https://github.com/hectorespert/python-oligo

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

hacktoberfest python python-library smartmeter

Keywords from Contributors

interactive serializer packaging network-simulation shellcodes hacking autograding observability genomics embedded
Last synced: 6 months ago · JSON representation

Repository

Cliente Python (NO OFICIAL) para i-DE (Iberdrola distribución)

Basic Info
Statistics
  • Stars: 70
  • Watchers: 9
  • Forks: 27
  • Open Issues: 1
  • Releases: 7
Topics
hacktoberfest python python-library smartmeter
Created over 8 years ago · Last pushed 6 months ago
Metadata Files
Readme License

README.md

python-oligo

Python package

Gitpod ready-to-code

[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

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

All Time
  • Total Commits: 90
  • Total Committers: 7
  • Avg Commits per committer: 12.857
  • Development Distribution Score (DDS): 0.189
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email 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
enhancement (2) help wanted (1)
Pull Request Labels
dependencies (11) github_actions (1)

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

  • Versions: 15
  • Dependent Packages: 0
  • Dependent Repositories: 2
  • Downloads: 141 Last month
Rankings
Forks count: 7.5%
Stargazers count: 8.3%
Dependent packages count: 10.0%
Average: 10.2%
Dependent repos count: 11.6%
Downloads: 13.7%
Maintainers (1)
Last synced: 6 months ago

Dependencies

requirements.txt pypi
  • aiohttp *
  • deprecated *
  • requests *
  • requests-mock *
setup.py pypi
  • deprecated *
.github/workflows/publish.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
.github/workflows/test.yml actions
  • actions/cache v4 composite
  • actions/checkout v4 composite
  • actions/setup-python v5 composite