Skip to main content

Get pr stats from stash (bitbucket server)

Project description

Code style: black Travis (.com) branch PyPI version PyPI pyversions

stash-pr-stats

Simple wrapper around stashy to pull stats about pull requests for selected users in a project in bitbucket server (aka stash).

Prints PR stats summary (open + merged total) and generates an svg chart with monthly stats for selected users.

install

Until #2 is resolved, install directly from github as follows:

pip install git+https://github.com/noahp/stash-pr-stats

example usage

# see help for more options
stash-pr-stats --help

# running for a single user
stash-pr-stats --accesstoken <token> --searchuser noahp --url="https://mystashserver.com"
+-------------+--------+----------+
| user        |   open |   merged |
+=============+========+==========+
| noahp       |      0 |      123 |
+-------------+--------+----------+
Success! see output file:///home/noah/dev/github/stash-pr-stats/pr-stats.svg

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

stash_pr_stats-0.0.2-py2.py3-none-any.whl (5.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file stash_pr_stats-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: stash_pr_stats-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/38.4.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.15rc1

File hashes

Hashes for stash_pr_stats-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d6f9db2ce7c8b82d0bcc1447d98140b4159d3ca4ba5963bd086d6f93e9d19335
MD5 0395b9185367de172464e85fdd2c62fc
BLAKE2b-256 cb9d95a7b43eea415245b605b5582316d401d6d24914ec2f68ae3595ea104102

See more details on using hashes here.

Supported by

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