txt2ebook 0.1.114__py3-none-any.whl → 0.1.115__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
@@ -24,7 +24,7 @@ import langdetect
24
24
 
25
25
  logger = logging.getLogger(__name__)
26
26
 
27
- __version__ = "0.1.114"
27
+ __version__ = "0.1.115"
28
28
 
29
29
 
30
30
  def setup_logger(config: argparse.Namespace) -> None:
@@ -64,10 +64,9 @@ def build_subparser(subparsers) -> None:
64
64
  )
65
65
 
66
66
  gmi_parser.add_argument(
67
- "-toc",
68
- "--table-of-content",
67
+ "--toc",
69
68
  default=False,
70
- action="store_true",
69
+ action=argparse.BooleanOptionalAction,
71
70
  dest="with_toc",
72
71
  help="add table of content",
73
72
  )
@@ -64,10 +64,9 @@ def build_subparser(subparsers) -> None:
64
64
  )
65
65
 
66
66
  md_parser.add_argument(
67
- "-toc",
68
- "--table-of-content",
67
+ "--toc",
69
68
  default=False,
70
- action="store_true",
69
+ action=argparse.BooleanOptionalAction,
71
70
  dest="with_toc",
72
71
  help="add table of content",
73
72
  )
@@ -64,7 +64,7 @@ def build_subparser(subparsers) -> None:
64
64
 
65
65
 
66
66
  def run(args: argparse.Namespace) -> None:
67
- """Run md subcommand.
67
+ """Run pdf subcommand.
68
68
 
69
69
  Args:
70
70
  config (argparse.Namespace): Config from command line arguments
@@ -63,10 +63,9 @@ def build_subparser(subparsers) -> None:
63
63
  )
64
64
 
