reducto-cli 0.2.0__py3-none-win_amd64.whl
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.
|
Binary file
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2025 Reducto
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: reducto-cli
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Reducto CLI: parse, extract, split, classify and edit documents from the shell
|
|
5
|
+
Home-page: https://github.com/reductoai/cli
|
|
6
|
+
Author: Reducto
|
|
7
|
+
License: Apache-2.0
|
|
8
|
+
Project-URL: Documentation, https://docs.reducto.ai
|
|
9
|
+
Project-URL: Source, https://github.com/reductoai/cli
|
|
10
|
+
Project-URL: Changelog, https://github.com/reductoai/cli/blob/master/CHANGELOG.md
|
|
11
|
+
Keywords: reducto,pdf,ocr,document,parse,extract,cli
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Environment :: Console
|
|
16
|
+
Requires-Python: >=3.8
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
|
|
19
|
+
# Reducto CLI
|
|
20
|
+
|
|
21
|
+
The Reducto document platform in your shell: parse, extract, split, classify and edit
|
|
22
|
+
documents from the command line, in scripts, and inside agent workflows.
|
|
23
|
+
|
|
24
|
+
One static binary. No runtime. Every field of the Reducto API is reachable without waiting
|
|
25
|
+
for a CLI release.
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
curl -fsSL https://reducto.ai/cli | sh
|
|
29
|
+
reducto login
|
|
30
|
+
reducto parse report.pdf
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Table of Contents
|
|
34
|
+
|
|
35
|
+
- [Why Reducto](#why-reducto)
|
|
36
|
+
- [Installation](#installation)
|
|
37
|
+
- [Authentication](#authentication)
|
|
38
|
+
- [Quick Start](#quick-start)
|
|
39
|
+
- [Commands](#commands)
|
|
40
|
+
- [Any API field](#any-api-field)
|
|
41
|
+
- [Inputs and outputs](#inputs-and-outputs)
|
|
42
|
+
- [Supported File Types](#supported-file-types)
|
|
43
|
+
- [Use Cases](#use-cases)
|
|
44
|
+
- [Configuration](#configuration)
|
|
45
|
+
- [Upgrading from 0.1.x](#upgrading-from-01x)
|
|
46
|
+
- [Development](#development)
|
|
47
|
+
- [Related Projects](#related-projects)
|
|
48
|
+
- [Resources](#resources)
|
|
49
|
+
|
|
50
|
+
## Why Reducto
|
|
51
|
+
|
|
52
|
+
Reducto is the agentic document platform for leading AI teams who demand enterprise
|
|
53
|
+
performance at scale. We provide a comprehensive toolkit for working with documents the way a
|
|
54
|
+
human would, combining custom in-house and leading frontier models to power efficient and
|
|
55
|
+
accurate document workflows.
|
|
56
|
+
|
|
57
|
+
The CLI brings that platform directly into your shell, scripts, and agent workflows.
|
|
58
|
+
|
|
59
|
+
### Performance for you
|
|
60
|
+
|
|
61
|
+
Zero-shot accuracy on complex documents where other solutions aren't production-ready.
|
|
62
|
+
Reducto orchestrates multiple models under the hood — routing, probes, and agentic VLM
|
|
63
|
+
multipasses — and continuously updates them so you don't have to chase the frontier. Handles
|
|
64
|
+
the long tail: tables, charts, figures, handwriting, scans.
|
|
65
|
+
|
|
66
|
+
### Enterprise ready
|
|
67
|
+
|
|
68
|
+
Hosted, VPC, on-premises, and air-gapped deployments to meet any data residency or security
|
|
69
|
+
requirement. SOC 2 and HIPAA compliant with zero data retention by default.
|
|
70
|
+
|
|
71
|
+
### Complete toolkit
|
|
72
|
+
|
|
73
|
+
One platform for every document task — parse, classify, split, extract, edit. 30+ filetypes,
|
|
74
|
+
not just PDFs. Agent-ready tooling (CLI, MCP, plugins, integrations).
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Installation
|
|
79
|
+
|
|
80
|
+
| Method | Command |
|
|
81
|
+
|---|---|
|
|
82
|
+
| Shell (macOS, Linux) | `curl -fsSL https://reducto.ai/cli \| sh` |
|
|
83
|
+
| PowerShell (Windows) | `irm https://reducto.ai/cli.ps1 \| iex` |
|
|
84
|
+
| npm | `npm install -g @reductoai/cli` |
|
|
85
|
+
| pip / pipx / uv | `pip install reducto-cli` · `pipx install reducto-cli` · `uv tool install reducto-cli` |
|
|
86
|
+
| Go | `go install github.com/reductoai/cli/cmd/reducto@latest` |
|
|
87
|
+
| Binaries | [GitHub Releases](https://github.com/reductoai/cli/releases) (darwin, linux, windows · amd64, arm64) |
|
|
88
|
+
|
|
89
|
+
The npm and PyPI packages carry the same binary as the release; they do not download anything
|
|
90
|
+
at install time. The shell installer writes to `~/.local/bin`, the PowerShell installer to
|
|
91
|
+
`%LOCALAPPDATA%\Programs\reducto` (set `REDUCTO_INSTALL_DIR` to change either); both verify
|
|
92
|
+
the release checksum.
|
|
93
|
+
|
|
94
|
+
Check the install:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
reducto version
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Authentication
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
reducto login
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
This opens a browser for a device-code sign in and saves the key to `~/.reducto/config.yaml`
|
|
107
|
+
(mode 0600). Without a browser, pass the key in: `reducto login --api-key <key>` or
|
|
108
|
+
`echo $KEY | reducto login --api-key -`.
|
|
109
|
+
|
|
110
|
+
The key is resolved in this order: `--api-key`, `$REDUCTO_API_KEY`, `~/.reducto/config.yaml`.
|
|
111
|
+
|
|
112
|
+
## Quick Start
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
# Parse a PDF into Markdown
|
|
116
|
+
reducto parse report.pdf
|
|
117
|
+
|
|
118
|
+
# Parse a folder, one output file per input
|
|
119
|
+
reducto parse ./invoices --out-dir parsed/
|
|
120
|
+
|
|
121
|
+
# Extract structured data with a JSON Schema
|
|
122
|
+
reducto extract invoice.pdf -s schema.json
|
|
123
|
+
|
|
124
|
+
# Or with a quick inline schema
|
|
125
|
+
reducto extract invoice.pdf -f vendor,total:number,due_date
|
|
126
|
+
|
|
127
|
+
# Edit a document with natural language
|
|
128
|
+
reducto edit w9.pdf -i "Name: Jane Doe. Check the Individual box." --save w9.filled.pdf
|
|
129
|
+
|
|
130
|
+
# Chain: parse once, reuse the job for extract
|
|
131
|
+
reducto parse contract.pdf -o id | reducto extract - -s terms.json
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## Commands
|
|
135
|
+
|
|
136
|
+
| Command | What it does |
|
|
137
|
+
|---|---|
|
|
138
|
+
| `parse` | Document → markdown, chunks, tables, figures |
|
|
139
|
+
| `extract` | Document → JSON that matches your schema |
|
|
140
|
+
| `split` | Find sections or sub-documents by description |
|
|
141
|
+
| `classify` | Assign one of your categories to each document |
|
|
142
|
+
| `edit` | Fill forms and change text with instructions; returns a PDF |
|
|
143
|
+
| `upload` | Upload a file and print its `reducto://` handle |
|
|
144
|
+
| `job`, `jobs`, `cancel` | Inspect, list, and cancel async jobs |
|
|
145
|
+
| `studio` | Open a job in Reducto Studio |
|
|
146
|
+
| `search`, `schema`, `docs` | Find and inspect API fields; open the docs |
|
|
147
|
+
| `login`, `version` | Sign in; print CLI, SDK and API versions |
|
|
148
|
+
|
|
149
|
+
`reducto <command> --help` lists the flags and examples for each command.
|
|
150
|
+
|
|
151
|
+
Common flags on every API command:
|
|
152
|
+
|
|
153
|
+
```
|
|
154
|
+
-o <fmt> auto | pretty | md | json | payload | id
|
|
155
|
+
-p <pages> page selection, e.g. 1-5,8
|
|
156
|
+
--save <path> write the output to a file (edit: download the PDF)
|
|
157
|
+
--out-dir <dir> with many inputs, one file per input
|
|
158
|
+
--async submit and print the job id; do not wait
|
|
159
|
+
-j <n> parallel requests for many inputs (default 4)
|
|
160
|
+
--dry-run print the request body and exit; no network call
|
|
161
|
+
-q / -v quiet / verbose
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
## Any API field
|
|
165
|
+
|
|
166
|
+
Named flags cover the common options. Everything else in the API is reachable too:
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
reducto search "merge tables" # find the field and its docs page
|
|
170
|
+
reducto schema parse formatting # types and defaults for a section
|
|
171
|
+
reducto parse doc.pdf -S formatting.merge_tables=true -S retrieval.chunking.chunk_mode=section
|
|
172
|
+
reducto parse doc.pdf -c body.json # a whole request body; flags layer on top
|
|
173
|
+
reducto parse doc.pdf --dry-run # see exactly what would be sent
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
`-S path=value` takes a dotted path and a JSON value (bare words are strings). Before anything is
|
|
177
|
+
uploaded, the body is checked against the CLI's copy of the API spec: unknown paths, values
|
|
178
|
+
outside an enum and wrong primitive types are errors with a hint, so a typo never costs a
|
|
179
|
+
request. Fields newer than the CLI's spec go through with `--force`.
|
|
180
|
+
|
|
181
|
+
## Inputs and outputs
|
|
182
|
+
|
|
183
|
+
Inputs can be local files, directories (recursed, supported types only), `https://` URLs,
|
|
184
|
+
`reducto://` upload handles, `jobid://` handles from a previous command, or `-` for stdin.
|
|
185
|
+
|
|
186
|
+
Output goes to stdout. `-o` picks the shape: `md` for text, `json` for the full response,
|
|
187
|
+
`payload` for just the result, `id` for a handle you can pipe into the next command. Status
|
|
188
|
+
lines go to stderr, so `reducto parse a.pdf > a.md` is clean.
|
|
189
|
+
|
|
190
|
+
## Supported File Types
|
|
191
|
+
|
|
192
|
+
PDF, images (PNG, JPG, TIFF, WEBP), Word (DOC, DOCX), PowerPoint (PPT, PPTX), Excel
|
|
193
|
+
(XLS, XLSX, CSV), Apple Numbers, and more. See the
|
|
194
|
+
[docs](https://docs.reducto.ai) for the full list.
|
|
195
|
+
|
|
196
|
+
## Use Cases
|
|
197
|
+
|
|
198
|
+
### Invoice and Receipt Processing
|
|
199
|
+
|
|
200
|
+
```bash
|
|
201
|
+
reducto parse ./invoices --out-dir parsed/
|
|
202
|
+
reducto extract ./invoices -s schemas/invoice.json --out-dir extracted/
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### Contract and Legal Document Review
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
reducto parse contract.pdf --agentic -S formatting.include='["change_tracking","comments"]'
|
|
209
|
+
reducto extract contract.pdf -s schemas/contract_terms.json --citations
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### Form Processing and Auto-Fill
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
reducto edit onboarding.pdf -i "Employee: Alex Chen. Start date: 2025-04-01. Select Full-time." --save onboarding.filled.pdf
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### Financial Statement Analysis
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
reducto extract quarterly_report.pdf -s schemas/financial_statement.json --deep
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
### Feeding Agents and LLM Pipelines
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
reducto parse spec.pdf --chunk section > spec.md
|
|
228
|
+
reducto parse spec.pdf -o json | jq '.result.chunks[].content'
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
## Configuration
|
|
232
|
+
|
|
233
|
+
| Setting | Source |
|
|
234
|
+
|---|---|
|
|
235
|
+
| API key | `--api-key`, `$REDUCTO_API_KEY`, `~/.reducto/config.yaml` |
|
|
236
|
+
| Base URL | `--base-url`, `$REDUCTO_BASE_URL` (default `https://platform.reducto.ai`) |
|
|
237
|
+
| Color | `--color auto\|always\|never`, `$NO_COLOR` |
|
|
238
|
+
| Telemetry headers | `DO_NOT_TRACK=1` or `REDUCTO_TELEMETRY=0` turns off the `X-Reducto-*` request headers |
|
|
239
|
+
|
|
240
|
+
The CLI only talks to the Reducto API (and to Reducto Studio during `login`). Nothing is sent
|
|
241
|
+
anywhere else.
|
|
242
|
+
|
|
243
|
+
## Upgrading from 0.1.x
|
|
244
|
+
|
|
245
|
+
Version 0.2.0 replaces the Python CLI with a single Go binary. The package names are the same
|
|
246
|
+
(`pip install reducto-cli`), the config file is the same, and `login`, `parse`, `extract`
|
|
247
|
+
and `edit` still exist. What changed:
|
|
248
|
+
|
|
249
|
+
- Output goes to stdout instead of a `<file>.parse.md` next to the input. Use `--save` for
|
|
250
|
+
one file or `--out-dir` for a folder.
|
|
251
|
+
- `parse --change-tracking/--highlights/--hyperlinks/--comments` became
|
|
252
|
+
`-S formatting.include='["change_tracking",...]'`.
|
|
253
|
+
- `edit` writes the PDF where `--save` points instead of `<file>.edited.pdf`.
|
|
254
|
+
- New: `split`, `classify`, `upload`, `job`, `jobs`, `cancel`, `studio`, `search`,
|
|
255
|
+
`schema`, `docs`, and `-S` for any API field.
|
|
256
|
+
|
|
257
|
+
## Development
|
|
258
|
+
|
|
259
|
+
```bash
|
|
260
|
+
make build # bin/reducto
|
|
261
|
+
make test # gofmt, vet, tests
|
|
262
|
+
make spec # refresh the embedded OpenAPI document (cmd/reducto/openapi.json)
|
|
263
|
+
make packages # snapshot release + npm packages + wheels, for local checks
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
Releases: push a `vX.Y.Z` tag. The `Publish` workflow builds the binaries with GoReleaser,
|
|
267
|
+
creates the GitHub release, and publishes the PyPI wheels and npm packages from those same
|
|
268
|
+
binaries. See [CHANGELOG.md](CHANGELOG.md).
|
|
269
|
+
|
|
270
|
+
## Related Projects
|
|
271
|
+
|
|
272
|
+
| Project | Description |
|
|
273
|
+
|---------|-------------|
|
|
274
|
+
| [Reducto Python SDK](https://github.com/reductoai/reducto-python-sdk) | Python client for the Reducto API (`pip install reductoai`) |
|
|
275
|
+
| [Reducto Node.js SDK](https://github.com/reductoai/reducto-node-sdk) | Node.js client for the Reducto API (`npm install reductoai`) |
|
|
276
|
+
| [Reducto Go SDK](https://github.com/reductoai/reducto-go-sdk) | Go client for the Reducto API; the CLI is built on it |
|
|
277
|
+
| [Reducto Claude Code Plugins](https://github.com/reductoai/claude-plugins) | Official Reducto plugins for Claude Code |
|
|
278
|
+
| [Reducto Studio](https://studio.reducto.ai) | No-code web interface for document processing |
|
|
279
|
+
|
|
280
|
+
## Resources
|
|
281
|
+
|
|
282
|
+
- [Reducto Documentation](https://docs.reducto.ai)
|
|
283
|
+
- [API Quickstart](https://docs.reducto.ai/quickstart)
|
|
284
|
+
- [Security & Compliance](https://docs.reducto.ai/security/policies)
|
|
285
|
+
- [PyPI](https://pypi.org/project/reducto-cli/) · [npm](https://www.npmjs.com/package/@reductoai/cli)
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
reducto_cli-0.2.0.data/scripts/reducto.exe,sha256=uXh2PZ2sPOicr06dFwiPyQy_Rz9AIo6fHm6l2HeokR4,6686208
|
|
2
|
+
reducto_cli-0.2.0.dist-info/METADATA,sha256=b_wQEuLr0NLku0k5zJBZrTPsW98qiWHENYiBwNFirfk,10895
|
|
3
|
+
reducto_cli-0.2.0.dist-info/WHEEL,sha256=lDzzaS_mdkeXnnud3WktzooaGAtyfWZFu-_lBCXN6fE,95
|
|
4
|
+
reducto_cli-0.2.0.dist-info/LICENSE,sha256=2TxPQWtxhunGRW9q2eTSBojaFKsN706Z9qyxopVsmYg,11337
|
|
5
|
+
reducto_cli-0.2.0.dist-info/RECORD,,
|