forked from camelot-dev/camelot
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reflect camelot packing in pypdf_table_extraction
- Loading branch information
1 parent
567520b
commit ca1dd07
Showing
21 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from camelot import __version__ # noqa: F401 | ||
from camelot import format_string # noqa F401 | ||
from camelot import formatter # noqa F401 | ||
from camelot import handler # noqa F401 | ||
from camelot import logger # noqa F401 | ||
from camelot import plot # noqa F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
__all__ = ("main",) | ||
|
||
|
||
def main(): | ||
from camelot.cli import cli | ||
|
||
cli() | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from camelot.__version__ import PRERELEASE # noqa: F401 | ||
from camelot.__version__ import REVISION # noqa F401 | ||
from camelot.__version__ import VERSION # noqa F401 | ||
from camelot.__version__ import __author__ # noqa F401 | ||
from camelot.__version__ import __author_email__ # noqa F401 | ||
from camelot.__version__ import __description__ # noqa F401 | ||
from camelot.__version__ import __license__ # noqa F401 | ||
from camelot.__version__ import __title__ # noqa F401 | ||
from camelot.__version__ import __url__ # noqa F401 | ||
from camelot.__version__ import __version__ # noqa F401 | ||
from camelot.__version__ import generate_version # noqa F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .image_conversion import ImageConversionBackend # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from camelot.backends.ghostscript import Ghostscript # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from camelot.backends.image_conversion import BACKENDS # noqa: F401 | ||
from camelot.backends.image_conversion import ImageConversionBackend # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from camelot.backends.poppler_backend import PopplerBackend # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from camelot.cli import Config # noqa: F401 | ||
from camelot.cli import cli # noqa F401 | ||
from camelot.cli import lattice # noqa F401 | ||
from camelot.cli import logger # noqa F401 | ||
from camelot.cli import pass_config # noqa F401 | ||
from camelot.cli import stream # noqa F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from camelot.core import TABLE_AREA_PADDING # noqa: F401 | ||
from camelot.core import TEXTEDGE_REQUIRED_ELEMENTS # noqa F401 | ||
from camelot.core import Cell # noqa F401 | ||
from camelot.core import Table # noqa F401 | ||
from camelot.core import TableList # noqa F401 | ||
from camelot.core import TextEdge # noqa F401 | ||
from camelot.core import TextEdges # noqa F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from camelot.handlers import PDFHandler # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from camelot.image_processing import adaptive_threshold # noqa: F401 | ||
from camelot.image_processing import find_contours # noqa F401 | ||
from camelot.image_processing import find_joints # noqa F401 | ||
from camelot.image_processing import find_lines # noqa F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from camelot.io import read_pdf # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from camelot.parsers import Lattice # noqa | ||
from camelot.parsers import Stream # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from camelot.parsers.base import BaseParser # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from camelot.parsers.lattice import Lattice # noqa: F401 | ||
from camelot.parsers.lattice import logger # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from camelot.parsers.stream import Stream # noqa: F401 | ||
from camelot.parsers.stream import logger # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from camelot.plotting import PlotMethods # noqa: F401 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from camelot.utils import _VALID_URLS # noqa F401 | ||
from camelot.utils import TemporaryDirectory # noqa F401 | ||
from camelot.utils import bbox_area # noqa F401 | ||
from camelot.utils import bbox_intersect # noqa F401 | ||
from camelot.utils import bbox_intersection_area # noqa F401 | ||
from camelot.utils import bbox_longer # noqa F401 | ||
from camelot.utils import compute_accuracy # noqa F401 | ||
from camelot.utils import compute_whitespace # noqa F401 | ||
from camelot.utils import download_url # noqa F401 # noqa F401 | ||
from camelot.utils import flag_font_size # noqa F401 | ||
from camelot.utils import get_page_layout # noqa F401 | ||
from camelot.utils import get_rotation # noqa F401 | ||
from camelot.utils import get_table_index # noqa F401 | ||
from camelot.utils import get_text_objects # noqa F401 | ||
from camelot.utils import is_url # noqa F401 | ||
from camelot.utils import lattice_kwargs # noqa F401 | ||
from camelot.utils import merge_close_lines # noqa F401 | ||
from camelot.utils import random_string # noqa F401 | ||
from camelot.utils import remove_extra # noqa F401 | ||
from camelot.utils import scale # noqa F401 | ||
from camelot.utils import scale_image # noqa F401 | ||
from camelot.utils import scale_pdf # noqa F401 | ||
from camelot.utils import segments_in_bbox # noqa F401 | ||
from camelot.utils import split_textline # noqa F401 | ||
from camelot.utils import stream_kwargs # noqa F401 | ||
from camelot.utils import text_in_bbox # noqa F401 | ||
from camelot.utils import text_strip # noqa F401 | ||
from camelot.utils import translate # noqa F401 | ||
from camelot.utils import validate_input # noqa F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
def test_imports(): | ||
|
||
from camelot.backends.poppler_backend import PopplerBackend # noqa: F401 | ||
from camelot.handlers import Lattice # noqa: F401 | ||
from camelot.handlers import Stream # noqa: F401 | ||
from pypdf_table_extraction.backends.poppler_backend import ( # noqa: F401,F811 | ||
PopplerBackend, | ||
) | ||
from pypdf_table_extraction.parsers import Lattice # noqa: F401, F811 | ||
from pypdf_table_extraction.parsers import Stream # noqa: F401, F811 |