LlamaSheets CLI
A command-line tool for parsing spreadsheet files using LlamaSheets.
Supports .xls and .xlsx files, with options for advanced extraction and metadata generation.
Installation
pip install llamasheets-cli
Or, with uv, you can do directly:
uv tool install llamasheets-cli
Usage
1. Authenticate
Before using the CLI, you must authenticate with your LlamaCloud API key.
sheets auth --token <YOUR_API_KEY>
Or, for more secure input:
sheets auth --stdin
You will be prompted to enter your API key securely.
If an API key is already configured, you will be warned and asked if you want to overwrite it.
2. Parse a Spreadsheet
Once authenticated, you can parse a spreadsheet:
sheets parse --file path/to/your.xlsx
Options
--file,-f(required): Path to the.xlsor.xlsxfile to process.--sheet,-s: Name of the sheet(s) to process. Can be used multiple times. Defaults to all sheets.--include-hidden-cells/--no-include-hidden-cells: Include hidden cells in extraction. Default:--include-hidden-cells--extraction-range: A1 notation of the range to extract (e.g.,A1:D20). Default: entire sheet.--generate-additional-metadata/--no-generate-additional-metadata: Generate extra metadata (title, description) for each region. Default:--generate-additional-metadata--use-experimental-processing/--no-use-experimental-processing: Enable experimental processing. Default:--no-use-experimental-processing--flatten-hierarchical-tables/--no-flatten-hierarchical-tables: Flatten hierarchical tables. Default:--no-flatten-hierarchical-tables--table-merge-sensitivity [strong|weak]: How aggressively to merge similar regions. Default:strong--save-csv/--no-save-csv: Save results as CSV files in theparsed/folder. Default:--save-csv
Example
sheets parse -f data.xlsx -s Sheet1 -s Sheet2 --extraction-range A1:D20 --no-save-csv
Output
- Results are displayed in your terminal with markdown formatting.
- If
--save-csvis enabled, CSV files are saved in theparsed/directory, named after the extracted region titles.
License and Contributions
This project is distributed under the MIT License.
Contributions are welcome and encouraged, and should follow the guidelines in CONTRIBUTING.md.
Metadata
Release files for llamasheets-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llamasheets_cli-0.1.0.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llamasheets_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.7 kB
Release files / llamasheets_cli-0.1.0.tar.gz
| Download URL | llamasheets_cli-0.1.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86817612d55022728decb8def98d69fb847cf6535f9f307ddc417016abea1044
|
|
BLAKE2b-256 checksum How to use checksums |
9d840f82f56f0d257eea7d42e348052e09829422ceaa4aaad255637de1d523ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / llamasheets_cli-0.1.0-py3-none-any.whl
| Download URL | llamasheets_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d5f4c4b04fb35801f9acfc00ff3600af6314bee2423c7a8bbb65999c9341adb
|
|
BLAKE2b-256 checksum How to use checksums |
b2e867ec99d8e155f18ca2e08ec7682ec340763ddd8076ca11775eb5a54a3b54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|