• Stars
    star
    530
  • Rank 83,660 (Top 2 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 7 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Git extension: Makes git-diff work for VBA in Excel workbooks (xls* file types)

Git XL - A Git Extension for Excel

(Note: Git XL was previously called "git-xltrail")

Git XL is an open-source Git command line extension for managing Excel workbook files in Git.

The extension makes git diff work for Excel VBA (xls, xlt, xla, xlam, xlsx, xlsm, xlsb, xltx, xltm). Git XL does not require Excel as it works directly on the workbook file.

With Git XL installed, Git can diff Excel VBA just like any other source code file.

It is written in Python, with pre-compiled binaries available for Windows.

Installation instructions and docs are available at https://www.xltrail.com/git-xl.

Getting Started

Installation

You can install the Git XL client on Windows, using the pre-compiled binary installer.

This repository can also be built-from-source using Python and PyInstaller.

Git XL requires a global installation once per-machine. This can be done by running:

C:\Developer>git xl install

Alternatively, initialise Git XL locally (per repository), using the --local option, inside the root folder of your repositoryโ€™s local working copy:

C:\Developer>git xl install --local

Usage

Diff workbooks

Get meaningful git diff output when comparing Excel workbook files containing VBA code.

C:\Developer>git diff dev..master
diff --xl a/Book1.xlsb b/Book1.xlsb
--- a/Book1.xlsb/VBA/Module/Module1
+++ b/Book1.xlsb/VBA/Module/Module1
@@ -1,4 +1,4 @@
 Option Explicit
 Public Function Version() As String
-   Version = "v1.0"
+   Version = "v1.1"
 End Function

Docs

Docs are available at https://www.xltrail.com/git-xl.

Contributing

Please open a new issue to report bugs or create a pull request to send patches.

More Repositories

1

xlwings

xlwings is a Python library that makes it easy to call Python from Excel and vice versa. It works with Excel on Windows and macOS as well as with Google Sheets and Excel on the web.
Python
2,929
star
2

jsondiff

Diff JSON and JSON-like structures in Python
Python
684
star
3

excel-requests

Excel HTTP Requests for Humans
C#
58
star
4

simulation-demo

Rapid web app prototyping with xlwings.
Python
31
star
5

xlwings-demo

A few xlwings use cases for demonstration purposes
Jupyter Notebook
22
star
6

xlwings-server-helloworld-fastapi

Demo repo for the xlwings Server
TypeScript
17
star
7

talks

Material from presentations
Jupyter Notebook
13
star
8

xlwings-server-auth-google

xlwings PRO allows you to easily connect Google Sheets to a FastAPI backend, including authentication and optional authorization. Call Python functions via buttons or extensions--no GCP cloud console project required!
Python
13
star
9

git-xltrail-addin

git-xltrail-addin is a BSD-licensed Excel Addin that integrates Git with Excel and vice versa. It works with Microsoft Excel on Windows.
C#
12
star
10

xlwings-factsheet-demo

This demo shows how xlwings Reports can automate the creation of pixel-perfect factsheets based on an Excel template.
Python
11
star
11

xlwings-server-github

Python
10
star
12

xlwings-officejs-quickstart

Python
8
star
13

officejs-helloworld

HTML
7
star
14

xlwings-server

Write modern Excel add-ins in Python without the pain. It support Excel on Windows, macOS, and the Web and Google Sheets. No local Python installation needed!
Python
6
star
15

cryptoarbitrage

Excel workbook with Python xlwings powered backend to detect arbitrage opportunities in the cryptocurrency markets
Python
5
star
16

xlwings-automated-testing

Python
5
star
17

xlwings-eikon

Demo: xlwings and Refinitiv Eikon
Python
5
star
18

xlwings-server-sql

xlwings allows you to connect Google Sheets to SQL databases such as SQLite, PostgreSQL, MySQL, SQL Server, and Oracle.
Python
4
star
19

xlwings-server-plots

Python
4
star
20

dde_rtd

An Excel RTD server for connecting to DDE data sources
C#
3
star
21

ib-cli

A command-line interface for the Interactive Brokers API
Python
3
star
22

git-xl-examples

Example workbooks for git-xltrail
2
star
23

boilerplate

Python
2
star
24

cimport

Build and import Python C modules on the fly
Python
2
star
25

excel-automated-testing

Python
2
star
26

timegraph

A JavaScript graphing component with a time-based X-axis
JavaScript
2
star
27

socket.io-gateway

JavaScript
1
star
28

SSRB_Best_Practice_Examples

http://www.ssrb.org/examples
1
star
29

static-excel-test

Python
1
star
30

thalesians-london-talk

https://www.meetup.com/thalesians/events/254407984/
Jupyter Notebook
1
star
31

python-in-excel-samples

1
star
32

release-excel-workbooks

1
star
33

xlwings-database-demo

Demo app on how to use SQLAlchemy and Logging within the context of an xlwings app
Python
1
star
34

xlwings-server-digitaloceanfunctions

Python
1
star