pygazpar 1.3.0a12__tar.gz → 1.3.0a14__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pygazpar-1.3.0a12/pygazpar.egg-info → pygazpar-1.3.0a14}/PKG-INFO +14 -5
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/pygazpar/datasource.py +13 -29
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/pygazpar/jsonparser.py +1 -1
- pygazpar-1.3.0a14/pygazpar/version.py +1 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14/pygazpar.egg-info}/PKG-INFO +14 -5
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/pygazpar.egg-info/SOURCES.txt +0 -1
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/pygazpar.egg-info/entry_points.txt +1 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/tests/test_client.py +14 -0
- pygazpar-1.3.0a12/CHANGELOG.md +0 -225
- pygazpar-1.3.0a12/pygazpar/version.py +0 -1
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/LICENSE.md +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/MANIFEST.in +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/README.md +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/pygazpar/__init__.py +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/pygazpar/__main__.py +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/pygazpar/client.py +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/pygazpar/enum.py +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/pygazpar/excelparser.py +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/pygazpar/resources/daily_data_sample.json +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/pygazpar/resources/hourly_data_sample.json +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/pygazpar/resources/monthly_data_sample.json +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/pygazpar/resources/weekly_data_sample.json +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/pygazpar/resources/yearly_data_sample.json +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/pygazpar.egg-info/dependency_links.txt +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/pygazpar.egg-info/not-zip-safe +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/pygazpar.egg-info/requires.txt +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/pygazpar.egg-info/top_level.txt +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/samples/__init__.py +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/samples/excelSample.py +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/samples/jsonSample.py +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/samples/testSample.py +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/setup.cfg +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/setup.py +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/tests/__init__.py +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/tests/test_datafileparser.py +0 -0
- {pygazpar-1.3.0a12 → pygazpar-1.3.0a14}/tests/test_datasource.py +0 -0
@@ -1,12 +1,12 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pygazpar
|
3
|
-
Version: 1.3.
|
3
|
+
Version: 1.3.0a14
|
4
4
|
Summary: Retrieve gas consumption from GrDF web site (French Gas Company)
|
5
5
|
Home-page: https://github.com/ssenart/pygazpar
|
6
|
-
Download-URL: https://github.com/ssenart/pygazpar/releases
|
7
6
|
Author: Stephane Senart
|
8
7
|
Author-email: stephane.senart@gmail.com
|
9
8
|
License: MIT
|
9
|
+
Download-URL: https://github.com/ssenart/pygazpar/releases
|
10
10
|
Project-URL: Home, https://github.com/ssenart/pygazpar
|
11
11
|
Project-URL: Source, https://github.com/ssenart/pygazpar
|
12
12
|
Project-URL: Issues, https://github.com/ssenart/PyGazpar/issues
|
@@ -26,9 +26,6 @@ Classifier: Programming Language :: Python :: 3.12
|
|
26
26
|
Requires-Python: >=3.7
|
27
27
|
Description-Content-Type: text/markdown
|
28
28
|
License-File: LICENSE.md
|
29
|
-
Requires-Dist: openpyxl>=2.6.3
|
30
|
-
Requires-Dist: requests>=2.26.0
|
31
|
-
Requires-Dist: pandas
|
32
29
|
|
33
30
|
# PyGazpar
|
34
31
|
|
@@ -220,6 +217,16 @@ All notable changes to this project will be documented in this file.
|
|
220
217
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
221
218
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
222
219
|
|
220
|
+
## [1.2.6](https://github.com/ssenart/PyGazpar/compare/1.2.6...1.2.5) - 2025-01-03
|
221
|
+
|
222
|
+
### Fixed
|
223
|
+
- [#77](https://github.com/ssenart/PyGazpar/issues/77): Some error may occur while requesting data from GrDF API.
|
224
|
+
|
225
|
+
## [1.2.5](https://github.com/ssenart/PyGazpar/compare/1.2.5...1.2.4) - 2024-12-21
|
226
|
+
|
227
|
+
### Fixed
|
228
|
+
- [#75](https://github.com/ssenart/PyGazpar/issues/75): Fix an error when no temperature data is available.
|
229
|
+
|
223
230
|
## [1.2.4](https://github.com/ssenart/PyGazpar/compare/1.2.4...1.2.3) - 2024-10-09
|
224
231
|
|
225
232
|
### Fixed
|
@@ -461,3 +468,5 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
461
468
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
462
469
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
463
470
|
SOFTWARE.
|
471
|
+
|
472
|
+
|
@@ -59,9 +59,9 @@ class WebDataSource(IDataSource):
|
|
59
59
|
# ------------------------------------------------------
|
60
60
|
def load(self, pceIdentifier: str, startDate: date, endDate: date, frequencies: Optional[List[Frequency]] = None) -> MeterReadingsByFrequency:
|
61
61
|
|
62
|
-
|
62
|
+
self._login(self.__username, self.__password) # We ignore the return value.
|
63
63
|
|
64
|
-
res = self._loadFromSession(
|
64
|
+
res = self._loadFromSession(pceIdentifier, startDate, endDate, frequencies)
|
65
65
|
|
66
66
|
Logger.debug("The data update terminates normally")
|
67
67
|
|
@@ -88,23 +88,23 @@ class WebDataSource(IDataSource):
|
|
88
88
|
|
89
89
|
jar = http.cookiejar.CookieJar()
|
90
90
|
|
91
|
-
|
92
|
-
|
93
|
-
|
91
|
+
self._session = Session()
|
92
|
+
self._session.headers.update({"Content-Type": "application/json"})
|
93
|
+
self._session.headers.update({"X-Requested-With": "XMLHttpRequest"})
|
94
94
|
|
95
95
|
params = json.loads(AUTH_TOKEN_PARAMS.format(session_token))
|
96
96
|
|
97
|
-
response =
|
97
|
+
response = self._session.get(AUTH_TOKEN_URL, params=params, allow_redirects=True, cookies=jar) # type: ignore
|
98
98
|
|
99
99
|
if response.status_code != 200:
|
100
100
|
raise Exception(f"An error occurred while getting the auth token. Status code: {response.status_code} - {response.text}")
|
101
101
|
|
102
|
-
auth_token =
|
102
|
+
auth_token = self._session.cookies.get("auth_token", domain="monespace.grdf.fr")
|
103
103
|
|
104
104
|
return auth_token # type: ignore
|
105
105
|
|
106
106
|
@abstractmethod
|
107
|
-
def _loadFromSession(self,
|
107
|
+
def _loadFromSession(self, pceIdentifier: str, startDate: date, endDate: date, frequencies: Optional[List[Frequency]] = None) -> MeterReadingsByFrequency:
|
108
108
|
pass
|
109
109
|
|
110
110
|
|
@@ -133,7 +133,7 @@ class ExcelWebDataSource(WebDataSource):
|
|
133
133
|
self.__tmpDirectory = tmpDirectory
|
134
134
|
|
135
135
|
# ------------------------------------------------------
|
136
|
-
def _loadFromSession(self,
|
136
|
+
def _loadFromSession(self, pceIdentifier: str, startDate: date, endDate: date, frequencies: Optional[List[Frequency]] = None) -> MeterReadingsByFrequency:
|
137
137
|
|
138
138
|
res = {}
|
139
139
|
|
@@ -166,16 +166,8 @@ class ExcelWebDataSource(WebDataSource):
|
|
166
166
|
retry = 10
|
167
167
|
while retry > 0:
|
168
168
|
|
169
|
-
# Create a session.
|
170
|
-
session = Session()
|
171
|
-
session.headers.update({"Host": "monespace.grdf.fr"})
|
172
|
-
session.headers.update({"Domain": "grdf.fr"})
|
173
|
-
session.headers.update({"X-Requested-With": "XMLHttpRequest"})
|
174
|
-
session.headers.update({"Accept": "application/json"})
|
175
|
-
session.cookies.set("auth_token", auth_token, domain="monespace.grdf.fr")
|
176
|
-
|
177
169
|
try:
|
178
|
-
self.__downloadFile(
|
170
|
+
self.__downloadFile(self._session, downloadUrl, self.__tmpDirectory)
|
179
171
|
break
|
180
172
|
except Exception as e:
|
181
173
|
|
@@ -267,7 +259,7 @@ class JsonWebDataSource(WebDataSource):
|
|
267
259
|
|
268
260
|
super().__init__(username, password)
|
269
261
|
|
270
|
-
def _loadFromSession(self,
|
262
|
+
def _loadFromSession(self, pceIdentifier: str, startDate: date, endDate: date, frequencies: Optional[List[Frequency]] = None) -> MeterReadingsByFrequency:
|
271
263
|
|
272
264
|
res = {}
|
273
265
|
|
@@ -286,16 +278,8 @@ class JsonWebDataSource(WebDataSource):
|
|
286
278
|
retry = 10
|
287
279
|
while retry > 0:
|
288
280
|
|
289
|
-
# Create a session.
|
290
|
-
session = Session()
|
291
|
-
session.headers.update({"Host": "monespace.grdf.fr"})
|
292
|
-
session.headers.update({"Domain": "grdf.fr"})
|
293
|
-
session.headers.update({"X-Requested-With": "XMLHttpRequest"})
|
294
|
-
session.headers.update({"Accept": "application/json"})
|
295
|
-
session.cookies.set("auth_token", auth_token, domain="monespace.grdf.fr")
|
296
|
-
|
297
281
|
try:
|
298
|
-
response =
|
282
|
+
response = self._session.get(downloadUrl)
|
299
283
|
|
300
284
|
if "text/html" in response.headers.get("Content-Type"): # type: ignore
|
301
285
|
raise Exception("An error occurred while loading data. Please check your credentials.")
|
@@ -321,7 +305,7 @@ class JsonWebDataSource(WebDataSource):
|
|
321
305
|
temperaturesUrl = JsonWebDataSource.TEMPERATURES_URL.format(pceIdentifier, endDate.strftime(JsonWebDataSource.INPUT_DATE_FORMAT), days)
|
322
306
|
|
323
307
|
# Get weather data.
|
324
|
-
temperatures =
|
308
|
+
temperatures = self._session.get(temperaturesUrl).text
|
325
309
|
|
326
310
|
# Transform all the data into the target structure.
|
327
311
|
daily = JsonParser.parse(data, temperatures, pceIdentifier)
|
@@ -29,7 +29,7 @@ class JsonParser:
|
|
29
29
|
|
30
30
|
for releve in data[pceIdentifier]['releves']:
|
31
31
|
temperature = releve['temperature']
|
32
|
-
if temperature is None:
|
32
|
+
if temperature is None and temperatures is not None and len(temperatures) > 0:
|
33
33
|
temperature = temperatures.get(releve['journeeGaziere'])
|
34
34
|
|
35
35
|
item = {}
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "1.3.0a14"
|
@@ -1,12 +1,12 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pygazpar
|
3
|
-
Version: 1.3.
|
3
|
+
Version: 1.3.0a14
|
4
4
|
Summary: Retrieve gas consumption from GrDF web site (French Gas Company)
|
5
5
|
Home-page: https://github.com/ssenart/pygazpar
|
6
|
-
Download-URL: https://github.com/ssenart/pygazpar/releases
|
7
6
|
Author: Stephane Senart
|
8
7
|
Author-email: stephane.senart@gmail.com
|
9
8
|
License: MIT
|
9
|
+
Download-URL: https://github.com/ssenart/pygazpar/releases
|
10
10
|
Project-URL: Home, https://github.com/ssenart/pygazpar
|
11
11
|
Project-URL: Source, https://github.com/ssenart/pygazpar
|
12
12
|
Project-URL: Issues, https://github.com/ssenart/PyGazpar/issues
|
@@ -26,9 +26,6 @@ Classifier: Programming Language :: Python :: 3.12
|
|
26
26
|
Requires-Python: >=3.7
|
27
27
|
Description-Content-Type: text/markdown
|
28
28
|
License-File: LICENSE.md
|
29
|
-
Requires-Dist: openpyxl>=2.6.3
|
30
|
-
Requires-Dist: requests>=2.26.0
|
31
|
-
Requires-Dist: pandas
|
32
29
|
|
33
30
|
# PyGazpar
|
34
31
|
|
@@ -220,6 +217,16 @@ All notable changes to this project will be documented in this file.
|
|
220
217
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
221
218
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
222
219
|
|
220
|
+
## [1.2.6](https://github.com/ssenart/PyGazpar/compare/1.2.6...1.2.5) - 2025-01-03
|
221
|
+
|
222
|
+
### Fixed
|
223
|
+
- [#77](https://github.com/ssenart/PyGazpar/issues/77): Some error may occur while requesting data from GrDF API.
|
224
|
+
|
225
|
+
## [1.2.5](https://github.com/ssenart/PyGazpar/compare/1.2.5...1.2.4) - 2024-12-21
|
226
|
+
|
227
|
+
### Fixed
|
228
|
+
- [#75](https://github.com/ssenart/PyGazpar/issues/75): Fix an error when no temperature data is available.
|
229
|
+
|
223
230
|
## [1.2.4](https://github.com/ssenart/PyGazpar/compare/1.2.4...1.2.3) - 2024-10-09
|
224
231
|
|
225
232
|
### Fixed
|
@@ -461,3 +468,5 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
461
468
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
462
469
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
463
470
|
SOFTWARE.
|
471
|
+
|
472
|
+
|
@@ -52,6 +52,20 @@ class TestClient:
|
|
52
52
|
|
53
53
|
assert (len(data[Frequency.HOURLY.value]) == 0)
|
54
54
|
|
55
|
+
def test_one_day_jsonweb(self):
|
56
|
+
client = Client(JsonWebDataSource(self.__username, self.__password))
|
57
|
+
|
58
|
+
data = client.loadSince(self.__pceIdentifier, 1, [Frequency.DAILY])
|
59
|
+
|
60
|
+
assert (len(data[Frequency.DAILY.value]) <= 1)
|
61
|
+
|
62
|
+
def test_two_days_jsonweb(self):
|
63
|
+
client = Client(JsonWebDataSource(self.__username, self.__password))
|
64
|
+
|
65
|
+
data = client.loadSince(self.__pceIdentifier, 2, [Frequency.DAILY])
|
66
|
+
|
67
|
+
assert (len(data[Frequency.DAILY.value]) <= 2)
|
68
|
+
|
55
69
|
# @pytest.mark.skip(reason="Requires live data")
|
56
70
|
def test_daily_jsonweb(self):
|
57
71
|
client = Client(JsonWebDataSource(self.__username, self.__password))
|
pygazpar-1.3.0a12/CHANGELOG.md
DELETED
@@ -1,225 +0,0 @@
|
|
1
|
-
# Changelog
|
2
|
-
All notable changes to this project will be documented in this file.
|
3
|
-
|
4
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
|
-
|
7
|
-
## [1.2.4](https://github.com/ssenart/PyGazpar/compare/1.2.4...1.2.3) - 2024-10-09
|
8
|
-
|
9
|
-
### Fixed
|
10
|
-
- [#72](https://github.com/ssenart/PyGazpar/issues/72): Remove the warning message "UserWarning: Boolean Series key will be reindexed to match DataFrame index. df = pd.concat([df[(df["count"] >= 7)], df.tail(1)[df["count"] < 7]])".
|
11
|
-
|
12
|
-
## [1.2.3](https://github.com/ssenart/PyGazpar/compare/1.2.3...1.2.1) - 2024-10-05
|
13
|
-
|
14
|
-
### Added
|
15
|
-
- [#70](https://github.com/ssenart/PyGazpar/issues/70): Add Python 3.12 support.
|
16
|
-
|
17
|
-
## [1.2.2](https://github.com/ssenart/PyGazpar/compare/1.2.1...1.2.2) - 2024-05-08
|
18
|
-
|
19
|
-
### Fixed
|
20
|
-
- [#65](https://github.com/ssenart/PyGazpar/issues/65): [Bug] PermissionError happens when loading data from Excel file.
|
21
|
-
|
22
|
-
## [1.2.1](https://github.com/ssenart/PyGazpar/compare/1.2.0...1.2.1) - 2024-05-04
|
23
|
-
|
24
|
-
### Fixed
|
25
|
-
- [#64](https://github.com/ssenart/PyGazpar/issues/64): [Issue] Captcha failed issue.
|
26
|
-
|
27
|
-
- [#63](https://github.com/ssenart/PyGazpar/issues/63): [Bug] If the latest received consumption is Sunday, then the last weekly period is duplicated.
|
28
|
-
|
29
|
-
## [1.2.0](https://github.com/ssenart/PyGazpar/compare/1.1.6...1.2.0) - 2022-12-16
|
30
|
-
|
31
|
-
### Changed
|
32
|
-
- [#59](https://github.com/ssenart/PyGazpar/issues/59): [Feature] Support both Excel and Json data source format from GrDF site.
|
33
|
-
|
34
|
-
- [#60](https://github.com/ssenart/PyGazpar/issues/60): [Feature] Permit to load data at multiple frequencies with one method call.
|
35
|
-
|
36
|
-
### Fixed
|
37
|
-
- [#47](https://github.com/ssenart/PyGazpar/issues/47): [Bug] No temperature field available.
|
38
|
-
|
39
|
-
- [#58](https://github.com/ssenart/PyGazpar/issues/58): [Issue] No data update - GrDF web site is half broken - Download button does not work anymore.
|
40
|
-
|
41
|
-
## [1.1.6](https://github.com/ssenart/PyGazpar/compare/1.1.5...1.1.6) - 2022-11-16
|
42
|
-
### Fixed
|
43
|
-
- [#55](https://github.com/ssenart/PyGazpar/issues/55): Problème de connexion.
|
44
|
-
|
45
|
-
## [1.1.5](https://github.com/ssenart/PyGazpar/compare/1.1.4...1.1.5) - 2022-07-11
|
46
|
-
### Fixed
|
47
|
-
- [#49](https://github.com/ssenart/PyGazpar/issues/49): Authentication failure.
|
48
|
-
|
49
|
-
## [1.1.4](https://github.com/ssenart/PyGazpar/compare/1.1.2...1.1.4) - 2022-01-18
|
50
|
-
### Changed
|
51
|
-
- [#43](https://github.com/ssenart/PyGazpar/issues/43): Downloaded Excel file name has changed from Donnees_informatives_PCE_$dateDebut_$dateFin.xlsx to Donnees_informatives_$numeroPCE_$dateDebut_$dateFin.xlsx.
|
52
|
-
|
53
|
-
## [1.1.2](https://github.com/ssenart/PyGazpar/compare/1.1.1...1.1.2) - 2022-01-08
|
54
|
-
### Fixed
|
55
|
-
- [#39](https://github.com/ssenart/PyGazpar/issues/39): NameError: name 'Frequency' is not defined (thanks [nicolas-r](https://github.com/nicolas-r)).
|
56
|
-
- Numéro PCE pas forcément un nombre: Le numéro PCE de mon compteur commence par un 0 et lorsque j'essaie de récupérer mes relevés avec PyGazpar, une erreur de l'API est renvoyée. Le numéro PCE ne doit donc pas être converti en int lorsque il est passé en paramètre mais doit être une string (thanks [maelgangloff](https://github.com/maelgangloff)).
|
57
|
-
|
58
|
-
## [1.1.1](https://github.com/ssenart/PyGazpar/compare/1.1.0...1.1.1) - 2021-12-02
|
59
|
-
### Changed
|
60
|
-
- Exact same version as 1.1.0 except that 1.1.0 has not been published on Pypi repository.
|
61
|
-
|
62
|
-
## [1.1.0](https://github.com/ssenart/PyGazpar/compare/1.0.2...1.1.0) - 2021-12-02
|
63
|
-
### Changed
|
64
|
-
- Remove Selenium usage and use simple Web request for login and data retrieval.
|
65
|
-
|
66
|
-
## [1.0.2](https://github.com/ssenart/PyGazpar/compare/1.0.1...1.0.2) - 2021-11-25
|
67
|
-
### Fixed
|
68
|
-
- Fix broken command line pygazpar caused by adding the new lastNDays parameter.
|
69
|
-
- Fix the error : ValueError: could not convert string to float: 'Index de début de période (m3)'. It occurs because the records in the Excel file now starts at line 10 instead of line 8 before (thanks to [DEFAYArnaud](https://github.com/DEFAYArnaud) for having spotted the issue and bringing the fix).
|
70
|
-
|
71
|
-
### Changed
|
72
|
-
- In the Excel file, if a cell is empty, then no corresponding key will be inserted in the result dictionary (before we inserted a key with an empty string).
|
73
|
-
|
74
|
-
## [1.0.1](https://github.com/ssenart/PyGazpar/compare/1.0.0...1.0.1) - 2021-11-24
|
75
|
-
### Fixed
|
76
|
-
- Fix typo warning from Pylance preventing 1.0.0 to be published.
|
77
|
-
|
78
|
-
## [1.0.0](https://github.com/ssenart/PyGazpar/compare/0.2.0...1.0.0) - 2021-11-24
|
79
|
-
### Added
|
80
|
-
- New lastNDays parameter to query data only over the last N days period.
|
81
|
-
|
82
|
-
### Fixed
|
83
|
-
- [#18](https://github.com/ssenart/PyGazpar/issues/18): PyGazpar broken since GRDF Monespace has been upgraded to a new version.
|
84
|
-
|
85
|
-
## [0.2.0](https://github.com/ssenart/PyGazpar/compare/0.1.27...0.2.0) - 2021-04-21
|
86
|
-
### Added
|
87
|
-
- [#12](https://github.com/ssenart/PyGazpar/issues/10): Be able to retrieve consumption not only on a daily basis, but weekly and monthly:
|
88
|
-
- API : Add a new parameter 'meterReadingFrequency' to Client that accepts enumeration: Frequency.DAILY, Frequency.WEEKLY or Frequency.MONTHLY.
|
89
|
-
- Command line : Add a new argument '--frequency' that accepts values : DAILY, WEEKLY or MONTHLY.
|
90
|
-
- Be able to test using offline data :
|
91
|
-
- API : Add a new parameter 'testMode' to Clients used to specify whether we want to get some live data (testMode=False) and static testing data (testMode=True).
|
92
|
-
- Command line : Add a new argument '--testMode' (True if specified and False by default).
|
93
|
-
|
94
|
-
### Changed
|
95
|
-
- Some ouput energy property names have changed:
|
96
|
-
- 'date' => 'time_period'.
|
97
|
-
- 'converter_factor' => 'converter_factor_kwh/m3'.
|
98
|
-
- 'local_temperature' => 'temperature_degC'.
|
99
|
-
|
100
|
-
## [0.1.27](https://github.com/ssenart/PyGazpar/compare/0.1.26...0.1.27) - 2021-04-20
|
101
|
-
### Fixed
|
102
|
-
- [#10](https://github.com/ssenart/PyGazpar/issues/10) : Does not download data file in tmpdir as expected (instead it is downloaded in the default user Download directory). The previous attempt in version 0.1.26 is a failure. The origin of the bug is that we send a relative tmp directory path to Webdriver. Additionally, this path has to be normalized to the runtime OS (using slash or backslash).
|
103
|
-
|
104
|
-
## [0.1.26](https://github.com/ssenart/PyGazpar/compare/0.1.25...0.1.26) - 2021-04-18
|
105
|
-
### Fixed
|
106
|
-
- [#10](https://github.com/ssenart/PyGazpar/issues/10) : Does not download data file in tmpdir as expected (instead it is downloaded in the default user Download directory).
|
107
|
-
|
108
|
-
### Added
|
109
|
-
- A new parameter to drive whether we want Selenium in headless mode or not (mainly for troubleshooting purpose).
|
110
|
-
|
111
|
-
## [0.1.25] - 2021-04-15
|
112
|
-
### Fixed
|
113
|
-
- Remove useless warning log messages (log message level has been decreased to debug).
|
114
|
-
|
115
|
-
## [0.1.24] - 2021-04-14
|
116
|
-
### Added
|
117
|
-
- README.md amendment (thanks to pbranly).
|
118
|
-
|
119
|
-
## [0.1.23] - 2021-04-09
|
120
|
-
### Changed
|
121
|
-
- Final release with CI/CD workflow improvement.
|
122
|
-
|
123
|
-
## [0.1.22] - 2021-04-09
|
124
|
-
### Changed
|
125
|
-
- Improve CI/CD workflow.
|
126
|
-
|
127
|
-
## [0.1.21] - 2021-04-07
|
128
|
-
### Changed
|
129
|
-
- Cleanup some codes managing Privacy Conditions popup.
|
130
|
-
|
131
|
-
## [0.1.20] - 2021-04-07
|
132
|
-
### Changed
|
133
|
-
- Close an eventual Privacy Conditions popup just before clicking the daily button (instead of Cookie banner).
|
134
|
-
|
135
|
-
## [0.1.19] - 2021-04-06
|
136
|
-
### Added
|
137
|
-
- Close an eventual Cookie popup just before clicking the daily button.
|
138
|
-
- Add log messages and screenshot capture around click() and send_keys() methods.
|
139
|
-
|
140
|
-
## [0.1.18] - 2021-04-05
|
141
|
-
### Fixed
|
142
|
-
- Typo in logger usage.
|
143
|
-
|
144
|
-
## [0.1.17] - 2021-04-05
|
145
|
-
### Fixed
|
146
|
-
- Logger name must be different in each instance. Using __name__ is a good practice, we can get the module hierarchy.
|
147
|
-
|
148
|
-
## [0.1.16] - 2021-04-05
|
149
|
-
### Fixed
|
150
|
-
- Logger 'pygazpar' initialization must be done inside the main program and not inside the library.
|
151
|
-
|
152
|
-
## [0.1.15] - 2021-04-05
|
153
|
-
### Added
|
154
|
-
- Many log message to help debugging if GrDF site changes something : pygazpar.log
|
155
|
-
- Take a screenshot of the corresponding page where a selenium command fails : error_screenshot.png.
|
156
|
-
|
157
|
-
## [0.1.14] - 2020-09-23
|
158
|
-
### Fixed
|
159
|
-
- GrDF survey popup has to be closed at the home page.
|
160
|
-
- GrDF Assistant popup may hide the Download button. We have to close it.
|
161
|
-
- GrDF bottom banner that invite to accept cookies may also hide the Download button. We have to accept it.
|
162
|
-
|
163
|
-
### Added
|
164
|
-
- A new parameter 'lastNRows' to get only the last N most recent records.
|
165
|
-
|
166
|
-
## [0.1.13] - 2020-06-30
|
167
|
-
### Fixed
|
168
|
-
- GrDF data retrieval from Excel file is not limited to the 1000 first rows any more.
|
169
|
-
|
170
|
-
## [0.1.12] - 2020-06-30
|
171
|
-
### Fixed
|
172
|
-
- The previous 0.1.11 is not sufficient. Hence, 2 new changes : First, make configurable the waiting time so the user can adapt to its context usage.
|
173
|
-
Second, the condition on clicking on Download button is now based on the corresponding event and not anymore on its identifier.
|
174
|
-
|
175
|
-
## [0.1.11] - 2020-06-29
|
176
|
-
### Fixed
|
177
|
-
- When GrDF Web site is slower than usual, the client may not wait enough time for pages to load and miss to reach the data file.
|
178
|
-
It occurs with the page containing 'Jour' button which is very long to load (I increase the wait to load time from 5s to 30s).
|
179
|
-
|
180
|
-
## [0.1.10] - 2020-06-03
|
181
|
-
### Fixed
|
182
|
-
- Extract rows from Excel until line 1000 (instead of 365 as before).
|
183
|
-
|
184
|
-
## [0.1.9] - 2019-08-31
|
185
|
-
### Fixed
|
186
|
-
- WebDriver window size must be large enough to display all clickable components.
|
187
|
-
|
188
|
-
## [0.1.8] - 2019-08-31
|
189
|
-
### Changed
|
190
|
-
- Use PropertyNameEnum type to store all property names.
|
191
|
-
|
192
|
-
## [0.1.7] - 2019-08-29
|
193
|
-
### Added
|
194
|
-
- Add wait_time option to control how much time the library has to wait for Web page element to load (see https://selenium-python.readthedocs.io/waits.html for details).
|
195
|
-
- Add LoginError exception raised when PyGazpar is unable to sign in the GrDF Web site with the given username/password.
|
196
|
-
- Refactor all data property names.
|
197
|
-
|
198
|
-
## [0.1.6] - 2019-08-26
|
199
|
-
### Added
|
200
|
-
- Add README.md and CHANGELOG.md.
|
201
|
-
- Add Client.data() method to get the updated data.
|
202
|
-
|
203
|
-
### Removed
|
204
|
-
- Remove Client.data property to get the updated data. Replaced with Client.__data private property.
|
205
|
-
|
206
|
-
[0.1.25]: https://github.com/ssenart/PyGazpar/compare/0.1.24...0.1.25
|
207
|
-
[0.1.24]: https://github.com/ssenart/PyGazpar/compare/0.1.23...0.1.24
|
208
|
-
[0.1.23]: https://github.com/ssenart/PyGazpar/compare/0.1.22...0.1.23
|
209
|
-
[0.1.22]: https://github.com/ssenart/PyGazpar/compare/0.1.21...0.1.22
|
210
|
-
[0.1.21]: https://github.com/ssenart/PyGazpar/compare/0.1.20...0.1.21
|
211
|
-
[0.1.20]: https://github.com/ssenart/PyGazpar/compare/0.1.19...0.1.20
|
212
|
-
[0.1.19]: https://github.com/ssenart/PyGazpar/compare/0.1.17...0.1.19
|
213
|
-
[0.1.18]: https://github.com/ssenart/PyGazpar/compare/0.1.17...0.1.18
|
214
|
-
[0.1.17]: https://github.com/ssenart/PyGazpar/compare/0.1.16...0.1.17
|
215
|
-
[0.1.16]: https://github.com/ssenart/PyGazpar/compare/0.1.15...0.1.16
|
216
|
-
[0.1.15]: https://github.com/ssenart/PyGazpar/compare/0.1.14...0.1.15
|
217
|
-
[0.1.14]: https://github.com/ssenart/PyGazpar/compare/0.1.13...0.1.14
|
218
|
-
[0.1.13]: https://github.com/ssenart/PyGazpar/compare/0.1.12...0.1.13
|
219
|
-
[0.1.12]: https://github.com/ssenart/PyGazpar/compare/0.1.11...0.1.12
|
220
|
-
[0.1.11]: https://github.com/ssenart/PyGazpar/compare/0.1.10...0.1.11
|
221
|
-
[0.1.10]: https://github.com/ssenart/PyGazpar/compare/0.1.9...0.1.10
|
222
|
-
[0.1.9]: https://github.com/ssenart/PyGazpar/compare/0.1.7...0.1.9
|
223
|
-
[0.1.8]: https://github.com/ssenart/PyGazpar/compare/0.1.7...0.1.8
|
224
|
-
[0.1.7]: https://github.com/ssenart/PyGazpar/compare/0.1.6...0.1.7
|
225
|
-
[0.1.6]: https://github.com/ssenart/PyGazpar/compare/0.1.5...0.1.6
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "1.3.0a12"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|