mpcaHydro 2.2.5__tar.gz → 2.2.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/PKG-INFO +1 -1
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/pyproject.toml +1 -1
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/pywisk.py +5 -5
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/.gitattributes +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/.gitignore +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/README.md +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/__init__.py +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/csg.py +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/data/EQUIS_PARAMETER_XREF.csv +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/data/WISKI_EQUIS_XREF.csv +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/data/WISKI_QUALITY_CODES.csv +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/data/outlet.duckdb +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/data/stations_EQUIS.gpkg +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/data/stations_wiski.gpkg +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/data/wiskiweb01.pca.state.mn.us.crt +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/equis.py +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/outlets.py +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/reports.py +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/sql/analytics_tables.sql +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/sql/outlets_schema.sql +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/sql/schemas.sql +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/sql/staging_tables.sql +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/sql/views_analytics.sql +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/sql/views_outlets.sql +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/sql/views_reports.sql +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/sql_loader.py +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/swd.py +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/warehouse.py +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/warehouse_functions.py +0 -0
- /mpcahydro-2.2.5/src/mpcaHydro/WISKI.py → /mpcahydro-2.2.7/src/mpcaHydro/wiski.py +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/src/mpcaHydro/xref.py +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/tests/integration/README.md +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/tests/integration/conftest.py +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/tests/integration/test_data_manager.py +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/tests/integration/test_data_manager_integration.py +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/tests/integration/test_equis_integration.py +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/tests/integration/test_warehouse.py +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/tests/integration/test_wiski.py +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/tests/integration/test_wiski_integration.py +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/tests/pixi.toml +0 -0
- {mpcahydro-2.2.5 → mpcahydro-2.2.7}/tests/test_data_manager_functions.py +0 -0
|
@@ -13,7 +13,7 @@ import time
|
|
|
13
13
|
CERT_PATH = str(Path(__file__).resolve().parent/'data\\wiskiweb01.pca.state.mn.us.crt')
|
|
14
14
|
#TODO: Use this url to make sure web service is working https://wiskiweb01.pca.state.mn.us/
|
|
15
15
|
class Service():
|
|
16
|
-
base_url = '
|
|
16
|
+
base_url = 'http://wiskiweb01.pca.state.mn.us/KiWIS/KiWIS?'
|
|
17
17
|
base_dict = {
|
|
18
18
|
'datasource': '0',
|
|
19
19
|
'service': 'kisters',
|
|
@@ -30,7 +30,7 @@ class Service():
|
|
|
30
30
|
try:
|
|
31
31
|
# Using requests.head() to fetch headers is faster than requests.get()
|
|
32
32
|
# as it doesn't download the full content
|
|
33
|
-
response = requests.head('
|
|
33
|
+
response = requests.head('http://wiskiweb01.pca.state.mn.us', timeout=timeout)
|
|
34
34
|
|
|
35
35
|
# raise_for_status() raises an HTTPError for 4xx or 5xx status codes
|
|
36
36
|
response.raise_for_status()
|
|
@@ -53,7 +53,7 @@ class Service():
|
|
|
53
53
|
|
|
54
54
|
def _requestTypes(self):
|
|
55
55
|
url = self.url({'request': 'getrequestinfo'})
|
|
56
|
-
return requests.get(url
|
|
56
|
+
return requests.get(url).json()[0]
|
|
57
57
|
|
|
58
58
|
def getRequests(self):
|
|
59
59
|
return list(self._requestTypes()['Requests'].keys())
|
|
@@ -72,7 +72,7 @@ class Service():
|
|
|
72
72
|
|
|
73
73
|
def info(self,request_type):
|
|
74
74
|
url = self.url({'request': 'getrequestinfo'})
|
|
75
|
-
response = requests.get(url
|
|
75
|
+
response = requests.get(url)
|
|
76
76
|
get_requests = response.json()
|
|
77
77
|
return get_requests[0]['Requests'].keys()
|
|
78
78
|
|
|
@@ -95,7 +95,7 @@ class Service():
|
|
|
95
95
|
|
|
96
96
|
def get_json(self,args_dict):
|
|
97
97
|
# Download request
|
|
98
|
-
self.response = requests.get(self.url(args_dict)
|
|
98
|
+
self.response = requests.get(self.url(args_dict))
|
|
99
99
|
if self.response.status_code != 200:
|
|
100
100
|
print('Error: ' + self.response.json()['message'])
|
|
101
101
|
self.response.raise_for_status() # raises exception when not a 2xx response
|
|
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
|
|
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
|