Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Commit

Permalink
#15: "tabulate" integration
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Jun 11, 2020
1 parent 061fb1b commit 5024d84
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ pbr==5.4.5
jinja2>=2.11
pyyaml>=5.3.1
python-dotenv==0.13.0
tabulate==0.8.7
10 changes: 10 additions & 0 deletions src/rkd/contract.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@


from tabulate import tabulate
from abc import abstractmethod, ABC as AbstractClass
from typing import Dict, List, Union, Optional
from argparse import ArgumentParser
Expand Down Expand Up @@ -241,4 +242,13 @@ def io(self):
def __str__(self):
return 'Task<' + self.get_full_name() + '>'

@staticmethod
def table(header: list, body: list, tablefmt: str= "simple",
floatfmt: str = 'g',
numalign: str = "decimal",
stralign:str = "left",
missingval: str = '',
showindex: str = "default",
disable_numparse: bool = False,
colalign: str = None):

0 comments on commit 5024d84

Please sign in to comment.