Convert Excel spreadsheets into TSV, CSV, Json or Yaml format.
Project description
Excelsior
Excelsior is a tool to convert Excel spreadsheets into TSV, CSV, Json or Yaml. Reads all sheets of the spreasheets.
Uses xlrd for reading the Excel files, and thus supports the new Open Office XML file format (.xlsx extension).
Supported output formats are tab separated values (.tsv), comma separated values (.csv), Yaml and JSON.
Installation
$ pip install excelsior
Usage
By default outputs into standard output, and separate sheets are separated by a form feed and new line characters (\x0c\n), followed by a header line of the form # Sheet name #\n.
When writing onto files with the -w option, no such characters or headers are written.
Output TSV:
$ excelsior -f tsv excel.xlsx
Convert into TSV and write to files:
$ excelsior -w -f tsv excel.xlsx another-excel.xls
This will save the output into <filename>.tsv, if the spreasheet has only one sheet, or <filename>-<sheet>.tsv if it has multiple sheets.
You can also pipe in the filenames (separated by newlines):
$ echo "ds140-bauxi.xlsx\nds140-alumi.xlsx" | excelsior -w -f tsv
ds140-bauxi-Bauxite.tsv: written
ds140-bauxi-Alumina.tsv: written
ds140-alumi.tsv: written
Show help:
$ excelsior -h
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file excelsior-0.0.4.tar.gz
.
File metadata
- Download URL: excelsior-0.0.4.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6bc0e8ad3c3b441402d7d30612d2c332a1e09c37772ab2051142175069d7fd9 |
|
MD5 | cbd5ef51be225975ba40ea5696389885 |
|
BLAKE2b-256 | fa73812a3b405bacdd815278538911c53987f516217c3e797df68568a81e54bf |