Metadata-Version: 2.5
Name: mmisc
Version: 0.1.4
Summary: Mickael's Miscellaneous Python Helpers and Utility Functions.
Project-URL: Homepage, https://github.com/mickaeltemporao/mmisc
Author-email: Mickael Temporão <16172142+mickaeltemporao@users.noreply.github.com>
License-Expression: GPL-3.0-or-later
License-File: LICENSE
Requires-Python: >=3.12
Requires-Dist: pandas>=2.0.0
Requires-Dist: statsmodels>=0.14.0
Description-Content-Type: text/markdown

# Mickael's Miscellaneous Python Helpers and Utility Functions.

## Usage

### Typst Regression Tables

Generate publication-ready [Typst](https://typst.app/) regression tables directly from `statsmodels` results:

```python
import statsmodels.formula.api as smf
from mmisc import make_table

model1 = smf.ols("y ~ x1", data=df).fit()
model2 = smf.ols("y ~ x1 + x2", data=df).fit()

# Return Typst markup string
typst_code = make_table(
    [model1, model2],
    model_names=["Baseline", "Full"],
    dep_var="Outcome",
    var_labels={"x1": "Feature 1", "x2": "Feature 2"},
    stats=("nobs", "r2", "aic"),
)

# Or write directly to file
make_table([model1, model2], output_path="models.typ")
```

## Publish to PyPI

    dotenv run -- uv build
    dotenv run -- uv publish



