Skip to content

Commit

Permalink
Merge pull request #36 from bkatiemills/helper_telemetry
Browse files Browse the repository at this point in the history
helper telemetry
  • Loading branch information
bkatiemills authored Jul 12, 2024
2 parents 8216e7c + a18779a commit 2a2432d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion argovisHelpers/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))
Expand Down
Binary file added dist/argovisHelpers-0.0.27-py3-none-any.whl
Binary file not shown.
Binary file added dist/argovisHelpers-0.0.27.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }]
Expand Down

0 comments on commit 2a2432d

Please sign in to comment.