Skip to content

entropia/gpn-einkauf-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GPN Einkauf Tools

Contains tools used by the GPN Einkauf Team to manage their workload.

KAUF command line tool

Located at /src/kauf is a command line utility with some neat commands to make shopping simpler.

Create a shopping list from JIRA issues by tag

kauf jira list --jira-url jira.example.com --tag "Buy Now" --hedgedoc-url "pad.example.com"

Create a shopping list from JIRA issues by keys

kauf jira list --jira-url jira.example.com --hedgedoc-url "pad.example.com" -k PROJ-111 -k PROJ-112 -k PROJ-113

Transition all JIRA issues from a shopping list where all items from that issue are ticked

kauf jira update --hedgedoc-url "pad.example.com/XXXXX" --jira-url jira.example.com --transition "Mark arrived"

Installation

Create a new virtual environment, e.g. with virtualenv .venv and activate it source .venv/bin/activate.

kauf can be installed via pipx with the following command:

pipx install .

Then call it

kauf --help

Secrets

In case your JIRA needs authentication:

kauf secrets set jira_token xxx

Or the HedgeDoc requires to be logged in (use SID cookie from your browser):

kauf secrets set hedgedoc_sid xxx

Development

Create a new virtual environment, e.g. with virtualenv .venv and activate it source .venv/bin/activate.

Dependencies

To install the dependencies locally run

pip install .

Running locally

To avoid having to install the command line tool to test it locally you can run it as well with

python src/kauf

Verbose mode

Use the --verbose flag for verbose output.

kauf --verbose ...

Linting

Run ruff format . and ruff check . --fix for local linting.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages