semvec/pypi-packages huggingface dataset:
hidroconta.demeter 9
API to easily access Demeter REST API provided by Hidroconta S.A.U.

# Integrations-PythonAPI
API Python para facilitar el acceso a los endpoints de la interfaz REST de Demeter

La API permite la gestiÃ³n de grandes cantidades de datos mediante la librerÃ­a Pandas, siempre y cuando se utilice la siguiente directiva en las llamadas a los mÃ©todos:
```
# Pandas = True returns a pandas dataframe instead a json
```

La forma de usar la API es la siguiente:

- Importar los modulos deseados:
```
import demeterpy as demeter
import demeterapitypes as tp
import pandas as pd
import datetime
import endpoints
```
- Seleccionar el servidor con el cual se quiere comunicar (se puede modificar en todo momento):
```
# Set server
demeter.set_server(endpoints.Server.MAIN)
```

- Realizar el login en dicho servidor
```
# Login
demeter.login('USERNAME', 'PASSWORD')
```

Una vez seguidos los anteriores pasos, se puede realizar cualquier consulta sobre el sistema.
Algunas de ellas son:

- BÃºsqueda
```
# Search
df = demeter.search(text='SAT', element_types=[tp.Element.COUNTER, tp.Element.ANALOG_INPUT, tp.Element.RTU], status=tp.Status.ENABLED, pandas=True)
print(df)
```

- ObtenciÃ³n de historicos
```
# Get historics
df = demeter.get_historics(start_date=datetime.datetime.now(), end_date=datetime.datetime.now(), element_ids=[1000], subtype=tp.AnalogInputHist.subtype, subcode=[tp.AnalogInputHist.subcode], pandas=True)
print(df)
```

- ObtenciÃ³n de elementos
```
# Get
df = demeter.get_rtus(element_id=17512, pandas=True)
print(df)
```
La API define tambiÃ©n una excepciÃ³n especial cuando la llamada al endpoint de Demeter no devuelve el resultado esperado.
La excepciÃ³n de denomina "DemeterStatusCodeException" y contiene el cÃ³digo de error HTTP.
```
# Exception treatment
try:
    df = demeter.get_rtus(element_id=17512, pandas=True)
except demeter.DemeterStatusCodeException as status_code:
    print('Error {}'.format(status_code))
```
- Por Ãºltimo, se deberÃ­a hacer un logout en el servidor
```
demeter.logout()
```
rethon 1.0.0
A Formal Model of Reflective Equilibrium
Requires Python: >=3.8

# RE Model Python Implementation

Python implementation of a model developed in our SNF-DFG project ["Formal Models of Reflective Equilibrium - How Far Does Reflective Equilibrium Take Us?"](https://re-models.github.io/).

Further information (including installation instructions) can be found under [https://re-models.github.io/rethon/](https://re-models.github.io/rethon/).

---

Claus Beisbart, Gregor Betz, Georg Brun, Sebastian Cacean, Andreas Freivogel, Richard Lohse
theodias 1.0.0
A python implementation of the theory of dialectical structures.
Requires Python: >=3.8

# Theodias

`theodias` provides Python implementations of routines to constructs, and analyze dialectical structures. It 
is based on the **THEO**ry of **DIA**lectical **S**tructures (Betz 2010). 

The package contains classes that provide basic functionalities for using dialectical structures as they are described in Betz (2010) and Betz (2013).

Further information can be found under [https://re-models.github.io/theodias/](https://re-models.github.io/theodias/).

## Literature

Betz, G., 2010. Theorie dialektischer Strukturen. Klostermann, Frankfurt am Main.[https://doi.org/10.5771/9783465136293](https://doi.org/10.5771/9783465136293)

Betz, G., 2013. Debate Dynamics: How Controversy Improves Our Beliefs, Synthese Library. Springer Netherlands.[https://www.springer.com/de/book/9789400745988](https://www.springer.com/de/book/9789400745988)

---

Claus Beisbart, Gregor Betz, Georg Brun, Sebastian Cacean, Andreas Freivogel, Richard Lohse