Skip to content
This repository has been archived by the owner on Mar 13, 2020. It is now read-only.

CLI for boxmetrics application [Deprecated] - Replaced by boxmetrics-cli

License

Notifications You must be signed in to change notification settings

boxmetrics/boxmetrics-cli-py

Repository files navigation

CLI for Boxmetrics Application

This repo is not maintain anymore and had been replaced by new boxmetrics cli write in go 👉 https://github.com/boxmetrics/boxmetrics-cli

Installation


# install with pip

$ pip install -r requirements.txt

$ pip install setup.py

Development

This project includes a number of helpers in the Makefile to streamline common development tasks.

Linter :

  • pylint
  • mypy

Code formatter :

  • black

Environment Setup

The following demonstrates setting up and working with a development environment:

### create a virtualenv for development

$ make virtualenv

$ source env/bin/activate


### run boxmetrics cli application

$ boxmetrics --help


### run pytest / coverage

$ make test

Releasing to PyPi

Before releasing to PyPi, you must configure your login credentials:

~/.pypirc:

[pypi]
username = YOUR_USERNAME
password = YOUR_PASSWORD

Then use the included helper function via the Makefile:

### build binaries files

$ make dist

### upload to Pypi

$ make dist-upload

Deployments

Docker

Included is a basic Dockerfile for building and distributing Boxmetrics CLI, and can be built with the included make helper:


### build docker image

$ make docker

$ docker run -it boxmetrics --help

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •