Metadata-Version: 2.4
Name: turboxlsx
Version: 1.2.0
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
License-File: LICENSE
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Repository, https://github.com/GreyRaphael/turboxlsx
Project-URL: Changelog, https://github.com/GreyRaphael/turboxlsx/releases

# turboxlsx

[![pypi](https://img.shields.io/pypi/v/turboxlsx.svg)](https://pypi.org/project/turboxlsx/)  [![support-version](https://img.shields.io/pypi/pyversions/turboxlsx)](https://img.shields.io/pypi/pyversions/turboxlsx) [![commit](https://img.shields.io/github/last-commit/GreyRaphael/turboxlsx)](https://github.com/GreyRaphael/turboxlsx/commits/master)

high performance python library to write xlsx file by rust pyo3

## Usage

```py
from turboxlsx import BookWriter

book = BookWriter()

# first sheet with headers, 2 columns
book.add_sheet("my1", ["col1", "col2"])
book.add_column_str(0, ["hello", "world"])
book.add_column_str(0, ["hello", "world", "grey"])

# second sheet with headers, 2 columnds
book.add_sheet("test", [])
book.add_column_number(1, [i for i in range(10)])
book.add_column_number(1, [i * 10 for i in range(20)])

# save workbook
book.save(name="test.xlsx")
```

## Development

```bash
# activate python environment
source ~/envs/jupy12/bin/activate
# install maturin
pip install --upgrade maturin

maturin init
# choose pyo3

# change Cargo.toml features to 
# features = ["abi3-py38"]

maturin develop

# begin release *whl
maturin build --release

# begin publish to pypi
maturin publish
```
