Skip to main content

command line interface tool for Pagure pull requests

Project description

Cranc is command line interface tool to interact with Pagure


What Cranc does

At the moment cranc lists pull requests and issues of a project. With this commands:

cranc get prs

  • [author] optional
  • [status] optional
  • [assignee] optional

cranc get issues

  • [author] optional
  • [status] optional
  • [assignee] optional

cranc merge pr [request_id]

cranc create pr [title] [repo] [brach_from] [branch_to]

  • [initial_comment] is optional

About its name

Since Pagure is a hermit crab, cranc is crab in catalan.


Create the virtual environment:

virtualenv3 ~/venvs/cranc-env

source ~/venvs/cranc-env/bin/activate

Retrieve the sources:

git clone

cd cranc

Install dependencies:

pip install -r requirements.txt

Run the setup file. This creates a link in the venv directory pointing to the cranc directory:

python install

Run the app:


Usage: cranc [OPTIONS] COMMAND [ARGS]...

  -a, --api-key API-KEY    your API key for
  -r, --repo-url TEXT      Repo url
  -i, --instance-url TEXT  Pagure instance url
  -c, --config-file PATH
  --help                   Show this message and exit.



Or run the command:

cranc get prs

cranc merge pr --request_id [request_id]

When API TOKEN is needed, cranc will prompt you to insert it. It will ve stored in a .config file. Cranc will also try to guess the repo url and instance url, and prompt you to confirm/change.


To run tests type:


Or to run only 1 test type:

pytest tests/[name_of_the_test]

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cranc, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size cranc-1.0.1-py2.py3-none-any.whl (19.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page