Skip to main content

Git textconv tool for excel

Project description

py_xlsx_textconv

Excel to text covert tool for Git. This is a python port of git-xlsx-textconv

When git diff or git log -p, extract cell values in excel and format:

[SheetName1][TAB][A1][TAB][B1][TAB][C1][TAB]...
[SheetName1][TAB][A2][TAB][B2][TAB][C2][TAB]...

and compare text formats.

Example: Excel
excel

git diff
git diff

And experimental VBA support. (v0.0.4)

This does not compare

  • Style
  • Auto Shapes
  • ... and so on

Install

pip install py-xlsx-textconv

Configuration

If ~/.config/git/attributes (Windows: %HOMEPATH%.config\git\attributes) does not exist, you need to creat and edit it.

.xlsx diff=xlsx
.xlsm diff=xlsx

Or if you prefered per project attribute file, create .gitattributes file and edit it above

Append to ~/.gitconfig (Windows: %HOMEPATH%.gitconfig).

[diff "xlsx"]
    binary = true
    textconv = py-xlsx-textconv

Development

Install pdm.

# install dependencies
pdm sync -d

# test
pdm run test

LICENSE

MIT

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

py-xlsx-textconv-0.0.5.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_xlsx_textconv-0.0.5-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file py-xlsx-textconv-0.0.5.tar.gz.

File metadata

  • Download URL: py-xlsx-textconv-0.0.5.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for py-xlsx-textconv-0.0.5.tar.gz
Algorithm Hash digest
SHA256 32b2128be2a1a3da131e48f0add2b801c3db45161ed9a767e6000548d1c48b2e
MD5 c111f177061a38d511d397ca28ac8db7
BLAKE2b-256 f1cc9e6db8dd05b63311d173767b35a2d914cbabee2094d700b979da0fcea2a8

See more details on using hashes here.

File details

Details for the file py_xlsx_textconv-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for py_xlsx_textconv-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2a5acf361608805ffbe5ab3976edbc50de65fc3970a172c7583058993e49b858
MD5 d82307afca2c55361c343109a5fbb7d5
BLAKE2b-256 cd1c66e490587f36a7aae917421b4f332a354869c9f1b509cb51701f43ed0744

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page