Extract data from Excel documents.
Project description
exex
Extract data from Excel documents
Features
- Extract data from Excel (xlsx)
- Format result as JSON, JSONL, XML
Installation
pip install exex
Usage
from exex import extract
ext = extract.Extractor('sample.xlsx')
# Sheets
ext.sheetnames # (array) sheet names
ext.sheets.active # (sheet) active sheet
ext.sheets[0] # (sheet) first sheet
ext.sheets["prices"] # (sheet) sheet by name
# Cells
sheet["A1"] # (value) single cell by name
sheet.cell(row=1, column=1) # (value) single cell by row/column
sheet["A1":"B2"] # (array) range of cells
sheet.all() # (array) all cells
sheet.cells(["A1", "B2"]) # (array) multiple cells by name
# Rows
sheet[5] # (array) single row
sheet[5:10] # (array) range of rows
# Columns
sheet["C"] # (array) single column
sheet["A:C"] # (array) range of columns
Development
Tests (local Python version)
poetry run pytest
Tests (all Python versions defined in tox.ini
)
poetry run tox
Code formatting (black)
poetry run black .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
exex-0.1.4.tar.gz
(3.2 kB
view details)
Built Distribution
exex-0.1.4-py3-none-any.whl
(3.1 kB
view details)
File details
Details for the file exex-0.1.4.tar.gz
.
File metadata
- Download URL: exex-0.1.4.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.8.0 Linux/4.15.0-66-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3869bd60f26bc4b2578d976086783ee06b85e7e91d04173a5ebae833c060d9bc |
|
MD5 | 88dac93755de6b0b5e76420032056745 |
|
BLAKE2b-256 | ea6376c2d640022303279592674a4e71646c501f915c917740f6820cae34238e |
File details
Details for the file exex-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: exex-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.8.0 Linux/4.15.0-66-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e6bb0d539fdacb47eee4e1f8d2fecfa207638c243da24f3998adb50bd64c79e |
|
MD5 | f43e41bf8fefb0ec5643198de1fca7d6 |
|
BLAKE2b-256 | 121b9ff15d417f1ce0457b2526029ab231bd9c0d61456fe854f93587080aba6a |