This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3 | |
WORKDIR /usr/src/latency-sensor | |
# COPY requirements.txt ./ | |
# RUN pip install --no-cache-dir -r requirements.txt | |
COPY . . | |
ENTRYPOINT [ "bash", "./entrypoint.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
from itertools import starmap | |
def format_table(table, delim='|'): | |
""" | |
:param list table: 2D list, with inner lists of strings as rows. | |
:param str delim: Used to define table cell borders. | |
:return list: Containing formatted string elements representing each row, | |
ready to be written to a file. |