Jose Vargas
0962b8f4d4
Add test for extracting all tables with flavor=stream
2020-01-31 20:29:26 -05:00
Jose Vargas
52adbbd796
[parsers.stream] - Use fall back column coordinates.
...
The Stream class would raise an IndexError when the 'columns' argument was specified
and the number of tables identified was larger than the number of items in the
'columns' argument.
This IndexError makes extracting tables from a PDF comprised mainly of known,
consistent table structures of interest to the caller, but that may be variable in
height, starting position, or number, rather cumbersome with the Stream parser.
This is especially true within an automated or programmatic context.
Either the caller must call 'camelot.read_pdf' once per page, or
manipulate the 'columns' argument so as to avoid the IndexError. The former
isn't guaranteed to work, as a single page can contain multiple tables,
and therefore, in such a situation, the caller must resort to the latter even if
extracting tables from a single page.
The Stream class continues to function exactly the same when the 'table_areas'
argument is provided; this commit only changes the behavior of the Stream parser
when 'table_areas' is not provided.
This commit allows all tables to be easily extracted by specifying 'pages=all'
and providing the appropriate 'columns' argument value to
'camelot.read_pdf'.
Extracting all tables from such a PDF is already possible with the
Lattice parser, this commit makes this possible with the Stream
parser as well.
Callers are responsible for filtering out any extraneous tables.
2020-01-31 20:29:26 -05:00
Vinayak Mehta
44193e0d26
Add deepsource badge to docs
2019-12-24 13:08:46 +05:30
Vinayak Mehta
a9918a78cf
Add deepsource badge
2019-12-24 13:07:11 +05:30
Vinayak Mehta
47bb839d7a
Create .deepsource.toml
2019-12-24 13:03:45 +05:30
Vinayak Mehta
1b30f8ecf9
Merge pull request #94 from miltonArango/improving-coverage
...
[MRG] Unit tests for the version generation
2019-11-15 10:50:42 +05:30
Milton Arango
8e28a0cac0
Moved the version tests to test_common PR #94
...
Applied black formatting
2019-11-14 20:26:20 -05:00
Vinayak Mehta
eb2badbbd0
Merge pull request #91 from vasantvohra/patch-1
...
[MRG] Update how-it-works.rst
2019-11-15 03:36:02 +05:30
Milton Arango
0d1db4b09e
Unit Tests for the Version Generation
...
Unit tests for the __version__.py generate_version method.
2019-10-26 15:41:41 -05:00
Vasant Vohra
167ee9ac69
Update how-it-works.rst
...
minor typo
2019-10-17 14:04:18 +05:30
Vinayak Mehta
83f816f104
Merge pull request #48 from jnothman/assert_frame_equal
...
[MRG] Use assert_frame_equal for more informative errors in tests
2019-10-15 15:51:26 +05:30
Vinayak Mehta
f1879726d9
Merge pull request #86 from pravarag/add-opencollective
...
[MRG] Update python-tk link
2019-10-15 12:19:07 +05:30
Pravar Agrawal
56f3b54f62
[PyConIndia] Update python-tk link in README
2019-10-15 11:25:57 +05:30
Vinayak Mehta
11fadb16fd
Merge pull request #65 from pravarag/add-opencollective
...
[MRG] Add opencollective url
2019-10-14 23:58:12 +05:30
Vinayak Mehta
2340833bb8
Merge branch 'master' into add-opencollective
2019-10-14 23:57:40 +05:30
Vinayak Mehta
7ce4cb5050
Merge pull request #57 from dcorriveau/master
...
Update README.md
2019-10-14 23:56:40 +05:30
Vinayak Mehta
78e5dd1f4e
Fix #56
2019-10-14 23:55:51 +05:30
Vinayak Mehta
857f68ef6b
Update README.md
2019-10-14 23:52:38 +05:30
Vinayak Mehta
14c3cb49b9
Merge pull request #70 from kishvanchee/fix67
...
[MRG] Add 3.7 version to installation docs
2019-10-14 23:50:44 +05:30
Kishore Vancheeshwaran
a6d32ecddb
added 3.7 version to installation docs
2019-10-14 12:52:51 +05:30
Pravar Agrawal
e5e02401da
[DevSprint] convert camelot to uppercase in README
2019-10-14 12:51:09 +05:30
Pravar Agrawal
ea3eac3c40
[DevSprint] push new branch, fix typo in index.rst change
2019-10-14 12:33:13 +05:30
Pravar Agrawal
28a8112c6d
[DevSprint] Fix typo in index.rst for opencollective link
2019-10-14 12:25:17 +05:30
Pravar Agrawal
45384106c8
[DevSprint] Add opencollective link to README and Docs
2019-10-14 12:21:09 +05:30
Dylan Corriveau
81729f57cc
Update README.md
2019-10-13 16:00:04 -04:00
Joel Nothman
9eb15c09dc
Use assert_frame_equal for more informative errors in tests
2019-08-06 11:38:44 +10:00
Vinayak Mehta
7ecfcad239
Update HISTORY.md
2019-07-28 21:46:55 +10:00
Dimiter Naydenov
b2929a9e92
Merge pull request #34 from KOLANICH/win_ghostscript_callback_fix
...
Fixed calling convention of callback functions
2019-07-24 13:39:18 +03:00
Dimiter Naydenov
6d33c7ff1e
Merge pull request #32 from KOLANICH/ghostscript_discovery_win
...
Fixed library discovery on Windows
2019-07-24 13:38:51 +03:00
KOLANICH
5687fbc8b2
Fixed calling convention of callback functions
2019-07-16 21:08:34 +03:00
KOLANICH
9e356b1b0a
Fixed library discovery on Windows
2019-07-16 21:07:23 +03:00
Vinayak Mehta
f7b94b3e57
Add black badge to index.rst
2019-07-07 16:15:04 +05:30
Vinayak Mehta
0efb3ca1b0
Update HISTORY.md and bump version
2019-07-07 16:07:28 +05:30
Vinayak Mehta
098f7c6727
Merge pull request #26 from camelot-dev/fix-25
...
[MRG] Update flavor kwargs
2019-07-06 23:42:09 +05:30
Vinayak Mehta
a97b50ef21
Update flavor kwargs
2019-07-06 22:59:51 +05:30
Vinayak Mehta
e0e4eeb6d4
Rebuild
2019-07-06 04:36:16 +05:30
Vinayak Mehta
b8c55383ea
Update docs
2019-07-06 04:28:32 +05:30
Dimiter Naydenov
0f8cda4793
Merge pull request #5 from camelot-dev/fix-cli-group-name
...
[MRG] No need to monkey-patch Click.HelpFormatter
2019-07-04 18:26:35 +03:00
Dimiter Naydenov
e81e818b0e
Merge pull request #4 from camelot-dev/fix-strip-text-arg
...
[MRG] Fixed strip_text argument getting ignored
2019-07-04 18:26:11 +03:00
Dimiter Naydenov
13616c2fb4
No need to monkey-patch Click.HelpFormatter
2019-07-04 13:13:32 +03:00
Dimiter Naydenov
240ea6c411
Fixed strip_text argument getting ignored
2019-07-04 12:12:52 +03:00
Vinayak Mehta
d5df93635e
Merge pull request #3 from camelot-dev/code-style-black-badge
...
[MRG] Add code style: black badge to README.md
2019-07-04 01:10:51 +05:30
Dimiter Naydenov
245731345c
Add code style: black badge to README.md
...
Now PR #1 got merged, we can wear this proudly :)
2019-07-03 21:58:22 +03:00
Vinayak Mehta
9137df2f6c
Merge pull request #1 from camelot-dev/blacken-code
...
[MRG] Blacken code
2019-07-04 00:20:57 +05:30
Vinayak Mehta
16ddd10644
Update image_processing.py
2019-07-04 00:06:46 +05:30
Vinayak Mehta
2115a0e177
Blacken code
2019-07-03 23:47:42 +05:30
Vinayak Mehta
27d55d056c
Merge pull request #2 from camelot-dev/fix-pytest-dep-warning
...
[MRG] Fix pytest deprecation warning
2019-07-03 23:20:43 +05:30
Vinayak Mehta
8866eaa3b6
Fix pytest deprecation warning
2019-07-03 22:07:10 +05:30
Vinayak Mehta
78d80555d8
Update LICENSE and fix travis
2019-07-03 20:46:18 +05:30
Himanshu Sikaria
69767beb7b
Update README.md
2019-06-30 21:57:10 +05:30