pygazpar 1.3.0a6__tar.gz → 1.3.0a9__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pygazpar-1.3.0a6/pygazpar.egg-info → pygazpar-1.3.0a9}/PKG-INFO +10 -1
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/README.md +5 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/pygazpar/datasource.py +5 -2
- pygazpar-1.3.0a9/pygazpar/version.py +1 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9/pygazpar.egg-info}/PKG-INFO +10 -1
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/tests/test_client.py +1 -1
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/tests/test_datasource.py +1 -1
- pygazpar-1.3.0a6/pygazpar/version.py +0 -1
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/LICENSE.md +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/MANIFEST.in +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/pygazpar/__init__.py +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/pygazpar/__main__.py +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/pygazpar/client.py +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/pygazpar/enum.py +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/pygazpar/excelparser.py +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/pygazpar/jsonparser.py +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/pygazpar/resources/daily_data_sample.json +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/pygazpar/resources/hourly_data_sample.json +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/pygazpar/resources/monthly_data_sample.json +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/pygazpar/resources/weekly_data_sample.json +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/pygazpar/resources/yearly_data_sample.json +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/pygazpar.egg-info/SOURCES.txt +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/pygazpar.egg-info/dependency_links.txt +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/pygazpar.egg-info/entry_points.txt +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/pygazpar.egg-info/not-zip-safe +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/pygazpar.egg-info/requires.txt +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/pygazpar.egg-info/top_level.txt +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/samples/__init__.py +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/samples/excelSample.py +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/samples/jsonSample.py +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/samples/testSample.py +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/setup.cfg +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/setup.py +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/tests/__init__.py +0 -0
- {pygazpar-1.3.0a6 → pygazpar-1.3.0a9}/tests/test_datafileparser.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pygazpar
|
3
|
-
Version: 1.3.
|
3
|
+
Version: 1.3.0a9
|
4
4
|
Summary: Retrieve gas consumption from GrDF web site (French Gas Company)
|
5
5
|
Home-page: https://github.com/ssenart/pygazpar
|
6
6
|
Author: Stephane Senart
|
@@ -13,6 +13,11 @@ Project-URL: Issues, https://github.com/ssenart/PyGazpar/issues
|
|
13
13
|
Project-URL: Changelog, https://github.com/ssenart/PyGazpar/blob/master/CHANGELOG.md
|
14
14
|
Project-URL: Download, https://pypi.org/project/pygazpar
|
15
15
|
Description: # PyGazpar
|
16
|
+
|
17
|
+
## <span style="color:green">!!! This library is working again. CAPTCHA has been removed !!!</span>
|
18
|
+
|
19
|
+
## <span style="color:red">~~!!! This library is broken since CAPTCHA is mandatory on GrDF site !!!~~</span>
|
20
|
+
|
16
21
|
PyGazpar is a Python library for getting natural gas consumption from GrDF French provider.
|
17
22
|
|
18
23
|
Their natural gas meter is called Gazpar. It is wireless and transmit the gas consumption once per day.
|
@@ -197,6 +202,10 @@ Description: # PyGazpar
|
|
197
202
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
198
203
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
199
204
|
|
205
|
+
## [1.2.2](https://github.com/ssenart/PyGazpar/compare/1.2.1...1.2.2) - 2024-05-08
|
206
|
+
|
207
|
+
### Fixed
|
208
|
+
- [#65](https://github.com/ssenart/PyGazpar/issues/65): [Bug] PermissionError happens when loading data from Excel file.
|
200
209
|
|
201
210
|
## [1.2.1](https://github.com/ssenart/PyGazpar/compare/1.2.0...1.2.1) - 2024-05-04
|
202
211
|
|
@@ -1,4 +1,9 @@
|
|
1
1
|
# PyGazpar
|
2
|
+
|
3
|
+
## <span style="color:green">!!! This library is working again. CAPTCHA has been removed !!!</span>
|
4
|
+
|
5
|
+
## <span style="color:red">~~!!! This library is broken since CAPTCHA is mandatory on GrDF site !!!~~</span>
|
6
|
+
|
2
7
|
PyGazpar is a Python library for getting natural gas consumption from GrDF French provider.
|
3
8
|
|
4
9
|
Their natural gas meter is called Gazpar. It is wireless and transmit the gas consumption once per day.
|
@@ -144,7 +144,10 @@ class ExcelWebDataSource(WebDataSource):
|
|
144
144
|
file_list = glob.glob(data_file_path_pattern)
|
145
145
|
for filename in file_list:
|
146
146
|
if os.path.isfile(filename):
|
147
|
-
|
147
|
+
try:
|
148
|
+
os.remove(filename)
|
149
|
+
except PermissionError:
|
150
|
+
pass
|
148
151
|
|
149
152
|
if frequencies is None:
|
150
153
|
# Transform Enum in List.
|
@@ -194,7 +197,7 @@ class ExcelWebDataSource(WebDataSource):
|
|
194
197
|
try:
|
195
198
|
# openpyxl does not close the file properly.
|
196
199
|
os.remove(filename)
|
197
|
-
except
|
200
|
+
except PermissionError:
|
198
201
|
pass
|
199
202
|
|
200
203
|
# We compute yearly from daily data.
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "1.3.0a9"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pygazpar
|
3
|
-
Version: 1.3.
|
3
|
+
Version: 1.3.0a9
|
4
4
|
Summary: Retrieve gas consumption from GrDF web site (French Gas Company)
|
5
5
|
Home-page: https://github.com/ssenart/pygazpar
|
6
6
|
Author: Stephane Senart
|
@@ -13,6 +13,11 @@ Project-URL: Issues, https://github.com/ssenart/PyGazpar/issues
|
|
13
13
|
Project-URL: Changelog, https://github.com/ssenart/PyGazpar/blob/master/CHANGELOG.md
|
14
14
|
Project-URL: Download, https://pypi.org/project/pygazpar
|
15
15
|
Description: # PyGazpar
|
16
|
+
|
17
|
+
## <span style="color:green">!!! This library is working again. CAPTCHA has been removed !!!</span>
|
18
|
+
|
19
|
+
## <span style="color:red">~~!!! This library is broken since CAPTCHA is mandatory on GrDF site !!!~~</span>
|
20
|
+
|
16
21
|
PyGazpar is a Python library for getting natural gas consumption from GrDF French provider.
|
17
22
|
|
18
23
|
Their natural gas meter is called Gazpar. It is wireless and transmit the gas consumption once per day.
|
@@ -197,6 +202,10 @@ Description: # PyGazpar
|
|
197
202
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
198
203
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
199
204
|
|
205
|
+
## [1.2.2](https://github.com/ssenart/PyGazpar/compare/1.2.1...1.2.2) - 2024-05-08
|
206
|
+
|
207
|
+
### Fixed
|
208
|
+
- [#65](https://github.com/ssenart/PyGazpar/issues/65): [Bug] PermissionError happens when loading data from Excel file.
|
200
209
|
|
201
210
|
## [1.2.1](https://github.com/ssenart/PyGazpar/compare/1.2.0...1.2.1) - 2024-05-04
|
202
211
|
|
@@ -72,7 +72,7 @@ class TestClient:
|
|
72
72
|
|
73
73
|
data = client.loadSince(self.__pceIdentifier, 365, [Frequency.MONTHLY])
|
74
74
|
|
75
|
-
assert (len(data[Frequency.MONTHLY.value]) >=
|
75
|
+
assert (len(data[Frequency.MONTHLY.value]) >= 11 and len(data[Frequency.MONTHLY.value]) <= 13)
|
76
76
|
|
77
77
|
def test_yearly_jsonweb(self):
|
78
78
|
client = Client(JsonWebDataSource(self.__username, self.__password))
|
@@ -143,7 +143,7 @@ class TestAllDataSource:
|
|
143
143
|
|
144
144
|
assert (len(data[Frequency.WEEKLY.value]) >= 51 and len(data[Frequency.WEEKLY.value]) <= 54)
|
145
145
|
|
146
|
-
assert (len(data[Frequency.MONTHLY.value]) >=
|
146
|
+
assert (len(data[Frequency.MONTHLY.value]) >= 11 and len(data[Frequency.MONTHLY.value]) <= 13)
|
147
147
|
|
148
148
|
assert (len(data[Frequency.YEARLY.value]) == 1)
|
149
149
|
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "1.3.0a6"
|
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
|
File without changes
|