From 2e8ff40d3d35e299a67050a3530c54c5e3b7a383 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 14 May 2023 11:06:08 +0200 Subject: [PATCH] Update --- matcher/__init__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 matcher/__init__.py diff --git a/matcher/__init__.py b/matcher/__init__.py new file mode 100644 index 0000000..5e9706c --- /dev/null +++ b/matcher/__init__.py @@ -0,0 +1,13 @@ +"""Match OSM and Wikidata items.""" + + +CallParams = dict[str, str | int] + +user_agent = ( + "osm-wikidata/0.1 (https://github.com/EdwardBetts/osm-wikidata; edward@4angle.com)" +) + + +def user_agent_headers() -> dict[str, str]: + """User-Agent headers.""" + return {"User-Agent": user_agent}