File: cli.rst

package info (click to toggle)
camelot-py 0.11.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 28,240 kB
  • sloc: xml: 119,991; python: 6,391; makefile: 222; sh: 14
file content (38 lines) | stat: -rw-r--r-- 1,683 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.. _cli:

Command-Line Interface
======================

Camelot comes with a command-line interface.

You can print the help for the interface by typing ``camelot --help`` in your favorite terminal program, as shown below. Furthermore, you can print the help for each command by typing ``camelot <command> --help``. Try it out!

::

  Usage: camelot [OPTIONS] COMMAND [ARGS]...

    Camelot: PDF Table Extraction for Humans

  Options:
    --version                       Show the version and exit.
    -q, --quiet TEXT                Suppress logs and warnings.
    -p, --pages TEXT                Comma-separated page numbers. Example: 1,3,4
                                    or 1,4-end.
    -pw, --password TEXT            Password for decryption.
    -o, --output TEXT               Output file path.
    -f, --format [csv|json|excel|html]
                                    Output file format.
    -z, --zip                       Create ZIP archive.
    -split, --split_text            Split text that spans across multiple cells.
    -flag, --flag_size              Flag text based on font size. Useful to
                                    detect super/subscripts.
    -strip, --strip_text            Characters that should be stripped from a
                                    string before assigning it to a cell.
    -M, --margins <FLOAT FLOAT FLOAT>...
                                    PDFMiner char_margin, line_margin and
                                    word_margin.
    --help                          Show this message and exit.

  Commands:
    lattice  Use lines between text to parse the table.
    stream   Use spaces between text to parse the table.