Skip to main content

Git Portfolio

PyPI Python Version License

Read the documentation at https://git-portfolio.readthedocs.io/ Tests Codecov

pre-commit Black

Features

  • Configure multiple working repositories.

  • Batch git commands with subcommands: add, branch, checkout, commit, diff, fetch, init, merge, mv, pull, push, rebase, reset, rm, show, switch, status and tag.

  • Batch API calls on GitHub: create/close/reopen issues, create/close/reopen/merge pull requests and delete branches by name.

  • Batch Poetry commands such as: add, version patch, install or update.

Requirements

  • Create an auth token for GitHub, with the repo privileges enabled by clicking on Generate new token. You will be asked to select scopes for the token. Which scopes you choose will determine what information and actions you will be able to perform against the API. You should be careful with the ones prefixed with write:, delete: and admin: as these might be quite destructive. You can find description of each scope in docs here.

Important: safeguard your token (once created you won’t be able to see it again).

  • Install git (optional) - this is needed for all git commands. For colored outputs please use the configuration:

$ git config --global color.ui always

Installation

You can install Git Portfolio via pip from PyPI:

$ pip install git-portfolio

Basic usage

  1. Create initial configuration with:

$ gitp config init
  1. Execute all the commands you want. Eg.:

$ gitp issues create  # create same issue for all projects
$ gitp checkout -b new-branch  # checks out new branch new-branch in all projects
$ gitp poetry version minor  # bumps minor version of all projects that have pyproject.toml version

Note: by convention GitHub commands are always the resource name and action: eg. branches delete, issues create and prs merge (for pull requests). This avoid conflicts with batch git commands, as in gitp branch (executes git command) and gitp branches delete (execute operations using GitHub API).

Complete instructions can be found at git-portfolio.readthedocs.io.

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the MIT license, Git Portfolio is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Credits

This project was generated from @cjolowicz’s Hypermodern Python Cookiecutter template.

Release files for git-portfolio 1.1.1

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

Source distribution (sdist)

Source distribution for git-portfolio 1.1.1
File Size Uploaded
git_portfolio-1.1.1.tar.gz 18.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for git-portfolio 1.1.1
File Interpreter ABI Platform
git_portfolio-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 44.7 kB

Release files / git_portfolio-1.1.1.tar.gz

Download URL git_portfolio-1.1.1.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6e5f5096ea3af28ee9fd3b37c142d57148993e7fa14649cddd16584f0143ba36
BLAKE2b-256 checksum
How to use checksums
444f474c69116e17ad8eda2e96764d2ebb90b2a759614395168c8c7315e0a9a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / git_portfolio-1.1.1-py3-none-any.whl

Download URL git_portfolio-1.1.1-py3-none-any.whl
Size 26.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed023ae8b03ec89a737b8e11914392e25ba6506f816fa032c77b527c2c60583a
BLAKE2b-256 checksum
How to use checksums
557e0d073cfbd4442483bc4c0e5a13d20efae3cabcc9353b7e1a236f087e1325
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.20.0

2 release files

0.18.0

2 release files

0.17.3

2 release files

0.17.2

2 release files

0.17.1

2 release files

0.17.0

2 release files

0.16.0

2 release files

0.15.3

2 release files

0.15.2

2 release files

0.15.1

2 release files

0.15.0

2 release files

0.14.1

2 release files

0.14.0

2 release files

0.13.1

2 release files

0.13.0

2 release files

0.12.0

2 release files

0.11.0

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

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