e-data
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: e-data | ||
| Version: 1.2.21 | ||
| Version: 1.2.22 | ||
| Summary: Python library for managing spanish energy data from various web providers | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/uvejota/python-edata |
@@ -163,3 +163,3 @@ """Datadis API connector. | ||
| return json.load(cache) | ||
| except FileNotFoundError: | ||
| except (FileNotFoundError, json.decoder.JSONDecodeError): | ||
| return None | ||
@@ -238,3 +238,5 @@ | ||
| if _cache is not None: | ||
| _LOGGER.info("Returning cached data") | ||
| _LOGGER.info( | ||
| "Returning cached response for '%s'", url + anonym_params | ||
| ) | ||
| return _cache | ||
@@ -241,0 +243,0 @@ return [] |
+21
-0
@@ -749,1 +749,22 @@ """A module for edata helpers.""" | ||
| self.attributes["last_month_€"] = last_month.get("value_eur", None) | ||
| def reset(self): | ||
| """Reset in-mem objects.""" | ||
| self.data = EdataData( | ||
| supplies=[], | ||
| contracts=[], | ||
| consumptions=[], | ||
| maximeter=[], | ||
| pvpc=[], | ||
| consumptions_daily_sum=[], | ||
| consumptions_monthly_sum=[], | ||
| cost_hourly_sum=[], | ||
| cost_daily_sum=[], | ||
| cost_monthly_sum=[], | ||
| ) | ||
| for attr in ATTRIBUTES: | ||
| self.attributes[attr] = None | ||
| self.last_update = {x: datetime(1970, 1, 1) for x in self.data} |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: e-data | ||
| Version: 1.2.21 | ||
| Version: 1.2.22 | ||
| Summary: Python library for managing spanish energy data from various web providers | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/uvejota/python-edata |
+1
-1
@@ -23,3 +23,3 @@ #!/usr/bin/env python | ||
| REQUIRES_PYTHON = ">=3.6.0" | ||
| VERSION = "1.2.21" | ||
| VERSION = "1.2.22" | ||
@@ -26,0 +26,0 @@ # What packages are required for this module to be executed? |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
138884
0.49%2120
0.9%