pdf-table-pull-lite 1.1.0__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.
- pdf_table_pull_lite-1.1.0/CHANGELOG.md +15 -0
- pdf_table_pull_lite-1.1.0/LICENSE +9 -0
- pdf_table_pull_lite-1.1.0/MANIFEST.in +4 -0
- pdf_table_pull_lite-1.1.0/PKG-INFO +165 -0
- pdf_table_pull_lite-1.1.0/README.md +133 -0
- pdf_table_pull_lite-1.1.0/llms.txt +18 -0
- pdf_table_pull_lite-1.1.0/pdf_table_pull_lite.egg-info/PKG-INFO +165 -0
- pdf_table_pull_lite-1.1.0/pdf_table_pull_lite.egg-info/SOURCES.txt +21 -0
- pdf_table_pull_lite-1.1.0/pdf_table_pull_lite.egg-info/dependency_links.txt +1 -0
- pdf_table_pull_lite-1.1.0/pdf_table_pull_lite.egg-info/entry_points.txt +3 -0
- pdf_table_pull_lite-1.1.0/pdf_table_pull_lite.egg-info/requires.txt +2 -0
- pdf_table_pull_lite-1.1.0/pdf_table_pull_lite.egg-info/top_level.txt +2 -0
- pdf_table_pull_lite-1.1.0/pdf_table_pull_lite.py +131 -0
- pdf_table_pull_lite-1.1.0/pdf_table_pull_lite_mcp.py +43 -0
- pdf_table_pull_lite-1.1.0/pyproject.toml +47 -0
- pdf_table_pull_lite-1.1.0/server.json +24 -0
- pdf_table_pull_lite-1.1.0/setup.cfg +4 -0
- pdf_table_pull_lite-1.1.0/tests/fixtures/empty.pdf +68 -0
- pdf_table_pull_lite-1.1.0/tests/fixtures/plain.pdf +68 -0
- pdf_table_pull_lite-1.1.0/tests/fixtures/ruled.pdf +112 -0
- pdf_table_pull_lite-1.1.0/tests/fixtures/scanned.pdf +79 -0
- pdf_table_pull_lite-1.1.0/tests/test_lite.py +51 -0
- pdf_table_pull_lite-1.1.0/tests/test_mcp.py +35 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
What changed in pdf-table-pull-lite, newest first.
|
|
4
|
+
|
|
5
|
+
## 1.1.0 - 2026-11-04
|
|
6
|
+
|
|
7
|
+
- New: a free MCP server, `pdf-table-pull-lite-mcp`. It gives AI apps one tool, `extract_pdf_tables`.
|
|
8
|
+
- New: `llms.txt` with short notes for AI agents.
|
|
9
|
+
- You can install it from PyPI with `pip install pdf-table-pull-lite`.
|
|
10
|
+
|
|
11
|
+
## 1.0.0 - 2026-11-04
|
|
12
|
+
|
|
13
|
+
- First release.
|
|
14
|
+
- Pulls the tables out of a text PDF and saves each one as a CSV file.
|
|
15
|
+
- Picks border or spacing mode for you, and tells you which pages are scans.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 tidybyte
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pdf-table-pull-lite
|
|
3
|
+
Version: 1.1.0
|
|
4
|
+
Summary: Pull the tables out of a text PDF into CSV files. Runs locally. CLI and MCP server.
|
|
5
|
+
Author: Tidy Byte Tools
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://tidybyte.gumroad.com/l/hkxqxh
|
|
8
|
+
Project-URL: Source, https://github.com/tidybytetools/pdf-table-pull-lite
|
|
9
|
+
Project-URL: Issues, https://github.com/tidybytetools/pdf-table-pull-lite/issues
|
|
10
|
+
Project-URL: Changelog, https://github.com/tidybytetools/pdf-table-pull-lite/blob/main/CHANGELOG.md
|
|
11
|
+
Keywords: pdf,table,csv,extract,pdf-to-csv,pdfplumber,cli,mcp,mcp-server
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Topic :: Office/Business
|
|
24
|
+
Classifier: Topic :: Text Processing
|
|
25
|
+
Classifier: Topic :: Utilities
|
|
26
|
+
Requires-Python: >=3.10
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
License-File: LICENSE
|
|
29
|
+
Requires-Dist: pdfplumber>=0.10
|
|
30
|
+
Requires-Dist: mcp<2,>=1.2
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
|
|
33
|
+
# pdf-table-pull-lite
|
|
34
|
+
|
|
35
|
+
[](https://github.com/tidybytetools/pdf-table-pull-lite/blob/main/LICENSE)
|
|
36
|
+
[](https://www.python.org/)
|
|
37
|
+
[](#use-it-from-claude-desktop-or-cursor-mcp)
|
|
38
|
+
|
|
39
|
+
Free tool that pulls the tables out of a text PDF and saves each one as a CSV file.
|
|
40
|
+
Need Excel output, scanned PDFs or tables joined across pages? The paid version does that: **[pdf-table-pull on Gumroad](https://tidybyte.gumroad.com/l/hkxqxh)**
|
|
41
|
+
|
|
42
|
+
Runs on your own computer, so your PDFs are never uploaded anywhere. MIT license. Python 3.10 or newer, on Windows, Mac and Linux.
|
|
43
|
+
|
|
44
|
+
<!-- mcp-name: io.github.tidybytetools/pdf-table-pull-lite -->
|
|
45
|
+
|
|
46
|
+
## Install
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
pip install pdf-table-pull-lite
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Or use pipx, which keeps it in its own space:
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
pipx install pdf-table-pull-lite
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Want the newest code from GitHub instead?
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
pip install git+https://github.com/tidybytetools/pdf-table-pull-lite
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Use it
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
pdf-table-pull-lite statement.pdf # CSVs go in statement_tables/
|
|
68
|
+
pdf-table-pull-lite statement.pdf -o out/ -p 2-5 # only pages 2 to 5
|
|
69
|
+
pdf-table-pull-lite statement.pdf -s text # tables with no border lines
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Example run:
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
Found 2 table(s).
|
|
76
|
+
page1_table1: 2 rows x 3 columns
|
|
77
|
+
page1_table2: 2 rows x 2 columns
|
|
78
|
+
Saved: statement_tables/page1_table1.csv
|
|
79
|
+
Saved: statement_tables/page1_table2.csv
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
You get one CSV per table, named after its page. The CSVs open straight in Excel (they're saved as UTF-8 with a BOM so accents show correctly).
|
|
83
|
+
|
|
84
|
+
`--strategy` (`-s`): `lines` is for tables with ruled borders, `text` is for tables lined up by spacing, and `auto` (the default) tries lines first, then text.
|
|
85
|
+
|
|
86
|
+
When you run it in a terminal it ends with one short line about the paid version. `--quiet` turns it off, and it never shows when output is piped or redirected.
|
|
87
|
+
|
|
88
|
+
## Known limits
|
|
89
|
+
|
|
90
|
+
- **Scanned PDFs.** Pages that are just an image (no text layer) are skipped, and the tool tells you which ones.
|
|
91
|
+
- **Tables that continue onto the next page** come out as separate CSVs, one per page.
|
|
92
|
+
- **Odd layouts.** Tables with merged cells or no clear columns can come out with cells in the wrong spot. Check the CSV.
|
|
93
|
+
- **CSV only.** No Excel or JSON output, no number cleanup (so `(40)` stays as text), and no password-protected PDFs.
|
|
94
|
+
|
|
95
|
+
## Lite vs paid
|
|
96
|
+
|
|
97
|
+
| | lite (free) | [pdf-table-pull](https://tidybyte.gumroad.com/l/hkxqxh) |
|
|
98
|
+
|---|---|---|
|
|
99
|
+
| Text PDFs, ruled or spaced tables | yes | yes |
|
|
100
|
+
| CSV output | yes | yes |
|
|
101
|
+
| Excel (one sheet per table) and JSON output | no | yes |
|
|
102
|
+
| Scanned PDFs (OCR) | no | yes |
|
|
103
|
+
| Join tables across pages | no | yes |
|
|
104
|
+
| Numbers cleaned (`1,200` → 1200, `(40)` → -40) | no | yes |
|
|
105
|
+
| Password-protected PDFs | no | yes |
|
|
106
|
+
|
|
107
|
+
## How it compares to other free tools
|
|
108
|
+
|
|
109
|
+
All of these are free and open source. Pick what fits you.
|
|
110
|
+
|
|
111
|
+
| | pdf-table-pull-lite | [pdfplumber](https://github.com/jsvine/pdfplumber) | [Camelot](https://github.com/camelot-dev/camelot) | [tabula-py](https://github.com/chezou/tabula-py) |
|
|
112
|
+
|---|---|---|---|---|
|
|
113
|
+
| What it is | Command line tool | Python library | Python library + CLI | Python wrapper for Tabula |
|
|
114
|
+
| Needs Java | no | no | no | yes |
|
|
115
|
+
| One command to get CSVs | yes | no, you write code | yes | yes |
|
|
116
|
+
| Picks border or spacing mode for you | yes (`auto`) | no | no | yes (guess) |
|
|
117
|
+
| Tells you which pages are scans | yes | no | no | no |
|
|
118
|
+
| Built-in MCP server for AI apps | yes | no | no | no |
|
|
119
|
+
| Lots of tuning knobs | no | yes | yes | some |
|
|
120
|
+
|
|
121
|
+
This tool is built on pdfplumber. If you want full control in your own code, use pdfplumber or Camelot directly.
|
|
122
|
+
|
|
123
|
+
## Use it from Claude Desktop or Cursor (MCP)
|
|
124
|
+
|
|
125
|
+
There is a small free MCP server built in. It gives your AI app one tool, `extract_pdf_tables`. It needs [uv](https://docs.astral.sh/uv/).
|
|
126
|
+
|
|
127
|
+
Run it by hand to check it starts (it waits quietly for an app to talk to it):
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
uvx --from pdf-table-pull-lite pdf-table-pull-lite-mcp
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Claude Desktop (`claude_desktop_config.json`) or Cursor (`~/.cursor/mcp.json`):
|
|
134
|
+
|
|
135
|
+
```json
|
|
136
|
+
{
|
|
137
|
+
"mcpServers": {
|
|
138
|
+
"pdf-table-pull-lite": {
|
|
139
|
+
"command": "uvx",
|
|
140
|
+
"args": ["--from", "pdf-table-pull-lite", "pdf-table-pull-lite-mcp"]
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Tool: `extract_pdf_tables(path, pages="", strategy="auto", output_dir="")`. It returns a list with the CSV text of each table. If you set `output_dir`, it saves the CSVs there and returns the file paths instead.
|
|
147
|
+
|
|
148
|
+
## For AI agents
|
|
149
|
+
|
|
150
|
+
- **Use when:** you have a local PDF with real text (you can select the words) and need its tables as rows.
|
|
151
|
+
- **Don't use when:** the PDF is a scan or photo, it has a password, or you need Excel. Those pages get skipped. Use the paid version for those.
|
|
152
|
+
- **Input:** a file path, plus optional `pages` like `1,3-5` and `strategy` (`auto`, `lines`, `text`).
|
|
153
|
+
- **Output:** a list of CSV strings, one per table, first row is the header. Empty list means no tables were found.
|
|
154
|
+
- CLI exit code is 0 on success and 1 on error (message on stderr). See also [`llms.txt`](https://github.com/tidybytetools/pdf-table-pull-lite/blob/main/llms.txt).
|
|
155
|
+
|
|
156
|
+
## Tests
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
pip install pdfplumber "mcp<2"
|
|
160
|
+
python3 -m unittest discover tests
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## License
|
|
164
|
+
|
|
165
|
+
MIT. See `LICENSE`.
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# pdf-table-pull-lite
|
|
2
|
+
|
|
3
|
+
[](https://github.com/tidybytetools/pdf-table-pull-lite/blob/main/LICENSE)
|
|
4
|
+
[](https://www.python.org/)
|
|
5
|
+
[](#use-it-from-claude-desktop-or-cursor-mcp)
|
|
6
|
+
|
|
7
|
+
Free tool that pulls the tables out of a text PDF and saves each one as a CSV file.
|
|
8
|
+
Need Excel output, scanned PDFs or tables joined across pages? The paid version does that: **[pdf-table-pull on Gumroad](https://tidybyte.gumroad.com/l/hkxqxh)**
|
|
9
|
+
|
|
10
|
+
Runs on your own computer, so your PDFs are never uploaded anywhere. MIT license. Python 3.10 or newer, on Windows, Mac and Linux.
|
|
11
|
+
|
|
12
|
+
<!-- mcp-name: io.github.tidybytetools/pdf-table-pull-lite -->
|
|
13
|
+
|
|
14
|
+
## Install
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
pip install pdf-table-pull-lite
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Or use pipx, which keeps it in its own space:
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
pipx install pdf-table-pull-lite
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Want the newest code from GitHub instead?
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
pip install git+https://github.com/tidybytetools/pdf-table-pull-lite
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Use it
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
pdf-table-pull-lite statement.pdf # CSVs go in statement_tables/
|
|
36
|
+
pdf-table-pull-lite statement.pdf -o out/ -p 2-5 # only pages 2 to 5
|
|
37
|
+
pdf-table-pull-lite statement.pdf -s text # tables with no border lines
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Example run:
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
Found 2 table(s).
|
|
44
|
+
page1_table1: 2 rows x 3 columns
|
|
45
|
+
page1_table2: 2 rows x 2 columns
|
|
46
|
+
Saved: statement_tables/page1_table1.csv
|
|
47
|
+
Saved: statement_tables/page1_table2.csv
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
You get one CSV per table, named after its page. The CSVs open straight in Excel (they're saved as UTF-8 with a BOM so accents show correctly).
|
|
51
|
+
|
|
52
|
+
`--strategy` (`-s`): `lines` is for tables with ruled borders, `text` is for tables lined up by spacing, and `auto` (the default) tries lines first, then text.
|
|
53
|
+
|
|
54
|
+
When you run it in a terminal it ends with one short line about the paid version. `--quiet` turns it off, and it never shows when output is piped or redirected.
|
|
55
|
+
|
|
56
|
+
## Known limits
|
|
57
|
+
|
|
58
|
+
- **Scanned PDFs.** Pages that are just an image (no text layer) are skipped, and the tool tells you which ones.
|
|
59
|
+
- **Tables that continue onto the next page** come out as separate CSVs, one per page.
|
|
60
|
+
- **Odd layouts.** Tables with merged cells or no clear columns can come out with cells in the wrong spot. Check the CSV.
|
|
61
|
+
- **CSV only.** No Excel or JSON output, no number cleanup (so `(40)` stays as text), and no password-protected PDFs.
|
|
62
|
+
|
|
63
|
+
## Lite vs paid
|
|
64
|
+
|
|
65
|
+
| | lite (free) | [pdf-table-pull](https://tidybyte.gumroad.com/l/hkxqxh) |
|
|
66
|
+
|---|---|---|
|
|
67
|
+
| Text PDFs, ruled or spaced tables | yes | yes |
|
|
68
|
+
| CSV output | yes | yes |
|
|
69
|
+
| Excel (one sheet per table) and JSON output | no | yes |
|
|
70
|
+
| Scanned PDFs (OCR) | no | yes |
|
|
71
|
+
| Join tables across pages | no | yes |
|
|
72
|
+
| Numbers cleaned (`1,200` → 1200, `(40)` → -40) | no | yes |
|
|
73
|
+
| Password-protected PDFs | no | yes |
|
|
74
|
+
|
|
75
|
+
## How it compares to other free tools
|
|
76
|
+
|
|
77
|
+
All of these are free and open source. Pick what fits you.
|
|
78
|
+
|
|
79
|
+
| | pdf-table-pull-lite | [pdfplumber](https://github.com/jsvine/pdfplumber) | [Camelot](https://github.com/camelot-dev/camelot) | [tabula-py](https://github.com/chezou/tabula-py) |
|
|
80
|
+
|---|---|---|---|---|
|
|
81
|
+
| What it is | Command line tool | Python library | Python library + CLI | Python wrapper for Tabula |
|
|
82
|
+
| Needs Java | no | no | no | yes |
|
|
83
|
+
| One command to get CSVs | yes | no, you write code | yes | yes |
|
|
84
|
+
| Picks border or spacing mode for you | yes (`auto`) | no | no | yes (guess) |
|
|
85
|
+
| Tells you which pages are scans | yes | no | no | no |
|
|
86
|
+
| Built-in MCP server for AI apps | yes | no | no | no |
|
|
87
|
+
| Lots of tuning knobs | no | yes | yes | some |
|
|
88
|
+
|
|
89
|
+
This tool is built on pdfplumber. If you want full control in your own code, use pdfplumber or Camelot directly.
|
|
90
|
+
|
|
91
|
+
## Use it from Claude Desktop or Cursor (MCP)
|
|
92
|
+
|
|
93
|
+
There is a small free MCP server built in. It gives your AI app one tool, `extract_pdf_tables`. It needs [uv](https://docs.astral.sh/uv/).
|
|
94
|
+
|
|
95
|
+
Run it by hand to check it starts (it waits quietly for an app to talk to it):
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
uvx --from pdf-table-pull-lite pdf-table-pull-lite-mcp
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Claude Desktop (`claude_desktop_config.json`) or Cursor (`~/.cursor/mcp.json`):
|
|
102
|
+
|
|
103
|
+
```json
|
|
104
|
+
{
|
|
105
|
+
"mcpServers": {
|
|
106
|
+
"pdf-table-pull-lite": {
|
|
107
|
+
"command": "uvx",
|
|
108
|
+
"args": ["--from", "pdf-table-pull-lite", "pdf-table-pull-lite-mcp"]
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Tool: `extract_pdf_tables(path, pages="", strategy="auto", output_dir="")`. It returns a list with the CSV text of each table. If you set `output_dir`, it saves the CSVs there and returns the file paths instead.
|
|
115
|
+
|
|
116
|
+
## For AI agents
|
|
117
|
+
|
|
118
|
+
- **Use when:** you have a local PDF with real text (you can select the words) and need its tables as rows.
|
|
119
|
+
- **Don't use when:** the PDF is a scan or photo, it has a password, or you need Excel. Those pages get skipped. Use the paid version for those.
|
|
120
|
+
- **Input:** a file path, plus optional `pages` like `1,3-5` and `strategy` (`auto`, `lines`, `text`).
|
|
121
|
+
- **Output:** a list of CSV strings, one per table, first row is the header. Empty list means no tables were found.
|
|
122
|
+
- CLI exit code is 0 on success and 1 on error (message on stderr). See also [`llms.txt`](https://github.com/tidybytetools/pdf-table-pull-lite/blob/main/llms.txt).
|
|
123
|
+
|
|
124
|
+
## Tests
|
|
125
|
+
|
|
126
|
+
```
|
|
127
|
+
pip install pdfplumber "mcp<2"
|
|
128
|
+
python3 -m unittest discover tests
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## License
|
|
132
|
+
|
|
133
|
+
MIT. See `LICENSE`.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# pdf-table-pull-lite
|
|
2
|
+
|
|
3
|
+
> Free, MIT-licensed tool that pulls tables out of local text PDFs and returns them as CSV. Runs offline. Has a CLI, a Python API and a stdio MCP server.
|
|
4
|
+
|
|
5
|
+
- Install: `pip install pdf-table-pull-lite` (or from GitHub: `pip install git+https://github.com/tidybytetools/pdf-table-pull-lite`)
|
|
6
|
+
- CLI: `pdf-table-pull-lite file.pdf -o out/ -p 1-3 -s auto` writes one CSV per table (page<N>_table<K>.csv). Exit 0 ok, 1 error.
|
|
7
|
+
- Python: `from pdf_table_pull_lite import extract; tables, scanned_pages = extract("file.pdf")` where each table is {"page", "index", "rows"}.
|
|
8
|
+
- MCP: `uvx --from pdf-table-pull-lite pdf-table-pull-lite-mcp` exposes `extract_pdf_tables(path, pages="", strategy="auto", output_dir="") -> list[str]` (CSV text, or file paths if output_dir is set).
|
|
9
|
+
|
|
10
|
+
## Use when
|
|
11
|
+
- The PDF has a text layer and you need its tables as rows.
|
|
12
|
+
|
|
13
|
+
## Don't use when
|
|
14
|
+
- The PDF is scanned or image-only (pages are skipped), password-protected, or you need Excel/JSON or tables joined across pages. The paid version does those: https://tidybyte.gumroad.com/l/hkxqxh
|
|
15
|
+
|
|
16
|
+
## Links
|
|
17
|
+
- [README](https://github.com/tidybytetools/pdf-table-pull-lite/blob/main/README.md)
|
|
18
|
+
- [Paid version](https://tidybyte.gumroad.com/l/hkxqxh)
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pdf-table-pull-lite
|
|
3
|
+
Version: 1.1.0
|
|
4
|
+
Summary: Pull the tables out of a text PDF into CSV files. Runs locally. CLI and MCP server.
|
|
5
|
+
Author: Tidy Byte Tools
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://tidybyte.gumroad.com/l/hkxqxh
|
|
8
|
+
Project-URL: Source, https://github.com/tidybytetools/pdf-table-pull-lite
|
|
9
|
+
Project-URL: Issues, https://github.com/tidybytetools/pdf-table-pull-lite/issues
|
|
10
|
+
Project-URL: Changelog, https://github.com/tidybytetools/pdf-table-pull-lite/blob/main/CHANGELOG.md
|
|
11
|
+
Keywords: pdf,table,csv,extract,pdf-to-csv,pdfplumber,cli,mcp,mcp-server
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Topic :: Office/Business
|
|
24
|
+
Classifier: Topic :: Text Processing
|
|
25
|
+
Classifier: Topic :: Utilities
|
|
26
|
+
Requires-Python: >=3.10
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
License-File: LICENSE
|
|
29
|
+
Requires-Dist: pdfplumber>=0.10
|
|
30
|
+
Requires-Dist: mcp<2,>=1.2
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
|
|
33
|
+
# pdf-table-pull-lite
|
|
34
|
+
|
|
35
|
+
[](https://github.com/tidybytetools/pdf-table-pull-lite/blob/main/LICENSE)
|
|
36
|
+
[](https://www.python.org/)
|
|
37
|
+
[](#use-it-from-claude-desktop-or-cursor-mcp)
|
|
38
|
+
|
|
39
|
+
Free tool that pulls the tables out of a text PDF and saves each one as a CSV file.
|
|
40
|
+
Need Excel output, scanned PDFs or tables joined across pages? The paid version does that: **[pdf-table-pull on Gumroad](https://tidybyte.gumroad.com/l/hkxqxh)**
|
|
41
|
+
|
|
42
|
+
Runs on your own computer, so your PDFs are never uploaded anywhere. MIT license. Python 3.10 or newer, on Windows, Mac and Linux.
|
|
43
|
+
|
|
44
|
+
<!-- mcp-name: io.github.tidybytetools/pdf-table-pull-lite -->
|
|
45
|
+
|
|
46
|
+
## Install
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
pip install pdf-table-pull-lite
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Or use pipx, which keeps it in its own space:
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
pipx install pdf-table-pull-lite
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Want the newest code from GitHub instead?
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
pip install git+https://github.com/tidybytetools/pdf-table-pull-lite
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Use it
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
pdf-table-pull-lite statement.pdf # CSVs go in statement_tables/
|
|
68
|
+
pdf-table-pull-lite statement.pdf -o out/ -p 2-5 # only pages 2 to 5
|
|
69
|
+
pdf-table-pull-lite statement.pdf -s text # tables with no border lines
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Example run:
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
Found 2 table(s).
|
|
76
|
+
page1_table1: 2 rows x 3 columns
|
|
77
|
+
page1_table2: 2 rows x 2 columns
|
|
78
|
+
Saved: statement_tables/page1_table1.csv
|
|
79
|
+
Saved: statement_tables/page1_table2.csv
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
You get one CSV per table, named after its page. The CSVs open straight in Excel (they're saved as UTF-8 with a BOM so accents show correctly).
|
|
83
|
+
|
|
84
|
+
`--strategy` (`-s`): `lines` is for tables with ruled borders, `text` is for tables lined up by spacing, and `auto` (the default) tries lines first, then text.
|
|
85
|
+
|
|
86
|
+
When you run it in a terminal it ends with one short line about the paid version. `--quiet` turns it off, and it never shows when output is piped or redirected.
|
|
87
|
+
|
|
88
|
+
## Known limits
|
|
89
|
+
|
|
90
|
+
- **Scanned PDFs.** Pages that are just an image (no text layer) are skipped, and the tool tells you which ones.
|
|
91
|
+
- **Tables that continue onto the next page** come out as separate CSVs, one per page.
|
|
92
|
+
- **Odd layouts.** Tables with merged cells or no clear columns can come out with cells in the wrong spot. Check the CSV.
|
|
93
|
+
- **CSV only.** No Excel or JSON output, no number cleanup (so `(40)` stays as text), and no password-protected PDFs.
|
|
94
|
+
|
|
95
|
+
## Lite vs paid
|
|
96
|
+
|
|
97
|
+
| | lite (free) | [pdf-table-pull](https://tidybyte.gumroad.com/l/hkxqxh) |
|
|
98
|
+
|---|---|---|
|
|
99
|
+
| Text PDFs, ruled or spaced tables | yes | yes |
|
|
100
|
+
| CSV output | yes | yes |
|
|
101
|
+
| Excel (one sheet per table) and JSON output | no | yes |
|
|
102
|
+
| Scanned PDFs (OCR) | no | yes |
|
|
103
|
+
| Join tables across pages | no | yes |
|
|
104
|
+
| Numbers cleaned (`1,200` → 1200, `(40)` → -40) | no | yes |
|
|
105
|
+
| Password-protected PDFs | no | yes |
|
|
106
|
+
|
|
107
|
+
## How it compares to other free tools
|
|
108
|
+
|
|
109
|
+
All of these are free and open source. Pick what fits you.
|
|
110
|
+
|
|
111
|
+
| | pdf-table-pull-lite | [pdfplumber](https://github.com/jsvine/pdfplumber) | [Camelot](https://github.com/camelot-dev/camelot) | [tabula-py](https://github.com/chezou/tabula-py) |
|
|
112
|
+
|---|---|---|---|---|
|
|
113
|
+
| What it is | Command line tool | Python library | Python library + CLI | Python wrapper for Tabula |
|
|
114
|
+
| Needs Java | no | no | no | yes |
|
|
115
|
+
| One command to get CSVs | yes | no, you write code | yes | yes |
|
|
116
|
+
| Picks border or spacing mode for you | yes (`auto`) | no | no | yes (guess) |
|
|
117
|
+
| Tells you which pages are scans | yes | no | no | no |
|
|
118
|
+
| Built-in MCP server for AI apps | yes | no | no | no |
|
|
119
|
+
| Lots of tuning knobs | no | yes | yes | some |
|
|
120
|
+
|
|
121
|
+
This tool is built on pdfplumber. If you want full control in your own code, use pdfplumber or Camelot directly.
|
|
122
|
+
|
|
123
|
+
## Use it from Claude Desktop or Cursor (MCP)
|
|
124
|
+
|
|
125
|
+
There is a small free MCP server built in. It gives your AI app one tool, `extract_pdf_tables`. It needs [uv](https://docs.astral.sh/uv/).
|
|
126
|
+
|
|
127
|
+
Run it by hand to check it starts (it waits quietly for an app to talk to it):
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
uvx --from pdf-table-pull-lite pdf-table-pull-lite-mcp
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Claude Desktop (`claude_desktop_config.json`) or Cursor (`~/.cursor/mcp.json`):
|
|
134
|
+
|
|
135
|
+
```json
|
|
136
|
+
{
|
|
137
|
+
"mcpServers": {
|
|
138
|
+
"pdf-table-pull-lite": {
|
|
139
|
+
"command": "uvx",
|
|
140
|
+
"args": ["--from", "pdf-table-pull-lite", "pdf-table-pull-lite-mcp"]
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Tool: `extract_pdf_tables(path, pages="", strategy="auto", output_dir="")`. It returns a list with the CSV text of each table. If you set `output_dir`, it saves the CSVs there and returns the file paths instead.
|
|
147
|
+
|
|
148
|
+
## For AI agents
|
|
149
|
+
|
|
150
|
+
- **Use when:** you have a local PDF with real text (you can select the words) and need its tables as rows.
|
|
151
|
+
- **Don't use when:** the PDF is a scan or photo, it has a password, or you need Excel. Those pages get skipped. Use the paid version for those.
|
|
152
|
+
- **Input:** a file path, plus optional `pages` like `1,3-5` and `strategy` (`auto`, `lines`, `text`).
|
|
153
|
+
- **Output:** a list of CSV strings, one per table, first row is the header. Empty list means no tables were found.
|
|
154
|
+
- CLI exit code is 0 on success and 1 on error (message on stderr). See also [`llms.txt`](https://github.com/tidybytetools/pdf-table-pull-lite/blob/main/llms.txt).
|
|
155
|
+
|
|
156
|
+
## Tests
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
pip install pdfplumber "mcp<2"
|
|
160
|
+
python3 -m unittest discover tests
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## License
|
|
164
|
+
|
|
165
|
+
MIT. See `LICENSE`.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
CHANGELOG.md
|
|
2
|
+
LICENSE
|
|
3
|
+
MANIFEST.in
|
|
4
|
+
README.md
|
|
5
|
+
llms.txt
|
|
6
|
+
pdf_table_pull_lite.py
|
|
7
|
+
pdf_table_pull_lite_mcp.py
|
|
8
|
+
pyproject.toml
|
|
9
|
+
server.json
|
|
10
|
+
pdf_table_pull_lite.egg-info/PKG-INFO
|
|
11
|
+
pdf_table_pull_lite.egg-info/SOURCES.txt
|
|
12
|
+
pdf_table_pull_lite.egg-info/dependency_links.txt
|
|
13
|
+
pdf_table_pull_lite.egg-info/entry_points.txt
|
|
14
|
+
pdf_table_pull_lite.egg-info/requires.txt
|
|
15
|
+
pdf_table_pull_lite.egg-info/top_level.txt
|
|
16
|
+
tests/test_lite.py
|
|
17
|
+
tests/test_mcp.py
|
|
18
|
+
tests/fixtures/empty.pdf
|
|
19
|
+
tests/fixtures/plain.pdf
|
|
20
|
+
tests/fixtures/ruled.pdf
|
|
21
|
+
tests/fixtures/scanned.pdf
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""pdf-table-pull-lite: pull the tables out of a text PDF into CSV files.
|
|
3
|
+
|
|
4
|
+
Free, MIT-licensed lite edition. The paid version (pdf-table-pull) adds Excel and
|
|
5
|
+
JSON output, scanned-PDF OCR, joining tables across pages, and number cleanup:
|
|
6
|
+
https://tidybyte.gumroad.com/l/hkxqxh
|
|
7
|
+
|
|
8
|
+
Usage:
|
|
9
|
+
pdf-table-pull-lite report.pdf
|
|
10
|
+
pdf-table-pull-lite report.pdf -o out_dir/ --pages 2-5
|
|
11
|
+
"""
|
|
12
|
+
import argparse, csv, os, re, sys
|
|
13
|
+
|
|
14
|
+
__version__ = "1.1.0"
|
|
15
|
+
PRO_URL = "https://tidybyte.gumroad.com/l/hkxqxh"
|
|
16
|
+
PRO_LINE = f"Need Excel output, scanned PDFs or tables joined across pages? pdf-table-pull (paid): {PRO_URL}"
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def parse_pages(spec, total):
|
|
20
|
+
"""'1,3-5' -> [1,3,4,5] (1-based). None means every page."""
|
|
21
|
+
if not spec:
|
|
22
|
+
return list(range(1, total + 1))
|
|
23
|
+
pages = []
|
|
24
|
+
for part in spec.split(","):
|
|
25
|
+
part = part.strip()
|
|
26
|
+
if not part:
|
|
27
|
+
continue
|
|
28
|
+
if "-" in part:
|
|
29
|
+
a, b = part.split("-", 1)
|
|
30
|
+
pages.extend(range(int(a) if a else 1, (int(b) if b else total) + 1))
|
|
31
|
+
else:
|
|
32
|
+
pages.append(int(part))
|
|
33
|
+
bad = [p for p in pages if p < 1 or p > total]
|
|
34
|
+
if bad:
|
|
35
|
+
raise ValueError(f"page {bad[0]} is out of range (PDF has {total} pages)")
|
|
36
|
+
return sorted(set(pages))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def _clean_cell(c):
|
|
40
|
+
return "" if c is None else re.sub(r"\s+", " ", str(c)).strip()
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def _clean_table(rows):
|
|
44
|
+
rows = [[_clean_cell(c) for c in r] for r in rows]
|
|
45
|
+
rows = [r for r in rows if any(r)]
|
|
46
|
+
if not rows:
|
|
47
|
+
return []
|
|
48
|
+
width = max(len(r) for r in rows)
|
|
49
|
+
rows = [r + [""] * (width - len(r)) for r in rows]
|
|
50
|
+
keep = [i for i in range(width) if any(r[i] for r in rows)]
|
|
51
|
+
return [[r[i] for i in keep] for r in rows]
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def extract(pdf_path, pages=None, strategy="auto"):
|
|
55
|
+
"""Return (tables, scanned_pages). tables: list of {'page', 'index', 'rows'}.
|
|
56
|
+
Pages with no text layer (scans) are skipped and listed in scanned_pages."""
|
|
57
|
+
import pdfplumber
|
|
58
|
+
if strategy not in ("auto", "lines", "text"):
|
|
59
|
+
raise ValueError("strategy must be lines, text or auto")
|
|
60
|
+
lines = {"vertical_strategy": "lines", "horizontal_strategy": "lines"}
|
|
61
|
+
text = {"vertical_strategy": "text", "horizontal_strategy": "text"}
|
|
62
|
+
out, scanned = [], []
|
|
63
|
+
with pdfplumber.open(pdf_path) as pdf:
|
|
64
|
+
for pno in parse_pages(pages, len(pdf.pages)):
|
|
65
|
+
page = pdf.pages[pno - 1]
|
|
66
|
+
if not page.chars:
|
|
67
|
+
scanned.append(pno)
|
|
68
|
+
continue
|
|
69
|
+
if strategy == "auto":
|
|
70
|
+
found = page.extract_tables(lines)
|
|
71
|
+
if not any(_clean_table(t) for t in found):
|
|
72
|
+
found = page.extract_tables(text)
|
|
73
|
+
else:
|
|
74
|
+
found = page.extract_tables(lines if strategy == "lines" else text)
|
|
75
|
+
k = 0
|
|
76
|
+
for t in found:
|
|
77
|
+
rows = _clean_table(t)
|
|
78
|
+
if not rows or (len(rows) < 2 and strategy != "lines"):
|
|
79
|
+
continue
|
|
80
|
+
k += 1
|
|
81
|
+
out.append({"page": pno, "index": k, "rows": rows})
|
|
82
|
+
return out, scanned
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def write_csv(tables, out_dir):
|
|
86
|
+
os.makedirs(out_dir, exist_ok=True)
|
|
87
|
+
paths = []
|
|
88
|
+
for t in tables:
|
|
89
|
+
p = os.path.join(out_dir, f"page{t['page']}_table{t['index']}.csv")
|
|
90
|
+
with open(p, "w", newline="", encoding="utf-8-sig") as f:
|
|
91
|
+
csv.writer(f).writerows(t["rows"])
|
|
92
|
+
paths.append(p)
|
|
93
|
+
return paths
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def main(argv=None):
|
|
97
|
+
ap = argparse.ArgumentParser(prog="pdf-table-pull-lite",
|
|
98
|
+
description="Pull tables out of a text PDF into CSV files (one file per table).",
|
|
99
|
+
epilog=PRO_LINE)
|
|
100
|
+
ap.add_argument("pdf")
|
|
101
|
+
ap.add_argument("-o", "--output", help="output folder (default: <pdf name>_tables next to the PDF)")
|
|
102
|
+
ap.add_argument("-p", "--pages", help="pages to read, e.g. 1,3-5 (default: all)")
|
|
103
|
+
ap.add_argument("-s", "--strategy", choices=["auto", "lines", "text"], default="auto",
|
|
104
|
+
help="lines = tables with ruled borders, text = tables lined up by spacing, auto = try lines then text")
|
|
105
|
+
ap.add_argument("-q", "--quiet", action="store_true", help="don't print the one-line note about the paid version")
|
|
106
|
+
ap.add_argument("--version", action="version", version=__version__)
|
|
107
|
+
a = ap.parse_args(argv)
|
|
108
|
+
try:
|
|
109
|
+
if not os.path.isfile(a.pdf):
|
|
110
|
+
raise FileNotFoundError(f"file not found: {a.pdf}")
|
|
111
|
+
tables, scanned = extract(a.pdf, a.pages, a.strategy)
|
|
112
|
+
files = write_csv(tables, a.output or os.path.splitext(a.pdf)[0] + "_tables")
|
|
113
|
+
print(f"Found {len(tables)} table(s).")
|
|
114
|
+
for t in tables:
|
|
115
|
+
print(f" page{t['page']}_table{t['index']}: {len(t['rows']) - 1} rows x {len(t['rows'][0])} columns")
|
|
116
|
+
for p in files:
|
|
117
|
+
print(f"Saved: {p}")
|
|
118
|
+
if scanned:
|
|
119
|
+
print(f"Skipped page(s) {', '.join(map(str, scanned))}: no text layer (scanned image). The lite version reads text PDFs only.")
|
|
120
|
+
elif not tables:
|
|
121
|
+
print("Tip: no tables found. Try --strategy text.")
|
|
122
|
+
if not a.quiet and sys.stdout.isatty():
|
|
123
|
+
print(PRO_LINE)
|
|
124
|
+
return 0
|
|
125
|
+
except Exception as e:
|
|
126
|
+
print(f"Error: {e}", file=sys.stderr)
|
|
127
|
+
return 1
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
if __name__ == "__main__":
|
|
131
|
+
sys.exit(main())
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""Free MCP server for pdf-table-pull-lite (stdio).
|
|
2
|
+
|
|
3
|
+
Run: uvx --from git+https://github.com/tidybytetools/pdf-table-pull-lite pdf-table-pull-lite-mcp
|
|
4
|
+
"""
|
|
5
|
+
import csv, io, os
|
|
6
|
+
from mcp.server.fastmcp import FastMCP
|
|
7
|
+
import pdf_table_pull_lite as lite
|
|
8
|
+
|
|
9
|
+
mcp = FastMCP("pdf-table-pull-lite")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@mcp.tool()
|
|
13
|
+
def extract_pdf_tables(path: str, pages: str = "", strategy: str = "auto", output_dir: str = "") -> list[str]:
|
|
14
|
+
"""Pull the tables out of a local text PDF.
|
|
15
|
+
|
|
16
|
+
path: full path to a PDF on this computer.
|
|
17
|
+
pages: optional, like "1,3-5". Empty means all pages.
|
|
18
|
+
strategy: "auto" (default), "lines" (ruled borders) or "text" (lined up by spacing).
|
|
19
|
+
output_dir: optional. If set, each table is saved there as a CSV and the file paths
|
|
20
|
+
are returned. If empty, the CSV text of each table is returned.
|
|
21
|
+
|
|
22
|
+
Scanned (image-only) pages have no text and are skipped. Returns [] if no tables.
|
|
23
|
+
"""
|
|
24
|
+
path = os.path.expanduser(path)
|
|
25
|
+
if not os.path.isfile(path):
|
|
26
|
+
raise FileNotFoundError(f"file not found: {path}")
|
|
27
|
+
tables, _scanned = lite.extract(path, pages or None, strategy)
|
|
28
|
+
if output_dir:
|
|
29
|
+
return lite.write_csv(tables, os.path.expanduser(output_dir))
|
|
30
|
+
out = []
|
|
31
|
+
for t in tables:
|
|
32
|
+
buf = io.StringIO()
|
|
33
|
+
csv.writer(buf).writerows(t["rows"])
|
|
34
|
+
out.append(buf.getvalue())
|
|
35
|
+
return out
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def main():
|
|
39
|
+
mcp.run()
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
if __name__ == "__main__":
|
|
43
|
+
main()
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "pdf-table-pull-lite"
|
|
7
|
+
version = "1.1.0"
|
|
8
|
+
description = "Pull the tables out of a text PDF into CSV files. Runs locally. CLI and MCP server."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
license-files = ["LICENSE"]
|
|
12
|
+
authors = [{name = "Tidy Byte Tools"}]
|
|
13
|
+
requires-python = ">=3.10"
|
|
14
|
+
dependencies = [
|
|
15
|
+
"pdfplumber>=0.10",
|
|
16
|
+
"mcp>=1.2,<2",
|
|
17
|
+
]
|
|
18
|
+
keywords = ["pdf", "table", "csv", "extract", "pdf-to-csv", "pdfplumber", "cli", "mcp", "mcp-server"]
|
|
19
|
+
classifiers = [
|
|
20
|
+
"Development Status :: 4 - Beta",
|
|
21
|
+
"Environment :: Console",
|
|
22
|
+
"Intended Audience :: Developers",
|
|
23
|
+
"Intended Audience :: End Users/Desktop",
|
|
24
|
+
"Operating System :: OS Independent",
|
|
25
|
+
"Programming Language :: Python :: 3",
|
|
26
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
27
|
+
"Programming Language :: Python :: 3.10",
|
|
28
|
+
"Programming Language :: Python :: 3.11",
|
|
29
|
+
"Programming Language :: Python :: 3.12",
|
|
30
|
+
"Programming Language :: Python :: 3.13",
|
|
31
|
+
"Topic :: Office/Business",
|
|
32
|
+
"Topic :: Text Processing",
|
|
33
|
+
"Topic :: Utilities",
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
[project.urls]
|
|
37
|
+
Homepage = "https://tidybyte.gumroad.com/l/hkxqxh"
|
|
38
|
+
Source = "https://github.com/tidybytetools/pdf-table-pull-lite"
|
|
39
|
+
Issues = "https://github.com/tidybytetools/pdf-table-pull-lite/issues"
|
|
40
|
+
Changelog = "https://github.com/tidybytetools/pdf-table-pull-lite/blob/main/CHANGELOG.md"
|
|
41
|
+
|
|
42
|
+
[project.scripts]
|
|
43
|
+
pdf-table-pull-lite = "pdf_table_pull_lite:main"
|
|
44
|
+
pdf-table-pull-lite-mcp = "pdf_table_pull_lite_mcp:main"
|
|
45
|
+
|
|
46
|
+
[tool.setuptools]
|
|
47
|
+
py-modules = ["pdf_table_pull_lite", "pdf_table_pull_lite_mcp"]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
|
+
"name": "io.github.tidybytetools/pdf-table-pull-lite",
|
|
4
|
+
"title": "pdf-table-pull-lite",
|
|
5
|
+
"description": "Pull tables out of local text PDFs as CSV. Runs on your computer, nothing uploaded.",
|
|
6
|
+
"repository": {
|
|
7
|
+
"url": "https://github.com/tidybytetools/pdf-table-pull-lite",
|
|
8
|
+
"source": "github"
|
|
9
|
+
},
|
|
10
|
+
"websiteUrl": "https://github.com/tidybytetools/pdf-table-pull-lite",
|
|
11
|
+
"version": "1.1.0",
|
|
12
|
+
"packages": [
|
|
13
|
+
{
|
|
14
|
+
"registryType": "pypi",
|
|
15
|
+
"registryBaseUrl": "https://pypi.org",
|
|
16
|
+
"identifier": "pdf-table-pull-lite",
|
|
17
|
+
"version": "1.1.0",
|
|
18
|
+
"runtimeHint": "uvx",
|
|
19
|
+
"transport": {
|
|
20
|
+
"type": "stdio"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
%PDF-1.3
|
|
2
|
+
%���� ReportLab Generated PDF document (opensource)
|
|
3
|
+
1 0 obj
|
|
4
|
+
<<
|
|
5
|
+
/F1 2 0 R
|
|
6
|
+
>>
|
|
7
|
+
endobj
|
|
8
|
+
2 0 obj
|
|
9
|
+
<<
|
|
10
|
+
/BaseFont /Helvetica /Encoding /WinAnsiEncoding /Name /F1 /Subtype /Type1 /Type /Font
|
|
11
|
+
>>
|
|
12
|
+
endobj
|
|
13
|
+
3 0 obj
|
|
14
|
+
<<
|
|
15
|
+
/Contents 7 0 R /MediaBox [ 0 0 612 792 ] /Parent 6 0 R /Resources <<
|
|
16
|
+
/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]
|
|
17
|
+
>> /Rotate 0 /Trans <<
|
|
18
|
+
|
|
19
|
+
>>
|
|
20
|
+
/Type /Page
|
|
21
|
+
>>
|
|
22
|
+
endobj
|
|
23
|
+
4 0 obj
|
|
24
|
+
<<
|
|
25
|
+
/PageMode /UseNone /Pages 6 0 R /Type /Catalog
|
|
26
|
+
>>
|
|
27
|
+
endobj
|
|
28
|
+
5 0 obj
|
|
29
|
+
<<
|
|
30
|
+
/Author (anonymous) /CreationDate (D:20261104013809-06'00') /Creator (anonymous) /Keywords () /ModDate (D:20261104013809-06'00') /Producer (ReportLab PDF Library - \(opensource\))
|
|
31
|
+
/Subject (unspecified) /Title (untitled) /Trapped /False
|
|
32
|
+
>>
|
|
33
|
+
endobj
|
|
34
|
+
6 0 obj
|
|
35
|
+
<<
|
|
36
|
+
/Count 1 /Kids [ 3 0 R ] /Type /Pages
|
|
37
|
+
>>
|
|
38
|
+
endobj
|
|
39
|
+
7 0 obj
|
|
40
|
+
<<
|
|
41
|
+
/Filter [ /ASCII85Decode /FlateDecode ] /Length 127
|
|
42
|
+
>>
|
|
43
|
+
stream
|
|
44
|
+
Gap@D5mkI_'F"4o`@S&\bn#NpKt7h^rrOp&.:OKgo`!E>*mA)\-b+<)0kIjCkGo^HI3R]*U3@sO<\Je<4Ma$7e)-JFLf>nL9!T,l6]7#71#(<7"8Y?Fs$,<MnRNNY~>endstream
|
|
45
|
+
endobj
|
|
46
|
+
xref
|
|
47
|
+
0 8
|
|
48
|
+
0000000000 65535 f
|
|
49
|
+
0000000061 00000 n
|
|
50
|
+
0000000092 00000 n
|
|
51
|
+
0000000199 00000 n
|
|
52
|
+
0000000392 00000 n
|
|
53
|
+
0000000460 00000 n
|
|
54
|
+
0000000721 00000 n
|
|
55
|
+
0000000780 00000 n
|
|
56
|
+
trailer
|
|
57
|
+
<<
|
|
58
|
+
/ID
|
|
59
|
+
[<a4b14a0b3c7a153e35d150475c5cef87><a4b14a0b3c7a153e35d150475c5cef87>]
|
|
60
|
+
% ReportLab generated PDF document -- digest (opensource)
|
|
61
|
+
|
|
62
|
+
/Info 5 0 R
|
|
63
|
+
/Root 4 0 R
|
|
64
|
+
/Size 8
|
|
65
|
+
>>
|
|
66
|
+
startxref
|
|
67
|
+
997
|
|
68
|
+
%%EOF
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
%PDF-1.3
|
|
2
|
+
%���� ReportLab Generated PDF document (opensource)
|
|
3
|
+
1 0 obj
|
|
4
|
+
<<
|
|
5
|
+
/F1 2 0 R
|
|
6
|
+
>>
|
|
7
|
+
endobj
|
|
8
|
+
2 0 obj
|
|
9
|
+
<<
|
|
10
|
+
/BaseFont /Helvetica /Encoding /WinAnsiEncoding /Name /F1 /Subtype /Type1 /Type /Font
|
|
11
|
+
>>
|
|
12
|
+
endobj
|
|
13
|
+
3 0 obj
|
|
14
|
+
<<
|
|
15
|
+
/Contents 7 0 R /MediaBox [ 0 0 612 792 ] /Parent 6 0 R /Resources <<
|
|
16
|
+
/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]
|
|
17
|
+
>> /Rotate 0 /Trans <<
|
|
18
|
+
|
|
19
|
+
>>
|
|
20
|
+
/Type /Page
|
|
21
|
+
>>
|
|
22
|
+
endobj
|
|
23
|
+
4 0 obj
|
|
24
|
+
<<
|
|
25
|
+
/PageMode /UseNone /Pages 6 0 R /Type /Catalog
|
|
26
|
+
>>
|
|
27
|
+
endobj
|
|
28
|
+
5 0 obj
|
|
29
|
+
<<
|
|
30
|
+
/Author (anonymous) /CreationDate (D:20261104013809-06'00') /Creator (anonymous) /Keywords () /ModDate (D:20261104013809-06'00') /Producer (ReportLab PDF Library - \(opensource\))
|
|
31
|
+
/Subject (unspecified) /Title (untitled) /Trapped /False
|
|
32
|
+
>>
|
|
33
|
+
endobj
|
|
34
|
+
6 0 obj
|
|
35
|
+
<<
|
|
36
|
+
/Count 1 /Kids [ 3 0 R ] /Type /Pages
|
|
37
|
+
>>
|
|
38
|
+
endobj
|
|
39
|
+
7 0 obj
|
|
40
|
+
<<
|
|
41
|
+
/Filter [ /ASCII85Decode /FlateDecode ] /Length 220
|
|
42
|
+
>>
|
|
43
|
+
stream
|
|
44
|
+
Gas3._$\%5%"R<K:Q_CZX%?@(GuUYcn7H!7Lk;p8E:s/]UJiPK"EFbir.G(K:qodX^d__:,9R3$!,88q%^;4T^Jgd/6\,Nk_R-?!Gm89kRK"CAI&j$KNsNqP%hn9ok!/H/;f]&YfjmVkE]cJ:os8_kHb;I#@T80R[*doUSk')jeP/tdM0*^;;Gj0ic+'hgj^@i6Ir/+k#=pmW`U_3gj9<h-E'O~>endstream
|
|
45
|
+
endobj
|
|
46
|
+
xref
|
|
47
|
+
0 8
|
|
48
|
+
0000000000 65535 f
|
|
49
|
+
0000000061 00000 n
|
|
50
|
+
0000000092 00000 n
|
|
51
|
+
0000000199 00000 n
|
|
52
|
+
0000000392 00000 n
|
|
53
|
+
0000000460 00000 n
|
|
54
|
+
0000000721 00000 n
|
|
55
|
+
0000000780 00000 n
|
|
56
|
+
trailer
|
|
57
|
+
<<
|
|
58
|
+
/ID
|
|
59
|
+
[<450000f58db8cd681e2fa7725f3a366d><450000f58db8cd681e2fa7725f3a366d>]
|
|
60
|
+
% ReportLab generated PDF document -- digest (opensource)
|
|
61
|
+
|
|
62
|
+
/Info 5 0 R
|
|
63
|
+
/Root 4 0 R
|
|
64
|
+
/Size 8
|
|
65
|
+
>>
|
|
66
|
+
startxref
|
|
67
|
+
1090
|
|
68
|
+
%%EOF
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
%PDF-1.4
|
|
2
|
+
%���� ReportLab Generated PDF document (opensource)
|
|
3
|
+
1 0 obj
|
|
4
|
+
<<
|
|
5
|
+
/F1 2 0 R /F2 3 0 R
|
|
6
|
+
>>
|
|
7
|
+
endobj
|
|
8
|
+
2 0 obj
|
|
9
|
+
<<
|
|
10
|
+
/BaseFont /Helvetica /Encoding /WinAnsiEncoding /Name /F1 /Subtype /Type1 /Type /Font
|
|
11
|
+
>>
|
|
12
|
+
endobj
|
|
13
|
+
3 0 obj
|
|
14
|
+
<<
|
|
15
|
+
/BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding /Name /F2 /Subtype /Type1 /Type /Font
|
|
16
|
+
>>
|
|
17
|
+
endobj
|
|
18
|
+
4 0 obj
|
|
19
|
+
<<
|
|
20
|
+
/Contents 10 0 R /MediaBox [ 0 0 612 792 ] /Parent 9 0 R /Resources <<
|
|
21
|
+
/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]
|
|
22
|
+
>> /Rotate 0 /Trans <<
|
|
23
|
+
|
|
24
|
+
>>
|
|
25
|
+
/Type /Page
|
|
26
|
+
>>
|
|
27
|
+
endobj
|
|
28
|
+
5 0 obj
|
|
29
|
+
<<
|
|
30
|
+
/Contents 11 0 R /MediaBox [ 0 0 612 792 ] /Parent 9 0 R /Resources <<
|
|
31
|
+
/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]
|
|
32
|
+
>> /Rotate 0 /Trans <<
|
|
33
|
+
|
|
34
|
+
>>
|
|
35
|
+
/Type /Page
|
|
36
|
+
>>
|
|
37
|
+
endobj
|
|
38
|
+
6 0 obj
|
|
39
|
+
<<
|
|
40
|
+
/Contents 12 0 R /MediaBox [ 0 0 612 792 ] /Parent 9 0 R /Resources <<
|
|
41
|
+
/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]
|
|
42
|
+
>> /Rotate 0 /Trans <<
|
|
43
|
+
|
|
44
|
+
>>
|
|
45
|
+
/Type /Page
|
|
46
|
+
>>
|
|
47
|
+
endobj
|
|
48
|
+
7 0 obj
|
|
49
|
+
<<
|
|
50
|
+
/PageMode /UseNone /Pages 9 0 R /Type /Catalog
|
|
51
|
+
>>
|
|
52
|
+
endobj
|
|
53
|
+
8 0 obj
|
|
54
|
+
<<
|
|
55
|
+
/Author (\(anonymous\)) /CreationDate (D:20261104013809-06'00') /Creator (\(unspecified\)) /Keywords () /ModDate (D:20261104013809-06'00') /Producer (ReportLab PDF Library - \(opensource\))
|
|
56
|
+
/Subject (\(unspecified\)) /Title (\(anonymous\)) /Trapped /False
|
|
57
|
+
>>
|
|
58
|
+
endobj
|
|
59
|
+
9 0 obj
|
|
60
|
+
<<
|
|
61
|
+
/Count 3 /Kids [ 4 0 R 5 0 R 6 0 R ] /Type /Pages
|
|
62
|
+
>>
|
|
63
|
+
endobj
|
|
64
|
+
10 0 obj
|
|
65
|
+
<<
|
|
66
|
+
/Filter [ /ASCII85Decode /FlateDecode ] /Length 491
|
|
67
|
+
>>
|
|
68
|
+
stream
|
|
69
|
+
Gat=fd8,BK&B<W'/+.C5>'m(tj`QCuNEO-<j'I](F;[H.`U(A6g&`3$Yf%*=bK$gD?$@@lV[)&HCCW$kiV";n"f1U;P"A3:i@YSR"0BVcJ;sfLUiE;tl[Y"(lU5B+EY3iA\d2_-:rQ+sO?TR\0M1skAX/P8"-hJ?;-$Ud2iq@^9a@H-#sH>c6:MA0kcgu")k4IE76U:b<#R%9YpPBFrE8KUIU,La9Uc5[YTGWh74fb\)%@d3^msid1"NGgn60cpd]^VV21TC;%TsSEnW"ZKbud'RX<s+6VC.a:`"ThRqN"uG"AHXMYbPAna8n#)Og+KoQ;6R4Q$5WFUtY9c#,+6'<&ZR$X-K[XZ4-+(XcKYh)oLo<<d-ta-YMD4?n3>c:?3V@PZ4;BoC'md<`qVj'$b0u9q&*"KfI>7D=o^I<-)e&9MJ.Aqf*]R7@gYggqFOT`q/;=EH(ZskFU.?o3ORe]N<k$LXOIa9mkJo0EckRPm7m~>endstream
|
|
70
|
+
endobj
|
|
71
|
+
11 0 obj
|
|
72
|
+
<<
|
|
73
|
+
/Filter [ /ASCII85Decode /FlateDecode ] /Length 1081
|
|
74
|
+
>>
|
|
75
|
+
stream
|
|
76
|
+
GasJT>Dpur'SPB,=7i9a0_QeaV]WUILnNl@LoeJQm,GU7J)?dg\Ig_G_^okL.ePA\V+;qe\A$Dbp\Q7iQV2T&2MIC5nfssh4G;g+GdEohT+WYqREf:Mo<@N3_f7bcp[]YC`pM!okH.89`$nBZL?0&>]R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+
0000000061 00000 n
|
|
89
|
+
0000000102 00000 n
|
|
90
|
+
0000000209 00000 n
|
|
91
|
+
0000000321 00000 n
|
|
92
|
+
0000000515 00000 n
|
|
93
|
+
0000000709 00000 n
|
|
94
|
+
0000000903 00000 n
|
|
95
|
+
0000000971 00000 n
|
|
96
|
+
0000001251 00000 n
|
|
97
|
+
0000001322 00000 n
|
|
98
|
+
0000001904 00000 n
|
|
99
|
+
0000003077 00000 n
|
|
100
|
+
trailer
|
|
101
|
+
<<
|
|
102
|
+
/ID
|
|
103
|
+
[<a7ddb7f6a35ec00e5bf9fed0eaa8c41c><a7ddb7f6a35ec00e5bf9fed0eaa8c41c>]
|
|
104
|
+
% ReportLab generated PDF document -- digest (opensource)
|
|
105
|
+
|
|
106
|
+
/Info 8 0 R
|
|
107
|
+
/Root 7 0 R
|
|
108
|
+
/Size 13
|
|
109
|
+
>>
|
|
110
|
+
startxref
|
|
111
|
+
4100
|
|
112
|
+
%%EOF
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
%PDF-1.3
|
|
2
|
+
%���� ReportLab Generated PDF document (opensource)
|
|
3
|
+
1 0 obj
|
|
4
|
+
<<
|
|
5
|
+
/F1 2 0 R
|
|
6
|
+
>>
|
|
7
|
+
endobj
|
|
8
|
+
2 0 obj
|
|
9
|
+
<<
|
|
10
|
+
/BaseFont /Helvetica /Encoding /WinAnsiEncoding /Name /F1 /Subtype /Type1 /Type /Font
|
|
11
|
+
>>
|
|
12
|
+
endobj
|
|
13
|
+
3 0 obj
|
|
14
|
+
<<
|
|
15
|
+
/BitsPerComponent 8 /ColorSpace /DeviceRGB /Filter [ /ASCII85Decode /FlateDecode ] /Height 1100 /Length 16799 /Subtype /Image
|
|
16
|
+
/Type /XObject /Width 850
|
|
17
|
+
>>
|
|
18
|
+
stream
|
|
19
|
+
Gb"-VH*iUnr]fls.5DDO18`G=S^8g]UQH7J-qQiWV##6a'q4>7e`gaH+[T$?d99!$$nW+/U7rm[2ma!/ZZOdtI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nCz#l4M3+TVQCzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz?mR_=EA@~>endstream
|
|
20
|
+
endobj
|
|
21
|
+
4 0 obj
|
|
22
|
+
<<
|
|
23
|
+
/Contents 8 0 R /MediaBox [ 0 0 612 792 ] /Parent 7 0 R /Resources <<
|
|
24
|
+
/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] /XObject <<
|
|
25
|
+
/FormXob.74e5f40f81f83975c5a0766802ede527 3 0 R
|
|
26
|
+
>>
|
|
27
|
+
>> /Rotate 0 /Trans <<
|
|
28
|
+
|
|
29
|
+
>>
|
|
30
|
+
/Type /Page
|
|
31
|
+
>>
|
|
32
|
+
endobj
|
|
33
|
+
5 0 obj
|
|
34
|
+
<<
|
|
35
|
+
/PageMode /UseNone /Pages 7 0 R /Type /Catalog
|
|
36
|
+
>>
|
|
37
|
+
endobj
|
|
38
|
+
6 0 obj
|
|
39
|
+
<<
|
|
40
|
+
/Author (anonymous) /CreationDate (D:20261104013809-06'00') /Creator (anonymous) /Keywords () /ModDate (D:20261104013809-06'00') /Producer (ReportLab PDF Library - \(opensource\))
|
|
41
|
+
/Subject (unspecified) /Title (untitled) /Trapped /False
|
|
42
|
+
>>
|
|
43
|
+
endobj
|
|
44
|
+
7 0 obj
|
|
45
|
+
<<
|
|
46
|
+
/Count 1 /Kids [ 4 0 R ] /Type /Pages
|
|
47
|
+
>>
|
|
48
|
+
endobj
|
|
49
|
+
8 0 obj
|
|
50
|
+
<<
|
|
51
|
+
/Filter [ /ASCII85Decode /FlateDecode ] /Length 130
|
|
52
|
+
>>
|
|
53
|
+
stream
|
|
54
|
+
Gap@C3t?c`&-_qo`B/XV#V<DRX_^ZZD#HV3Lu,lXNL==7aY6\F5OTuH"k4cL2*qA6arj@p!aXkZHS9++IoAMmqcr\mM2=,.PrpGOZsn6k.WN`a*KOmAT[,G.kQ*#c)!C~>endstream
|
|
55
|
+
endobj
|
|
56
|
+
xref
|
|
57
|
+
0 9
|
|
58
|
+
0000000000 65535 f
|
|
59
|
+
0000000061 00000 n
|
|
60
|
+
0000000092 00000 n
|
|
61
|
+
0000000199 00000 n
|
|
62
|
+
0000017191 00000 n
|
|
63
|
+
0000017447 00000 n
|
|
64
|
+
0000017515 00000 n
|
|
65
|
+
0000017776 00000 n
|
|
66
|
+
0000017835 00000 n
|
|
67
|
+
trailer
|
|
68
|
+
<<
|
|
69
|
+
/ID
|
|
70
|
+
[<bbd50ca8212d24bc51709a8767df1587><bbd50ca8212d24bc51709a8767df1587>]
|
|
71
|
+
% ReportLab generated PDF document -- digest (opensource)
|
|
72
|
+
|
|
73
|
+
/Info 6 0 R
|
|
74
|
+
/Root 5 0 R
|
|
75
|
+
/Size 9
|
|
76
|
+
>>
|
|
77
|
+
startxref
|
|
78
|
+
18055
|
|
79
|
+
%%EOF
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import csv, io, os, sys, tempfile, unittest
|
|
2
|
+
from contextlib import redirect_stdout
|
|
3
|
+
HERE = os.path.dirname(__file__)
|
|
4
|
+
sys.path.insert(0, os.path.join(HERE, ".."))
|
|
5
|
+
import pdf_table_pull_lite as lite
|
|
6
|
+
F = lambda n: os.path.join(HERE, "fixtures", n)
|
|
7
|
+
|
|
8
|
+
class Lite(unittest.TestCase):
|
|
9
|
+
def test_pages(self):
|
|
10
|
+
self.assertEqual(lite.parse_pages("1,3-4", 5), [1, 3, 4])
|
|
11
|
+
self.assertEqual(lite.parse_pages(None, 2), [1, 2])
|
|
12
|
+
with self.assertRaises(ValueError): lite.parse_pages("9", 3)
|
|
13
|
+
def test_ruled_tables(self):
|
|
14
|
+
tables, scanned = lite.extract(F("ruled.pdf"))
|
|
15
|
+
self.assertEqual(scanned, [])
|
|
16
|
+
self.assertEqual(tables[0]["rows"], [["Region", "Q1", "Q2"], ["North", "1,200", "1,350"], ["South", "980", "(40)"]])
|
|
17
|
+
self.assertEqual(tables[1]["rows"][0], ["Item", "Qty"])
|
|
18
|
+
def test_no_joining_across_pages(self):
|
|
19
|
+
tables, _ = lite.extract(F("ruled.pdf"))
|
|
20
|
+
self.assertEqual(sorted({t["page"] for t in tables}), [1, 2, 3])
|
|
21
|
+
def test_text_table(self):
|
|
22
|
+
tables, _ = lite.extract(F("plain.pdf"))
|
|
23
|
+
self.assertEqual(tables[0]["rows"][0], ["Date", "Store", "Total"])
|
|
24
|
+
self.assertEqual(len(tables[0]["rows"]), 4)
|
|
25
|
+
def test_scanned_skipped(self):
|
|
26
|
+
tables, scanned = lite.extract(F("scanned.pdf"))
|
|
27
|
+
self.assertEqual((tables, scanned), ([], [1]))
|
|
28
|
+
def test_empty(self):
|
|
29
|
+
self.assertEqual(lite.extract(F("empty.pdf"), strategy="text")[0], [])
|
|
30
|
+
def test_cli_writes_csv(self):
|
|
31
|
+
with tempfile.TemporaryDirectory() as d:
|
|
32
|
+
out = io.StringIO()
|
|
33
|
+
with redirect_stdout(out): code = lite.main([F("ruled.pdf"), "-o", d, "-p", "1"])
|
|
34
|
+
self.assertEqual(code, 0)
|
|
35
|
+
self.assertEqual(sorted(os.listdir(d)), ["page1_table1.csv", "page1_table2.csv"])
|
|
36
|
+
with open(os.path.join(d, "page1_table1.csv"), encoding="utf-8-sig") as f:
|
|
37
|
+
self.assertEqual(list(csv.reader(f))[2], ["South", "980", "(40)"])
|
|
38
|
+
self.assertIn("Found 2 table(s)", out.getvalue())
|
|
39
|
+
def test_cli_scanned_message(self):
|
|
40
|
+
with tempfile.TemporaryDirectory() as d:
|
|
41
|
+
out = io.StringIO()
|
|
42
|
+
with redirect_stdout(out): lite.main([F("scanned.pdf"), "-o", d])
|
|
43
|
+
self.assertIn("text PDFs only", out.getvalue())
|
|
44
|
+
def test_help_has_paid_link(self):
|
|
45
|
+
out = io.StringIO()
|
|
46
|
+
with redirect_stdout(out), self.assertRaises(SystemExit): lite.main(["--help"])
|
|
47
|
+
self.assertIn("https://tidybyte.gumroad.com/l/hkxqxh", out.getvalue())
|
|
48
|
+
def test_missing_file(self):
|
|
49
|
+
self.assertEqual(lite.main(["/nope.pdf"]), 1)
|
|
50
|
+
|
|
51
|
+
if __name__ == "__main__": unittest.main()
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""Starts the MCP server over stdio, lists tools, and calls extract_pdf_tables."""
|
|
2
|
+
import asyncio, os, sys, unittest
|
|
3
|
+
HERE = os.path.dirname(__file__)
|
|
4
|
+
ROOT = os.path.join(HERE, "..")
|
|
5
|
+
|
|
6
|
+
try:
|
|
7
|
+
from mcp import ClientSession, StdioServerParameters
|
|
8
|
+
from mcp.client.stdio import stdio_client
|
|
9
|
+
except ImportError:
|
|
10
|
+
ClientSession = None
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
async def _run():
|
|
14
|
+
params = StdioServerParameters(command=sys.executable, args=[os.path.join(ROOT, "pdf_table_pull_lite_mcp.py")], cwd=ROOT)
|
|
15
|
+
async with stdio_client(params) as (r, w):
|
|
16
|
+
async with ClientSession(r, w) as s:
|
|
17
|
+
await s.initialize()
|
|
18
|
+
tools = [t.name for t in (await s.list_tools()).tools]
|
|
19
|
+
res = await s.call_tool("extract_pdf_tables", {"path": os.path.abspath(os.path.join(HERE, "fixtures", "ruled.pdf")), "pages": "1"})
|
|
20
|
+
return tools, res
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@unittest.skipIf(ClientSession is None, "mcp not installed")
|
|
24
|
+
class MCP(unittest.TestCase):
|
|
25
|
+
def test_lists_and_calls_tool(self):
|
|
26
|
+
tools, res = asyncio.run(_run())
|
|
27
|
+
self.assertEqual(tools, ["extract_pdf_tables"])
|
|
28
|
+
self.assertFalse(res.isError)
|
|
29
|
+
text = " ".join(c.text for c in res.content if getattr(c, "type", "") == "text")
|
|
30
|
+
self.assertIn("Region,Q1,Q2", text)
|
|
31
|
+
self.assertIn("South,980,(40)", text)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
if __name__ == "__main__":
|
|
35
|
+
unittest.main()
|