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.4.tar.gz (20.2 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.4-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py-xlsx-textconv-0.0.4.tar.gz
  • Upload date:
  • Size: 20.2 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.4.tar.gz
Algorithm Hash digest
SHA256 49ec538a81efd571a4b9dbb286e23cf862bb620da9fb7aa7a3bcb9b3ef51a2eb
MD5 6f675a5e89c9d6afc3aa1a2b7f35f2b0
BLAKE2b-256 d74fe590487fc7ad1ce9087ff774ae8c14f922f74e665db50c6a57aa625a0195

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_xlsx_textconv-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5a788cad49476c598b0f2681d9994cc9b1a72f997e3e904a6ab2288564ba2781
MD5 2027e11c33824f985feb380caa999fe6
BLAKE2b-256 394f413ce6547ed56a9203ababd0d5f08ee16cf85c14948e1197160d2081309a

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