tepub 0.2.0__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.
Files changed (95) hide show
  1. audiobook/__init__.py +1 -0
  2. audiobook/assembly.py +750 -0
  3. audiobook/chapters.py +340 -0
  4. audiobook/controller.py +633 -0
  5. audiobook/cover.py +54 -0
  6. audiobook/language.py +26 -0
  7. audiobook/models.py +45 -0
  8. audiobook/mp4chapters.py +140 -0
  9. audiobook/preprocess.py +284 -0
  10. audiobook/renderer.py +64 -0
  11. audiobook/state.py +192 -0
  12. audiobook/tts.py +148 -0
  13. audiobook/voices.py +134 -0
  14. cli/__init__.py +5 -0
  15. cli/commands/__init__.py +24 -0
  16. cli/commands/audiobook.py +488 -0
  17. cli/commands/config.py +473 -0
  18. cli/commands/export.py +124 -0
  19. cli/commands/extract.py +104 -0
  20. cli/commands/format.py +37 -0
  21. cli/commands/pipeline.py +91 -0
  22. cli/commands/resume.py +26 -0
  23. cli/commands/translate.py +57 -0
  24. cli/core.py +172 -0
  25. cli/debug/__init__.py +40 -0
  26. cli/debug/commands.py +166 -0
  27. cli/errors.py +43 -0
  28. cli/main.py +78 -0
  29. config/__init__.py +31 -0
  30. config/loader.py +150 -0
  31. config/models.py +208 -0
  32. config/templates.py +310 -0
  33. config/workspace.py +135 -0
  34. debug_tools/__init__.py +0 -0
  35. debug_tools/analysis.py +127 -0
  36. debug_tools/common.py +25 -0
  37. debug_tools/extraction_summary.py +145 -0
  38. debug_tools/files.py +22 -0
  39. debug_tools/inspect.py +34 -0
  40. debug_tools/pending.py +35 -0
  41. debug_tools/preview.py +22 -0
  42. debug_tools/skip_lists.py +51 -0
  43. epub_io/__init__.py +0 -0
  44. epub_io/path_utils.py +69 -0
  45. epub_io/reader.py +66 -0
  46. epub_io/resources.py +97 -0
  47. epub_io/selector.py +208 -0
  48. epub_io/toc_utils.py +48 -0
  49. epub_io/writer.py +89 -0
  50. extraction/__init__.py +0 -0
  51. extraction/cleaners.py +40 -0
  52. extraction/epub_export.py +125 -0
  53. extraction/image_export.py +135 -0
  54. extraction/markdown_export.py +387 -0
  55. extraction/pipeline.py +126 -0
  56. extraction/segments.py +239 -0
  57. injection/__init__.py +0 -0
  58. injection/engine.py +233 -0
  59. injection/html_ops.py +67 -0
  60. logging_utils/__init__.py +0 -0
  61. logging_utils/logger.py +29 -0
  62. state/__init__.py +0 -0
  63. state/base.py +175 -0
  64. state/models.py +99 -0
  65. state/resume.py +35 -0
  66. state/store.py +184 -0
  67. tepub-0.2.0.dist-info/LICENSE +21 -0
  68. tepub-0.2.0.dist-info/METADATA +541 -0
  69. tepub-0.2.0.dist-info/RECORD +95 -0
  70. tepub-0.2.0.dist-info/WHEEL +5 -0
  71. tepub-0.2.0.dist-info/entry_points.txt +2 -0
  72. tepub-0.2.0.dist-info/top_level.txt +12 -0
  73. translation/__init__.py +0 -0
  74. translation/controller.py +461 -0
  75. translation/languages.py +47 -0
  76. translation/polish.py +95 -0
  77. translation/prefilter.py +40 -0
  78. translation/prompt_builder.py +74 -0
  79. translation/providers/__init__.py +35 -0
  80. translation/providers/anthropic.py +53 -0
  81. translation/providers/base.py +39 -0
  82. translation/providers/deepl.py +90 -0
  83. translation/providers/gemini.py +63 -0
  84. translation/providers/grok.py +77 -0
  85. translation/providers/ollama.py +39 -0
  86. translation/providers/openai.py +77 -0
  87. translation/refusal_filter.py +50 -0
  88. web_templates/__init__.py +1 -0
  89. web_templates/assets/css/app.css +167 -0
  90. web_templates/assets/js/app.js +154 -0
  91. web_templates/index.html +34 -0
  92. webbuilder/__init__.py +7 -0
  93. webbuilder/assets.py +51 -0
  94. webbuilder/dom.py +144 -0
  95. webbuilder/exporter.py +160 -0
audiobook/__init__.py ADDED
@@ -0,0 +1 @@
1
+ from .controller import run_audiobook