diff --git a/argovisHelpers/helpers.py b/argovisHelpers/helpers.py index 46a5da7..55e1827 100644 --- a/argovisHelpers/helpers.py +++ b/argovisHelpers/helpers.py @@ -2,6 +2,7 @@ from shapely.geometry import shape, box, Polygon from shapely.ops import orient import geopandas as gpd +import pkg_resources def slice_timesteps(options, r): # given a qsr option dict and data route, return a list of reasonable time divisions @@ -223,7 +224,7 @@ def argofetch(route, options={}, apikey='', apiroot='https://argovis-api.colorad if option in options: options[option] = str(options[option]) - dl = requests.get(apiroot.rstrip('/') + '/' + route.lstrip('/'), params = options, headers={'x-argokey': apikey}) + dl = requests.get(apiroot.rstrip('/') + '/' + route.lstrip('/'), params = options, headers={'x-argokey': apikey, 'x-avh-telemetry': pkg_resources.get_distribution('argovisHelpers').version}) statuscode = dl.status_code if verbose: print(urllib.parse.unquote(dl.url)) diff --git a/dist/argovisHelpers-0.0.27-py3-none-any.whl b/dist/argovisHelpers-0.0.27-py3-none-any.whl new file mode 100644 index 0000000..fa1f5a6 Binary files /dev/null and b/dist/argovisHelpers-0.0.27-py3-none-any.whl differ diff --git a/dist/argovisHelpers-0.0.27.tar.gz b/dist/argovisHelpers-0.0.27.tar.gz new file mode 100644 index 0000000..6429061 Binary files /dev/null and b/dist/argovisHelpers-0.0.27.tar.gz differ diff --git a/pyproject.toml b/pyproject.toml index 432873f..c2bec44 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "argovisHelpers" -version = "0.0.26" +version = "0.0.27" description = "Helper functions to consume and parse information from University of Colorado's Argovis API." readme = "README.md" authors = [{name = "Katie Mills" }]