Skip to main content

A simple tool for generating git graphs

Project description

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.

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

gitdraw-1.0.6.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

gitdraw-1.0.6-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file gitdraw-1.0.6.tar.gz.

File metadata

  • Download URL: gitdraw-1.0.6.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for gitdraw-1.0.6.tar.gz
Algorithm Hash digest
SHA256 9bd77cd1183c047f824cef3d29a2127d6db470d06bf2bf0f47e225bdcda3d147
MD5 69eabac91ae4f16038e05ae67e800300
BLAKE2b-256 0398076dfa4366508ea33816b80b40cd0b651e58db0a4d60bda488a2758fdaf9

See more details on using hashes here.

File details

Details for the file gitdraw-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: gitdraw-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for gitdraw-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 33e8e41bce7f04a9c9ee14a1fc628c29b973c7b81d9b6dc0757fa4e6db5dcca1
MD5 d87a07b2d14075db8493d4574f169fd6
BLAKE2b-256 cadb4578781990bca267dcbc39e75b6aeac2b5d7d643d7dbd8e64b3dd96aa2e2

See more details on using hashes here.

Supported by

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