Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

e-data

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

e-data - npm Package Compare versions

Comparing version
1.2.21
to
1.2.22
+1
-1
e_data.egg-info/PKG-INFO
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 []

@@ -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}
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

@@ -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?