Metadata-Version: 2.1
Name: tabletexifier
Version: 0.1
Summary: Pretty formatted tables that can be exported to LaTeX
Home-page: UNKNOWN
Author: Kamuish
Author-email: andremiguel952@gmail.com
License: UNKNOWN
Description: The goal of this project is to allow an easy interface to create Tables that are not only printed nicely in the terminal, but can
        also be easily exported to LaTeX code.
        
        
        # How to Install
        ```
        pip install tabletexifier
        ```
        
        # How to use
        ```
        
        >>> from tabletexifier import Table
        >>> x = Table(['Name', 'b','c','d','e']) 
        >>> x.add_row(['first',1,4,6,7])
        >>> x.add_row(['second',1,4,6,7])
        ```
        
        By printing the table, we have
        
        ```
        >>> print(x)
        
         --------------------------
         | Name   | b | c | d | e |
         +--------+---+---+---+---+
         | first  | 1 | 4 | 6 | 7 |
         +--------+---+---+---+---+
         | second | 1 | 4 | 6 | 7 |
         --------------------------
         ```
        
         It can be converted to Latex by 
        
         ```
         >>> print(x.build_latex())
        
        \begin{table}
        \caption{\label{Tab:}}
        \begin{tabular}{|l|l|l|l|l|}
        \hline Name   & b & c & d & e \\ \hline
         first  & 1 & 4 & 6 & 7 \\ \hline
         second & 1 & 4 & 6 & 7 \\ \hline
        \end{tabular}
        \end{table}
         ```
        
        To build a table with lestt vertical and/or vertical lines: 
         ```
        >>> x.set_latex_property("lines", 'T')
         ```
        
        will update both the ASCII table and the Latex one:
        
        ```
        >>> print(x)
        
          Name   | b c d e
         --------+--------
          first  | 1 4 6 7
          second | 1 4 6 7
        
        >>> print(x.build_latex())
        \begin{table}
        \caption{\label{Tab:}}
        \begin{tabular}{l|llll}
         Name   & b & c & d & e \\ \hline
         first  & 1 & 4 & 6 & 7 \\ 
         second & 1 & 4 & 6 & 7 \\ 
        \end{tabular}
        \end{table}
        ```
        
        
         # ToDo list 
          - [ ] Add proper docs for missing functionalities (e.g. change alignement of columns or the vertical lines)
          - [ ] Write tests for the functions 	
          
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
