mpcaHydro 2.2.6__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.
Files changed (41) hide show
  1. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/PKG-INFO +1 -1
  2. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/pyproject.toml +1 -1
  3. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/pywisk.py +5 -5
  4. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/.gitattributes +0 -0
  5. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/.gitignore +0 -0
  6. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/README.md +0 -0
  7. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/__init__.py +0 -0
  8. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/csg.py +0 -0
  9. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/data/EQUIS_PARAMETER_XREF.csv +0 -0
  10. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/data/WISKI_EQUIS_XREF.csv +0 -0
  11. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/data/WISKI_QUALITY_CODES.csv +0 -0
  12. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/data/outlet.duckdb +0 -0
  13. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/data/stations_EQUIS.gpkg +0 -0
  14. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/data/stations_wiski.gpkg +0 -0
  15. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/data/wiskiweb01.pca.state.mn.us.crt +0 -0
  16. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/equis.py +0 -0
  17. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/outlets.py +0 -0
  18. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/reports.py +0 -0
  19. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/sql/analytics_tables.sql +0 -0
  20. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/sql/outlets_schema.sql +0 -0
  21. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/sql/schemas.sql +0 -0
  22. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/sql/staging_tables.sql +0 -0
  23. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/sql/views_analytics.sql +0 -0
  24. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/sql/views_outlets.sql +0 -0
  25. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/sql/views_reports.sql +0 -0
  26. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/sql_loader.py +0 -0
  27. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/swd.py +0 -0
  28. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/warehouse.py +0 -0
  29. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/warehouse_functions.py +0 -0
  30. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/wiski.py +0 -0
  31. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/src/mpcaHydro/xref.py +0 -0
  32. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/tests/integration/README.md +0 -0
  33. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/tests/integration/conftest.py +0 -0
  34. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/tests/integration/test_data_manager.py +0 -0
  35. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/tests/integration/test_data_manager_integration.py +0 -0
  36. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/tests/integration/test_equis_integration.py +0 -0
  37. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/tests/integration/test_warehouse.py +0 -0
  38. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/tests/integration/test_wiski.py +0 -0
  39. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/tests/integration/test_wiski_integration.py +0 -0
  40. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/tests/pixi.toml +0 -0
  41. {mpcahydro-2.2.6 → mpcahydro-2.2.7}/tests/test_data_manager_functions.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mpcaHydro
3
- Version: 2.2.6
3
+ Version: 2.2.7
4
4
  Summary: Python package for downloading MPCA hydrology data
5
5
  Project-URL: Homepage, https://github.com/mfratkin1/mpcaHydro
6
6
  Author-email: Mulu Fratkin <michael.fratkin@state.mn.us>
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
5
5
  [project]
6
6
  name = "mpcaHydro"
7
7
  urls = { "Homepage" = "https://github.com/mfratkin1/mpcaHydro" } # ? Add this!
8
- version = "2.2.6"
8
+ version = "2.2.7"
9
9
  dependencies = [
10
10
  "pandas",
11
11
  "requests",
@@ -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 = 'https://wiskiweb01.pca.state.mn.us/KiWIS/KiWIS?'
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('https://wiskiweb01.pca.state.mn.us', timeout=timeout)
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,verify=CERT_PATH).json()[0]
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, verify=CERT_PATH)
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), verify=CERT_PATH)
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