python-saih-hidrosur
What is this lib ?
Python library around S.A.I.H Hidrosur data
How to install the lib ?
You can get it from pypi like so:
pip3 install saih-hidrosur
How to use the lib
>>> import datetime
>>> from pprint import pprint as pprint
>>> from saihhidrosur import get_stations, Station
>>> pprint(get_stations())
{1: 'SIERRA MIJAS (MA)',
2: 'SIERRA DE LUNA (CA)',
3: 'EMBALSE DE CHARCO REDONDO (CA)',
4: 'DEPÓSITO REGULADOR CHARCO RDO (CA)',
5: 'TORRE TOMA DE CHARCO REDONDO (CA)',
6: 'LOS REALES (MA)',
7: 'DEPÓSITO DI-1 (CA)',
8: 'EMBALSE DE GUADARRANQUE (CA)',
...}
>>> murtas = Station(59)
>>> murtas
<MURTAS (GR) with sensors ['TEMPERATURA EXTERIOR', 'NIVOMETRO', 'PLUVIOMETRO']>
>>> murtas.sensors
{'NIVOMETRO': '059N02',
'PLUVIOMETRO': '059P01',
'TEMPERATURA EXTERIOR': '059M02'}
>>> date_from = datetime.datetime(2022, 1, 1)
>>> date_to = datetime.datetime(2022, 1, 2)
>>> murtas.sensor_values('TEMPERATURA EXTERIOR', date_from, date_to)
{datetime.datetime(2022, 10, 1, 0, 0): 15.2,
datetime.datetime(2022, 10, 1, 1, 0): 14.7,
…
datetime.datetime(2022, 10, 1, 23, 0): 17.0,
datetime.datetime(2022, 10, 2, 0, 0): 16.6}
Metadata
Release files for saih-hidrosur 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| saih-hidrosur-0.2.1.tar.gz | 4.1 kB | Without provenance | Details for saih-hidrosur-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| saih_hidrosur-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for saih_hidrosur-0.2.1-py3-none-any.whl |
Total release size: 8.8 kB
Release files / saih-hidrosur-0.2.1.tar.gz
| Download URL | saih-hidrosur-0.2.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
128a02d77c01f63842f54de3c9ef722502b78ce036109146c2ba89a063d419c4
|
|
BLAKE2b-256 checksum How to use checksums |
cd3f315ab7d06c075ae7eea19bd9e61b98df8095f8b30f1dd6f37323ad06a08f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / saih_hidrosur-0.2.1-py3-none-any.whl
| Download URL | saih_hidrosur-0.2.1-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1dc00a11a02269ab8df207f6ce527863d8faab7963dc5af164e1f14a0e5c8ca0
|
|
BLAKE2b-256 checksum How to use checksums |
0a98700ee36b8b74ba37b0dfa879354a84f293fe95e0a1c32bdb825303da792b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for saih-hidrosur 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.