pysfi 0.1.5__tar.gz → 0.1.7__tar.gz

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 (44) hide show
  1. {pysfi-0.1.5 → pysfi-0.1.7}/PKG-INFO +28 -1
  2. {pysfi-0.1.5 → pysfi-0.1.7}/pyproject.toml +21 -1
  3. {pysfi-0.1.5 → pysfi-0.1.7}/sfi/__init__.py +1 -1
  4. {pysfi-0.1.5 → pysfi-0.1.7}/sfi/bumpversion/__init__.py +1 -1
  5. pysfi-0.1.7/sfi/cli.py +11 -0
  6. pysfi-0.1.7/sfi/docscan/README.md +813 -0
  7. pysfi-0.1.7/sfi/docscan/__init__.py +3 -0
  8. pysfi-0.1.7/sfi/docscan/docscan.py +841 -0
  9. pysfi-0.1.7/sfi/docscan/docscan_gui.py +596 -0
  10. pysfi-0.1.7/sfi/docscan/tests/__init__.py +1 -0
  11. pysfi-0.1.7/sfi/docscan/tests/test_benchmark.py +362 -0
  12. pysfi-0.1.7/sfi/docscan/tests/test_docscan.py +457 -0
  13. pysfi-0.1.7/sfi/docscan/tests/test_enhanced.py +267 -0
  14. {pysfi-0.1.5 → pysfi-0.1.7}/sfi/makepython/makepython.py +30 -14
  15. pysfi-0.1.7/sfi/pdfsplit/__init__.py +0 -0
  16. pysfi-0.1.7/sfi/pdfsplit/pdfsplit.py +173 -0
  17. pysfi-0.1.7/sfi/pdfsplit/tests/__init__.py +0 -0
  18. pysfi-0.1.7/sfi/pdfsplit/tests/test_pdfsplit.py +333 -0
  19. pysfi-0.1.7/sfi/projectparse/__init__.py +0 -0
  20. pysfi-0.1.7/sfi/pyloadergen/__init__.py +0 -0
  21. pysfi-0.1.7/sfi/pyloadergen/tests/__init__.py +0 -0
  22. pysfi-0.1.7/sfi/pypacker/__init__.py +0 -0
  23. pysfi-0.1.7/sfi/taskkill/__init__.py +0 -0
  24. pysfi-0.1.7/sfi/which/__init__.py +0 -0
  25. {pysfi-0.1.5 → pysfi-0.1.7}/.gitignore +0 -0
  26. {pysfi-0.1.5 → pysfi-0.1.7}/README.md +0 -0
  27. {pysfi-0.1.5 → pysfi-0.1.7}/sfi/alarmclock/__init__.py +0 -0
  28. {pysfi-0.1.5 → pysfi-0.1.7}/sfi/alarmclock/alarmclock.py +0 -0
  29. {pysfi-0.1.5 → pysfi-0.1.7}/sfi/bumpversion/README.md +0 -0
  30. {pysfi-0.1.5 → pysfi-0.1.7}/sfi/bumpversion/bumpversion.py +0 -0
  31. {pysfi-0.1.5 → pysfi-0.1.7}/sfi/bumpversion/tests/__init__.py +0 -0
  32. {pysfi-0.1.5 → pysfi-0.1.7}/sfi/bumpversion/tests/test_bumpversion.py +0 -0
  33. {pysfi-0.1.5/sfi/filedate → pysfi-0.1.7/sfi/embedinstall}/__init__.py +0 -0
  34. {pysfi-0.1.5 → pysfi-0.1.7}/sfi/embedinstall/embedinstall.py +0 -0
  35. {pysfi-0.1.5 → pysfi-0.1.7}/sfi/filedate/README.md +0 -0
  36. {pysfi-0.1.5/sfi/makepython → pysfi-0.1.7/sfi/filedate}/__init__.py +0 -0
  37. {pysfi-0.1.5 → pysfi-0.1.7}/sfi/filedate/filedate.py +0 -0
  38. {pysfi-0.1.5/sfi/pyloadergen/tests → pysfi-0.1.7/sfi/makepython}/__init__.py +0 -0
  39. {pysfi-0.1.5 → pysfi-0.1.7}/sfi/projectparse/projectparse.py +0 -0
  40. {pysfi-0.1.5 → pysfi-0.1.7}/sfi/pyloadergen/pyloadergen.py +0 -0
  41. {pysfi-0.1.5 → pysfi-0.1.7}/sfi/pyloadergen/tests/test_pyloadergen.py +0 -0
  42. {pysfi-0.1.5 → pysfi-0.1.7}/sfi/pypacker/fspacker.py +0 -0
  43. {pysfi-0.1.5 → pysfi-0.1.7}/sfi/taskkill/taskkill.py +0 -0
  44. {pysfi-0.1.5 → pysfi-0.1.7}/sfi/which/which.py +0 -0
@@ -1,9 +1,36 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pysfi
3
- Version: 0.1.5
3
+ Version: 0.1.7
4
4
  Summary: Single File commands for Interactive python.
5
5
  Requires-Python: >=3.8
6
6
  Requires-Dist: tomli>=2.4.0; python_version < '3.11'
