semvec/pypi-packages huggingface dataset:
yaqd-becker-hickl 2022.6.0
yaq daemons for Becker-Hickl products.
Requires Python: >=3.7

# yaqd-becker-hickl

[![PyPI](https://img.shields.io/pypi/v/yaqd-becker-hickl)](https://pypi.org/project/yaqd-becker-hickl)
[![Conda](https://img.shields.io/conda/vn/conda-forge/yaqd-becker-hickl)](https://anaconda.org/conda-forge/yaqd-becker-hickl)
[![yaq](https://img.shields.io/badge/framework-yaq-orange)](https://yaq.fyi/)
[![black](https://img.shields.io/badge/code--style-black-black)](https://black.readthedocs.io/)
[![ver](https://img.shields.io/badge/calver-YYYY.M.MICRO-blue)](https://calver.org/)
[![log](https://img.shields.io/badge/change-log-informational)](https://github.com/yaq-project/yaqd-becker-hickl/blob/main/CHANGELOG.md)

yaq daemons for Becker-Hickl products.

This package contains the following daemon(s):

- https://yaq.fyi/daemons/becker-hickl-spc130

## maintainers

[Dan Kohler](https://github.com/ddkohler)
latextable-lite 0.0.4
Create simple Latex tables
Requires Python: >=3.6

# latextable-lite

Latextable-lite is a Python package that can create simple Latex tables. It is heavily based on [Latextable](https://github.com/JAEarly/latextable), but removes latextable's dependency on [Texttable](https://github.com/foutaise/texttable).

## Features
- Draws a table in a Latex format using tabularx formatting.
- The output is correctly indented for directly copying into Latex.
- Supports multiple header rows and multi-column header rows.

![advanced example](https://github.com/huisyy/latextable-lite/blob/main/images/advanced_example.png?raw=true)

## Installation
```
pip install latextable-lite
```
## Usage

The single function `latextable_lite.utils.draw_latex` returns a formatted Latex string based on the provided table.
Aside from `rows`, all arguments are optional.
```
def draw_latex(rows, 
            num_headers=1, 
            multi_column_size=None, 
            caption=None, 
            caption_above=False,
            label=None,
            c_line=False):
    """
    :param rows: 2d list containing all entries of the table in row-first format
    :param num_headers: Number of header rows
    :param multi_column_size: List describing how many columns correspond to each entry in the first header row
    :param caption: A string that adds a caption to the Latex formatting
    :param caption_above: Boolean indicating if caption is above the table
    :param label: A string that adds a referencing label to the Latex formatting
    :param c_line: Boolean; if true, cmidrules are drawn for every other row
    
    :return: The formatted Latex table returned as a single string.
    """
```
## Examples
A basic example is given below. For more see the examples directory.

Code:

```
from latextable_lite import utils

if __name__ == "__main__":
    rows = [["Name", "Age", "Sex", "Nickname", "Occupation", "Marital Status"],
            ["Xavier", "32", "M", "Xav'", "Doctor", "Married"],
            ["Baptiste", "1", "F", "Baby", "Baby", "Single"],
            ["Louise", "28", "M", "Lou/Loue", "Engineer", "Single"]]
    print(utils.draw_latex(rows))
```

Output:

```
\begin{table}[ht]
        \centering
        \renewcommand{\arraystretch}{1.5}
        \begin{tabularx}{\textwidth}{lXXXXXX}
                \toprule
                        Name & Age & Sex & Nickname & Occupation & Marital Status\\
                        \hline
                        Xavier & 32 & M & Xav' & Doctor & Married \\
                        Baptiste & 1 & F & Baby & Baby & Single \\
                        Louise & 28 & M & Lou/Loue & Engineer & Single \\
                \bottomrule \\ 
        \end{tabularx}
\end{table}
```

![basic example](https://github.com/huisyy/latextable-lite/blob/main/images/basic_example.png?raw=true)