mirror of
https://github.com/JockeTF/fimfarchive.git
synced 2024-11-22 05:17:59 +01:00
Add tqdm partial to utilities
This commit is contained in:
parent
f9b65dab70
commit
f2e013241d
3 changed files with 15 additions and 0 deletions
|
@ -25,9 +25,12 @@ Various utilities.
|
|||
import json
|
||||
import os
|
||||
import shutil
|
||||
from functools import partial
|
||||
from typing import Any, Dict, Optional, Type, TypeVar, Union
|
||||
from pkg_resources import resource_string
|
||||
|
||||
from tqdm import tqdm
|
||||
|
||||
from fimfarchive.flavors import Flavor
|
||||
from fimfarchive.stories import Story
|
||||
|
||||
|
@ -36,12 +39,22 @@ __all__ = (
|
|||
'Empty',
|
||||
'PersistedDict',
|
||||
'find_flavor',
|
||||
'tqdm',
|
||||
)
|
||||
|
||||
|
||||
F = TypeVar('F', bound=Flavor)
|
||||
|
||||
|
||||
tqdm = partial(
|
||||
tqdm,
|
||||
ascii=True,
|
||||
leave=False,
|
||||
smoothing=0,
|
||||
ncols=72,
|
||||
)
|
||||
|
||||
|
||||
class EmptyMeta(type):
|
||||
"""
|
||||
Meta-class for Empty.
|
||||
|
|
|
@ -7,3 +7,4 @@ jmespath
|
|||
mypy
|
||||
pytest
|
||||
requests
|
||||
tqdm
|
||||
|
|
1
setup.py
1
setup.py
|
@ -91,5 +91,6 @@ setup(
|
|||
'boltons',
|
||||
'jmespath',
|
||||
'requests',
|
||||
'tqdm',
|
||||
),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue