Skip to main content

Gitdraw

A simple tool for generating git graphs from a set of git commands

Getting Started

Installing

Either clone directly from the repo or install using pip

pip install gitdraw

Running the tests

The project tests are run with pytest automatically in pipelines. To run them manually find the pytest script command in .gitlab-ci.yml and run it from the root of the repository.

pytest:
  stage: Test
  script:
  - <this command>

Running the tool

The tool is run using python3.7. For help text use:

python3.7 -m gitdraw.__main__ -h

It takes a single input file containing a list of git commands and outputs a SVG representation

python3.7 -m gitdraw.__main__ -i infile

The tool currently supports the following commands:

  • git checkout <branch>
  • git commit
  • git branch <branch>
  • git merge <branch>

Built With

See requirements.txt for the full details of external packages. A number are used just for testing so won't be required if you don't intend to run the tests

Examples

There are a number of autogenerated examples that can be viewed here along with their source text.

Metadata

Release files for gitdraw 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gitdraw 1.0.6
File Size Uploaded
gitdraw-1.0.6.tar.gz 10.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gitdraw 1.0.6
File Interpreter ABI Platform
gitdraw-1.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 22.2 kB

Release files / gitdraw-1.0.6.tar.gz

Download URL gitdraw-1.0.6.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9bd77cd1183c047f824cef3d29a2127d6db470d06bf2bf0f47e225bdcda3d147
BLAKE2b-256 checksum
How to use checksums
0398076dfa4366508ea33816b80b40cd0b651e58db0a4d60bda488a2758fdaf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release files / gitdraw-1.0.6-py3-none-any.whl

Download URL gitdraw-1.0.6-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33e8e41bce7f04a9c9ee14a1fc628c29b973c7b81d9b6dc0757fa4e6db5dcca1
BLAKE2b-256 checksum
How to use checksums
cadb4578781990bca267dcbc39e75b6aeac2b5d7d643d7dbd8e64b3dd96aa2e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page