txt2ebook 0.1.102__py3-none-any.whl → 0.1.104__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
txt2ebook/__init__.py CHANGED
@@ -22,7 +22,7 @@ import sys
22
22
 
23
23
  logger = logging.getLogger(__name__)
24
24
 
25
- __version__ = "0.1.102"
25
+ __version__ = "0.1.104"
26
26
 
27
27
 
28
28
  def setup_logger(config: argparse.Namespace) -> None:
txt2ebook/txt2ebook.py CHANGED
@@ -22,8 +22,10 @@
22
22
  """
23
23
 
24
24
  import argparse
25
+ import datetime
25
26
  import logging
26
27
  import sys
28
+ import time
27
29
  from typing import Optional, Sequence
28
30
 
29
31
  from bs4 import UnicodeDammit
@@ -513,7 +515,13 @@ def main(args: Optional[Sequence[str]] = None):
513
515
  logger.debug(config)
514
516
 
515
517
  setup_logger(config)
518
+
519
+ start_time = time.time()
516
520
  run(config)
521
+ end_time = time.time()
522
+ elapsed_time = end_time - start_time
523
+ timedelta = datetime.timedelta(seconds=elapsed_time)
524
+ logger.info("Time taken: %s", timedelta)
517
525
 
518
526
  except Exception as error:
519
527
  logger.error(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: txt2ebook
3
- Version: 0.1.102
3
+ Version: 0.1.104
4
4
  Summary: CLI tool to convert txt file to ebook format
5
5
  Home-page: https://github.com/kianmeng/txt2ebook
6
6
  License: AGPL-3.0-or-later
@@ -1,4 +1,4 @@
1
- txt2ebook/__init__.py,sha256=_fUnZnQeslMTywKK1JqYos66Vf94ZMljVyk4cWyfndo,2062
1
+ txt2ebook/__init__.py,sha256=roBQocPyXl1Yj5SyBY3Rj_kqvP0XbafqmOuH2mxM5d4,2062
2
2
  txt2ebook/__main__.py,sha256=gMLvgpqc_BL4cBqNe0vqErRF5dlJPAbvqu1zndcAHYI,850
3
3
  txt2ebook/exceptions.py,sha256=b2HDsXdqweLJbvSJEGt48nxvGkZq20SfYezSjwp77JU,842
4
4
  txt2ebook/formats/__init__.py,sha256=WhiRWGvbUjc8QZfhAIkKCg6GL8vNNlEF73meZSzYhDA,2463
@@ -33,10 +33,10 @@ txt2ebook/models/chapter.py,sha256=buECAklNQgM3tDehzyVO9YfA_F0iXyLq2PaMZGV_Zaw,1
33
33
  txt2ebook/models/volume.py,sha256=HyT4XO9yZ8d0PgZVfMMyAYUDFv58RrUmsSFNNmU-sHY,1592
34
34
  txt2ebook/parser.py,sha256=DbivznOgBOzlY5btTdB09D6yNGk5QXsE-gD2zc6lJyc,12188
35
35
  txt2ebook/tokenizer.py,sha256=Bm56thLiYSmRDuFiAaOH-NibzhYZQvnLo_u21KaV4Oo,9406
36
- txt2ebook/txt2ebook.py,sha256=Sh9Ny0UARhrBbjv8Glcn45-3JqOUZn8bxh_sNP0eUp8,13445
36
+ txt2ebook/txt2ebook.py,sha256=abYTP_62aqHhfetXW8oOIypUaQCLFI7nmZwHdcm7P24,13693
37
37
  txt2ebook/zh_utils.py,sha256=EgKVbwqYGaTGswQUGcOCeSfRelzwkAb9WWY9TrsX1x4,4882
38
- txt2ebook-0.1.102.dist-info/LICENSE.md,sha256=tGtFDwxWTjuR9syrJoSv1Hiffd2u8Tu8cYClfrXS_YU,31956
39
- txt2ebook-0.1.102.dist-info/METADATA,sha256=ZOD4ccBkqExZC8PkxPNNZ_tnowYUjFEJaNJFOMA3xhI,7656
40
- txt2ebook-0.1.102.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
41
- txt2ebook-0.1.102.dist-info/entry_points.txt,sha256=IQHyIIhd0MHjSSRVC1a6tMeIoLus8D06KHL_cumvEbg,83
42
- txt2ebook-0.1.102.dist-info/RECORD,,
38
+ txt2ebook-0.1.104.dist-info/LICENSE.md,sha256=tGtFDwxWTjuR9syrJoSv1Hiffd2u8Tu8cYClfrXS_YU,31956
39
+ txt2ebook-0.1.104.dist-info/METADATA,sha256=flC602mGugcPuGRicCCk2TOJU7MTcbtXdDXoMX3MYJs,7656
40
+ txt2ebook-0.1.104.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
41
+ txt2ebook-0.1.104.dist-info/entry_points.txt,sha256=IQHyIIhd0MHjSSRVC1a6tMeIoLus8D06KHL_cumvEbg,83
42
+ txt2ebook-0.1.104.dist-info/RECORD,,