Skip to main content

Bitbucket workflows in your terminal

Project description

Build Status

ket

ket is a command-line tool, that makes interaction with Bitbucket repositories easier.

You probably know hub for GitHub and/or lab for GitLab. Well, ket is trying to accomplish the same goal, but for Bitbucket.

ket is currently only capable of managing pull requests. More to come!

Installation

$ pip install ket

Configuration

In order to interact with a Bitbucket repository, ket needs to authenticate to Bitbucket with a username and an API key. The username is usually your Bitbucket username. For the API key you should use the so-called app password. More on app passwords, and how to create them here.

Configuration file

ket tries to read its configuration from the file $HOME/.config/ket, which must be formatted as follows:

[bitbucket]
username = Ch00k
api_key = <app_password>

Running

$ ket
Usage: ket [OPTIONS] COMMAND [ARGS]...

  Bitbucket in your command-line

Options:
  --help  Show this message and exit.

Commands:
  pull-request  Pull request operations
$ ket pull-request
Usage: ket pull-request [OPTIONS] COMMAND [ARGS]...

  Pull request operations

Options:
  --help  Show this message and exit.

Commands:
  approve    Approve a pull request
  checkout   Checkout the branch of a pull request
  close      Close (decline) a pull request
  create     Create a pull request
  diff       Show the diff of a pull request
  list       List pull requests
  merge      Merge (accept) a pull request
  show       Show pull request details
  unapprove  Unapprove a pull request

Tab completion

To enable tab completion, execute

eval "$(_KET_COMPLETE=source ket)"

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

ket-0.0.4.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file ket-0.0.4.tar.gz.

File metadata

  • Download URL: ket-0.0.4.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for ket-0.0.4.tar.gz
Algorithm Hash digest
SHA256 4f56732b83ac15d991b29bc4ce70d5a5a58614bf0bd56dd83427cb4bc38a08a4
MD5 9765422db847f033781b9697f4c98b1b
BLAKE2b-256 6561996c5b49f316f70f306ac269b5fc90102025ed3d0a87e0863735289e6fd6

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