Skip to content

LinecasPy

For full documentation visit linecaspy.linecas.com.

PyPI

Browse:
Nexus
PyPi

Usage
* NOTE: --trusted-host is needed when using self-signed cert, but not with Let's Encrypt

# Variables
PYPI_INDEX=https://nexus.linecas.com/repository/pypi/simple
PYPI_REPO=https://nexus.linecas.com/repository/pypi/pypi
PYPI_TRUSTED=nexus.linecas.com


# Search
python -m pip search linecaspy --index $PYPI_REPO --trusted-host $PYPI_TRUSTED
python -m pip install linecaspy==4444 --extra-index-url $PYPI_INDEX --trusted-host $PYPI_TRUSTED
# NOTE: pip==20.2.4 works, see https://github.com/pypa/pip/issues/9139


# Install
python -m pip install linecaspy --extra-index-url $PYPI_INDEX --trusted-host $PYPI_TRUSTED
python -m pip install linecaspy==0.1.0 --extra-index-url $PYPI_INDEX --trusted-host $PYPI_TRUSTED

CLI

Command Line clients are configured as console_scripts in the setup.py for integrations with services and to aid in debugging.

argparse based clients

on-aws --help
on-gitlab --help
on-math --help
on-slack --help

click based clients

click-math

Docker

Run package via pre-built docker images

# pull
docker pull images.linecas.com/linecaspy/alpine:latest
docker pull images.linecas.com/linecaspy/debian:latest

# run
docker run -it --rm -v $(pwd):/code -v ~/.aws:/root/.aws images.linecas.com/linecaspy/alpine:latest sh
docker run -it --rm -v $(pwd):/code -v ~/.aws:/root/.aws images.linecas.com/linecaspy/debian:latest bash

# upgrade (if necessary)
python -m pip install --upgrade linecaspy