7
+ Provides-Extra: all
8
+ Requires-Dist: ebooklib>=0.18; extra == 'all'
9
+ Requires-Dist: markdown>=3.5; extra == 'all'
10
+ Requires-Dist: odfpy>=1.4.1; extra == 'all'
11
+ Requires-Dist: openpyxl>=3.1.0; extra == 'all'
12
+ Requires-Dist: pillow>=10.0.0; extra == 'all'
13
+ Requires-Dist: pymupdf>=1.24.11; extra == 'all'
14
+ Requires-Dist: pypdf>=3.0.0; extra == 'all'
15
+ Requires-Dist: pyside2>=5.15.2.1; extra == 'all'
16
+ Requires-Dist: pytesseract>=0.3.10; extra == 'all'
17
+ Requires-Dist: python-docx>=1.1.0; extra == 'all'
18
+ Requires-Dist: python-pptx>=0.6.21; extra == 'all'
19
+ Provides-Extra: extra
20
+ Requires-Dist: ebooklib>=0.18; extra == 'extra'
21
+ Requires-Dist: markdown>=3.5; extra == 'extra'
22
+ Requires-Dist: odfpy>=1.4.1; extra == 'extra'
23
+ Requires-Dist: pypdf>=3.0.0; extra == 'extra'
24
+ Provides-Extra: gui
25
+ Requires-Dist: pyside2>=5.15.2.1; extra == 'gui'
26
+ Provides-Extra: ocr
27
+ Requires-Dist: pillow>=10.0.0; extra == 'ocr'
28
+ Requires-Dist: pytesseract>=0.3.10; extra == 'ocr'
29
+ Provides-Extra: office
30
+ Requires-Dist: openpyxl>=3.1.0; extra == 'office'
31
+ Requires-Dist: pymupdf>=1.24.11; extra == 'office'
32
+ Requires-Dist: python-docx>=1.1.0; extra == 'office'
33
+ Requires-Dist: python-pptx>=0.6.21; extra == 'office'
7
34
  Description-Content-Type: text/markdown
8
35
 
9
36
  # pysfi
@@ -8,20 +8,36 @@ description = "Single File commands for Interactive python."
8
8
  name = "pysfi"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
11
- version = "0.1.5"
11
+ version = "0.1.7"
12
12
 
13
13
  [project.scripts]
14
14
  alarmclk = "sfi.alarmclock.alarmclock:main"
15
15
  bumpversion = "sfi.bumpversion.bumpversion:main"
16
+ docscan = "sfi.docscan.docscan:main"
17
+ docscan-gui = "sfi.docscan.docscan_gui:main"
16
18
  embedinstall = "sfi.embedinstall.embedinstall:main"
17
19
  filedate = "sfi.filedate.filedate:main"
18
20
  mkp = "sfi.makepython.makepython:main"
21
+ pdfsplit = "sfi.pdfsplit.pdfsplit:main"
19
22
  projectparse = "sfi.projectparse.projectparse:main"
20
23
  pyloadergen = "sfi.pyloadergen.pyloadergen:main"
21
24
  pypacker = "sfi.pypacker.pypacker:main"
25
+ sfi = "sfi.cli:main"
22
26
  taskk = "sfi.taskkill.taskkill:main"
23
27
  wch = "sfi.which.which:main"
24
28
 
29
+ [project.optional-dependencies]
30
+ all = ["pysfi[gui,office,ocr,extra]"]
31
+ extra = ["ebooklib>=0.18", "markdown>=3.5", "odfpy>=1.4.1", "pypdf>=3.0.0"]
32
+ gui = ["PySide2>=5.15.2.1"]
33
+ ocr = ["Pillow>=10.0.0", "pytesseract>=0.3.10"]
34
+ office = [
35
+ "openpyxl>=3.1.0",
36
+ "pymupdf>=1.24.11",
37
+ "python-docx>=1.1.0",
38
+ "python-pptx>=0.6.21",
39
+ ]
40
+
25
41
  [tool.hatch.build.targets.wheel]
26
42
  exclude = [
27
43
  "sfi/*/README.md",
@@ -95,9 +111,11 @@ known-first-party = ["sfi"]
95
111
  members = [
96
112
  "sfi/alarmclock",
97
113
  "sfi/bumpversion",
114
+ "sfi/docscan",
98
115
  "sfi/embedinstall",
99
116
  "sfi/filedate",
100
117
  "sfi/makepython",
118
+ "sfi/pdfsplit",
101
119
  "sfi/projectparse",
102
120
  "sfi/pyloadergen",
103
121
  "sfi/pypacker",
@@ -108,7 +126,9 @@ members = [
108
126
  [dependency-groups]
109
127
  dev = [
110
128
  "hatch>=1.14.2",
129
+ "pysfi[all]",
111
130
  "pyside2>=5.15.2.1",
131
+ "pytest-benchmark>=4.0.0",
112
132
  "pytest-cov>=5.0.0",
113
133
  "pytest>=8.3.5",
114
134
  "qdarkstyle>=3.2.3",
@@ -1,3 +1,3 @@
1
1
  """Single File commands for Interactive python."""
2
2
 
3
- __version__ = "0.1.5"
3
+ __version__ = "0.1.7"
@@ -1,3 +1,3 @@
1
1
  """Bumpversion - Automated version number management tool."""
2
2
 
3
- __version__ = "0.1.5"
3
+ __version__ = "0.1.7"
pysfi-0.1.7/sfi/cli.py ADDED
@@ -0,0 +1,11 @@
1
+ import argparse
2
+
3
+ from sfi import __version__ as VERSION # noqa: N812
4
+
5
+
6
+ def main():
7
+ parser = argparse.ArgumentParser()
8
+ parser.add_argument(
9
+ "-v", "--version", action="version", version=f"%(prog)s v{VERSION}", help="Print version and exit"
10
+ )
11
+ parser.parse_args()