Skip to content

pyMetricCli is a collection of scripts and API implementations for generating and playing with metrics.

License

Notifications You must be signed in to change notification settings

NewTec-GmbH/pyMetricCli

Repository files navigation

pyMetricCli

pyMetricCli is a collection of scripts and API implementations for generating and playing with metrics.

License Repo Status CI

Overview

pyMetricCli requires an adapter file to be supplied by the user. This shall contain the credentials and result-handling logic for the seach results. Please DO NOT commit this file into any public repository as your credentials might be exposed.

An example adapter can be found here.

Deployment

deployment

More information on the deployment and architecture can be found in the doc folder.

Installation

git clone https://github.com/NewTec-GmbH/pyMetricCli.git
cd pyMetricCli
pip install .

This will also install the latest version of pyJiraCli, pyPolarionCli, and pySupersetCli in your Python environment.

Usage

pyMetricCli [-h] -a <adapter_file> [--version] [-v]

Flags

Flag Description
--verbose , -v Print full command details before executing the command. Enables logs of type INFO and WARNING.
--version Import a ticket from a JSON file.
--help , -h Show the help message and exit.

Example:

pyJiraCli --verbose --adapter_file "examples\adapter\adapter.py"

Adapter

The adapter file must contain the Adapter Class derived from the AdapterInterface, including all the methods and members defined in the interface. It is passed to the tool via the --adapter_file <adapter_file> option.

The ***_config dictionaries must be filled with the user credentials for each service. The output dictionary defines the columns of the table that will be sent to Superset, and this cannot be changed after the first time the script is ran. If you are receiving an Error 422 from Superset, a change in this dictionary may be the reason and you should contact your administrator so resolve the issue.

Examples

Check out the Examples in the corresponding folder.

Used Libraries

Used 3rd party libraries which are not part of the standard Python package:

Issues, Ideas And Bugs

If you have further ideas or you found some bugs, great! Create an issue or if you are able and willing to fix it by yourself, clone the repository and create a pull request.

License

The whole source code is published under BSD-3-Clause. Consider the different licenses of the used third party libraries too!

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed as above, without any additional terms or conditions.

About

pyMetricCli is a collection of scripts and API implementations for generating and playing with metrics.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages