Commit ef39a064 authored by Marius Kriegerowski's avatar Marius Kriegerowski
Browse files

add tqdm support

parent e04b2444
Pipeline #42061 failed with stage
in 1 minute and 53 seconds
......@@ -21,6 +21,8 @@ import logging
from ..argument_base import ArgumentBase
from tqdm import tqdm
logger = logging.getLogger(__name__)
......@@ -34,7 +36,7 @@ class ArgumentBuildingIdsFile(ArgumentBase):
async def execute(self, message_bus, argument, filename, delay):
with open(filename) as f:
for line in f:
for line in tqdm(f, desc="Dispatching building ids"):
value = line.strip()
logger.debug(
"Dispatching `%s` with `%s` on `%s`.",
......
......@@ -37,6 +37,7 @@ setup(
license="AGPLv3+",
install_requires=[
"rabotnik@git+https://git.gfz-potsdam.de/dynamicexposure/rabotnik/rabotnik.git", # noqa: E501
"tqdm~=4.64.0"
],
tests_require=tests_require,
extras_require={
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment