Socket
Socket
Sign inDemoInstall

exex-cli

Package Overview
Dependencies
2
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    exex-cli

Command-line interface for extracting data from Excel documents.


Maintainers
1

Readme

exex-cli

CLI for extracting data from Excel documents

PyPI version test codecov


Installation

pip install exex-cli

Usage

Synopsis

python -m exex_cli extract FILENAME --sheet SHEET --range RANGE --format FORMAT 
ParameterTypeDefaultDescription
FILENAME(required) stringPath to .xlsx file.
[SHEET](optional) string or int0 (first sheet)Name or index of sheet
[RANGE](optional) rangeall (all values)Range to get values from
[FORMAT](optional) stringtexttext, table, json, csv

Type of ranges

TypeSyntaxExample
All valuesallall
Cell by name[COLUMN_NAME][ROW_NUMBER]A1
Cell by index[COLUMN_INDEX],[ROW_INDEX]1,1
Cell range[FROM]:[TO]A1:A3
Column[COLUMN_NAME]A
Column range[FROM]:[TO]A:C
Row[ROW_NUMBER]1
Row range[FROM]:[TO]1:3

Examples

Get all values as JSON

python -m exex_cli extract sample.xlsx --format json

Get cell range as CSV

python -m exex_cli extract sample.xlsx --range A1:A3 --format csv

Development

Setup

poetry install

Tests (local Python version)

poetry run pytest

Code formatting (black)

poetry run black .

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc