txt2ebook 0.1.102__py3-none-any.whl → 0.1.103__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 +1 -1
- txt2ebook/txt2ebook.py +8 -0
- {txt2ebook-0.1.102.dist-info → txt2ebook-0.1.103.dist-info}/METADATA +1 -1
- {txt2ebook-0.1.102.dist-info → txt2ebook-0.1.103.dist-info}/RECORD +7 -7
- {txt2ebook-0.1.102.dist-info → txt2ebook-0.1.103.dist-info}/LICENSE.md +0 -0
- {txt2ebook-0.1.102.dist-info → txt2ebook-0.1.103.dist-info}/WHEEL +0 -0
- {txt2ebook-0.1.102.dist-info → txt2ebook-0.1.103.dist-info}/entry_points.txt +0 -0
txt2ebook/__init__.py
CHANGED
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,4 +1,4 @@
|
|
1
|
-
txt2ebook/__init__.py,sha256=
|
1
|
+
txt2ebook/__init__.py,sha256=OxwCWgNoz2HHJrd6p0xroB7-KSENSpqIXUjUHzfGPjg,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=
|
36
|
+
txt2ebook/txt2ebook.py,sha256=abYTP_62aqHhfetXW8oOIypUaQCLFI7nmZwHdcm7P24,13693
|
37
37
|
txt2ebook/zh_utils.py,sha256=EgKVbwqYGaTGswQUGcOCeSfRelzwkAb9WWY9TrsX1x4,4882
|
38
|
-
txt2ebook-0.1.
|
39
|
-
txt2ebook-0.1.
|
40
|
-
txt2ebook-0.1.
|
41
|
-
txt2ebook-0.1.
|
42
|
-
txt2ebook-0.1.
|
38
|
+
txt2ebook-0.1.103.dist-info/LICENSE.md,sha256=tGtFDwxWTjuR9syrJoSv1Hiffd2u8Tu8cYClfrXS_YU,31956
|
39
|
+
txt2ebook-0.1.103.dist-info/METADATA,sha256=t_3cEy7QHSEQN7zAVsklCfa74HkIRXWx2GSYy6I2xTQ,7656
|
40
|
+
txt2ebook-0.1.103.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
41
|
+
txt2ebook-0.1.103.dist-info/entry_points.txt,sha256=IQHyIIhd0MHjSSRVC1a6tMeIoLus8D06KHL_cumvEbg,83
|
42
|
+
txt2ebook-0.1.103.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|