Skip to content

Commit ed8fa23

Browse files
committed
add actual version to user agent
1 parent c4a0591 commit ed8fa23

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dataretrieval/waterdata/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from zoneinfo import ZoneInfo
1212

1313
from dataretrieval.utils import BaseMetadata
14+
from dataretrieval import __version__
1415

1516
try:
1617
import geopandas as gpd
@@ -251,7 +252,7 @@ def _default_headers():
251252
headers = {
252253
"Accept-Encoding": "compress, gzip",
253254
"Accept": "application/json",
254-
"User-Agent": "python-dataretrieval/1.0",
255+
"User-Agent": f"python-dataretrieval/{__version__}",
255256
"lang": "en-US",
256257
}
257258
token = os.getenv("API_USGS_PAT")

0 commit comments

Comments
 (0)