65
65
  typ_parser.add_argument(
66
- "-toc",
67
- "--table-of-content",
66
+ "--toc",
68
67
  default=False,
69
- action="store_true",
68
+ action=argparse.BooleanOptionalAction,
70
69
  dest="with_toc",
71
70
  help="add table of content",
72
71
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: txt2ebook
3
- Version: 0.1.114
3
+ Version: 0.1.115
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
@@ -20,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.10
20
20
  Classifier: Programming Language :: Python :: 3.11
21
21
  Classifier: Programming Language :: Python :: 3.12
22
22
  Classifier: Programming Language :: Python :: 3 :: Only
23
+ Classifier: Programming Language :: Python :: 3.13
23
24
  Classifier: Topic :: Text Processing
24
25
  Classifier: Topic :: Text Processing :: Filters
25
26
  Classifier: Topic :: Text Processing :: General
@@ -1,4 +1,4 @@
1
- txt2ebook/__init__.py,sha256=oOYsrTNvJqaCLR6K9pfOTy12ZuXFXMtFB6QLyAdaMkI,2681
1
+ txt2ebook/__init__.py,sha256=FsN90HGie24zyTzy5CmyJ-3J3o0_lAPeHA6Muf2T4GM,2681
2
2
  txt2ebook/__main__.py,sha256=gMLvgpqc_BL4cBqNe0vqErRF5dlJPAbvqu1zndcAHYI,850
3
3
  txt2ebook/cli.py,sha256=qdQQ9r134Lbs58NwzJ1wKDF1EO6blWLBzqjqA_tpZIc,8635
4
4
  txt2ebook/exceptions.py,sha256=b2HDsXdqweLJbvSJEGt48nxvGkZq20SfYezSjwp77JU,842
@@ -35,18 +35,18 @@ txt2ebook/models/volume.py,sha256=HyT4XO9yZ8d0PgZVfMMyAYUDFv58RrUmsSFNNmU-sHY,15
35
35
  txt2ebook/parser.py,sha256=2Dk1n51Czb3Tn_a1tgSSx5A-XNETVyuX4gJ9nQ-fPlQ,8707
36
36
  txt2ebook/subcommands/env.py,sha256=26wcAhEbjKfWYeNiIsjm9TTaBUyNDYx1MYUtV2ZFkmg,1481
37
37
  txt2ebook/subcommands/epub.py,sha256=evZgvi1cHe3uCHgAwteJ2FlXFk3YOUekYNghVk7ySgE,2578
38
- txt2ebook/subcommands/gmi.py,sha256=k-pDtP2OevgMACy6VeUSfiKLV0E4FyPA9t4wGLjJXu8,2405
38
+ txt2ebook/subcommands/gmi.py,sha256=Y-ao6LUtn7FGKZcay7esrVHTZl0PoZBgJdaWtOktPMg,2394
39
39
  txt2ebook/subcommands/massage.py,sha256=wsSFVdheYgCn9NsISsgHVyoRj0D73GfP3NIrTYI13iA,7024
40
- txt2ebook/subcommands/md.py,sha256=v-xSWEpe6p9hIDRh-Nk1uH43P9gOvy80g-qt11dG-aw,2418
40
+ txt2ebook/subcommands/md.py,sha256=IMEqmbISis0FDz2rPzUDU3zuiSUW-9928UrkNZyvyTk,2407
41
41
  txt2ebook/subcommands/parse.py,sha256=BpEHs-gFYbJK1-50FPUX_3INfuxkgL5Glgpd3IBdJfs,2730
42
- txt2ebook/subcommands/pdf.py,sha256=cnmjavFg6aXSYWzXpQEH4QfiwkppzsbAsLdO3DNvcRo,2179
42
+ txt2ebook/subcommands/pdf.py,sha256=V2dwrzdqHMKvM8zcPNdGa4F5zehzru9utOUGgAXisEU,2180
43
43
  txt2ebook/subcommands/tex.py,sha256=O2Sl-v8tTU_bMFDDukFYEyXBTecGzp3Ll8Gqom63Clk,2330
44
- txt2ebook/subcommands/typ.py,sha256=bS6AVcZk4mxcHnvlaCPWaIIUWVRmOsCXNHecWDH4nJg,2373
44
+ txt2ebook/subcommands/typ.py,sha256=JCmkSgfQ9NHNDe_5JSbcQXoaPzVaeKuZR4qTHeNXrOo,2362
45
45
  txt2ebook/tokenizer.py,sha256=zdZwiDreL1QVHdWm4YGPqG8-HzcjPI6wS9vggBlNEkg,9356
46
46
  txt2ebook/txt2ebook.py,sha256=ZP-5RxZcKasoowjuJjUR1yEBzHqekOBPruGvyj47sKg,13539
47
47
  txt2ebook/zh_utils.py,sha256=EgKVbwqYGaTGswQUGcOCeSfRelzwkAb9WWY9TrsX1x4,4882
48
- txt2ebook-0.1.114.dist-info/LICENSE.md,sha256=tGtFDwxWTjuR9syrJoSv1Hiffd2u8Tu8cYClfrXS_YU,31956
49
- txt2ebook-0.1.114.dist-info/METADATA,sha256=6CM7gs_KSb6hRpSj9EnK4w1tdYloa050zZnS_If9ycI,7794
50
- txt2ebook-0.1.114.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
51
- txt2ebook-0.1.114.dist-info/entry_points.txt,sha256=JLW3Iv7eUyABlQeUFiUWQhLKfRdnB9o5SIcNlneGR0Q,77
52
- txt2ebook-0.1.114.dist-info/RECORD,,
48
+ txt2ebook-0.1.115.dist-info/LICENSE.md,sha256=tGtFDwxWTjuR9syrJoSv1Hiffd2u8Tu8cYClfrXS_YU,31956
49
+ txt2ebook-0.1.115.dist-info/METADATA,sha256=eYPXj0bm351I-_jwarYrob0GydK0sEEJbCDEDk6eK9U,7845
50
+ txt2ebook-0.1.115.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
51
+ txt2ebook-0.1.115.dist-info/entry_points.txt,sha256=JLW3Iv7eUyABlQeUFiUWQhLKfRdnB9o5SIcNlneGR0Q,77
52
+ txt2ebook-0.1.115.dist-info/RECORD,,