From 2057f8121f8b65476bd8c67a73fe7bfed67ccc85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Kub=C3=AD=C4=8Dek?= Date: Thu, 16 Jan 2025 13:04:30 +0100 Subject: [PATCH] country: tool for obtain list of countries --- utils/country.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 utils/country.py diff --git a/utils/country.py b/utils/country.py new file mode 100644 index 0000000..5b0cd5c --- /dev/null +++ b/utils/country.py @@ -0,0 +1,12 @@ +from pprint import pprint + +from superfaktura.superfaktura_api import SuperFakturaAPI + + +def country_list(): + api = SuperFakturaAPI() + url = "countries" + return api.get(url) + + +pprint(country_list())