DMeter360 REST API Wrapper for Python, provided by Hidroconta S.A.U.
Project description
HIDROCONTA - REST API Wrapper
This project aims to allow an easy access to Hidroconta's DMeter360 REST API by wrapping its methods in an intuitive Python interface.
The library also allows the management of huge data processing by integrating pandas.
https://pypi.org/project/hidroconta/
Current version: 3.0.0 (31/03/2026)
More information can be requested by contacting javier.lopez@hidroconta.com
Versions history:
# 1.6.0:
# Added historical type FlowHist
# Added historical type CustomHist to add a custom subtype and subcode
# 1.6.1
# Fixed FlowHist, named FlowlHist in 1.6.0
# 1.7.0
# Added IrisCounterGlobalHist to types
# 1.7.1
# Fixed error in get_criteria
# 1.8.0
# Fixed history consumption endpoint to work with legacy values
# 2.0.0
# Added Nautilus+ compatibility
# 3.0.0
# Refactoring to use a modern OOP approach
# Allowing API Key login method as well as validation of MFA codes
### Version 3.0.0 is not retrocompatible with previous versions
The API allows the management of large amounts of data using the Pandas library, provided that the following directive is used in method calls:
# Pandas = True returns a pandas dataframe instead a json
Object creation example:
with demeter.DemeterClient(endpoints.Server.MAIN) as demeter_client:
demeter_client.login(api_key='YOUR_API_KEY')
A basic method calling example:
# Search
df = demeter_client.search(text='SAT', element_types=[tp.Element.COUNTER, tp.Element.ANALOG_INPUT, tp.Element.RTU], status=tp.Status.ENABLED, pandas=True)
print(df)
# Get historics
df = demeter_client.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)
# Get
df = demeter_client.get_rtus(element_id=17512, pandas=True)
print(df)
Exception treatment example:
# Exception treatment
try:
df = demeter_client.get_rtus(element_id=17512, pandas=True)
except demeter.DemeterStatusCodeException as status_code:
print('Error {}'.format(status_code))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hidroconta-3.0.0.tar.gz.
File metadata
- Download URL: hidroconta-3.0.0.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
496ba0d2504deffdcee9cf8e5fc516c76890644791feb59b9d1c1d81f3638b0a
|
|
| MD5 |
598b9eed630e5fa9b55c6f901db8ec20
|
|
| BLAKE2b-256 |
a04504cec2e1c365e21972958dc3b4adac07d82ad17be512fcfa0398238d27c9
|
File details
Details for the file hidroconta-3.0.0-py3-none-any.whl.
File metadata
- Download URL: hidroconta-3.0.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ef95bf10604eff2ad2c8c5337990b9ea94b0a7c37578fd293e31a252ffa4d98
|
|
| MD5 |
6d7c1d85ed54c88d5650234f927b2dd7
|
|
| BLAKE2b-256 |
4de7a3b0a3f70ab4be780049c5f49c00a072e3f79149b860fa30d491380a79a7
|