semvec/pypi-packages huggingface dataset:
bb-cli 0.6.0
Bitbucket's command line tool
License: Unlicense
Requires Python: >=3.9,<4.0

# bb

Bitbucket's command line tool

> It's like `gh` ([GitHub's CLI](https://github.com/cli/cli)) but for BitBucket

This tools is very basic but it does all what I need at the moment (though I am happy to accept PRs)

![bb screenshot](screenshot.png)

## Installation

```sh
pip3 install bb-cli
```

## Auth

At the moment the only way it works is by `App passwords` auth: [https://bitbucket.org/account/settings/app-passwords/](https://bitbucket.org/account/settings/app-passwords/)

> For this you need to have 2FA enabled

At first launch, `bb` will ask for user and password that you generated at bitbucket and write to `~/.config/bb/conf.py`. That's plain python file and you can use it to store information securely:

```python
import os

pswd = os.popen("pass show ep/bb-cli | head -n 1").read().strip()
user = os.popen("pass show ep/bb-cli | grep username").read().strip().split(" ")[-1]

AUTH = (user, pswd)
```

## Usage

```sh
> bb pr --help
Usage: bb pr [OPTIONS] COMMAND [ARGS]...

  Manage pull requests

Options:
  --help  Show this message and exit.

Commands:
  approve          Approve PR by ID
  checkout         Checkout PR by ID
  comments         View comments for PR by ID
  commits          View commits of PR by ID
  create           Create new PR
  decline          Decline PR by ID
  diff             Show diff by PR ID
  list             List all PRs
  merge            Merge PR by ID
  request-changes  Request changes for PR by ID
  status           Shows more detailed information about PRs (Build,...
```

## Example

```sh
git checkout -b test-bb
echo Changes > file.txt
git add file.txt
git commit -m 'New very important patch'

# push current branch to remote and create PR
bb pr create

bb pr status

bb pr merge 1
```
gr-cli 0.4.0
Gerrit's command line tool
License: Unlicense
Requires Python: >=3.9,<4.0

# gr

Gerrit's command line tool

> It's like `gh` ([GitHub's CLI](https://github.com/cli/cli)) but for Gerrit

![gr screenshot](screenshot.png)

## Installation

```sh
pip3 install gr-cli
```

## Auth

Authentication done by `HTTP credentials`: [https://gerrit.cloudlinux.com/settings/#HTTPCredentials](https://gerrit.cloudlinux.com/settings/#HTTPCredentials)

At first launch, `gr` will ask for username and password that you generated at gerrit and write to `~/.config/gr/conf.py`. That's plain python file and you can use it however you want, e.g.:

```python
import os

pswd = os.popen("pass show cl/gr-cli | head -n 1").read().strip()
user = os.popen("pass show cl/gr-cli | grep username").read().strip().split(" ")[-1]

AUTH = (user, pswd)
```

## Usage

```sh
> gr ch --help
Usage: main.py ch [OPTIONS] COMMAND [ARGS]...

  Manage pull requests

Options:
  --help  Show this message and exit.

Commands:
  abandon        Abandon change by ID
  add-reviewers  Abandon change by ID
  checkout       Checkout change to new branch
  comment        Comment change by ID
  comments       List change comments by ID
  create         Create change from current branch
  diff           Show diff by change ID
  list           List all changes
  merge          Submit change by ID
  rebase         Rebase change to target branch by ID
  review         Review change by ID
  status         List all CHanges
  view           View change details
```

## Example

```sh
git checkout -b test-gr
echo Changes > file.txt
git add file.txt
git commit -m 'New very important patch'

# push current branch to remote and create PR
gr ch create

gr ch list

gr ch merge [change-id]
```