8000 GitHub - GreyRaphael/turboxlsx: high performance python library to write xlsx file by rust pyo3
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

GreyRaphael/turboxlsx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

turboxlsx

pypi support-version commit

high performance python library to write xlsx file by rust pyo3

Usage

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

# 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

About

high performance python library to write xlsx file by rust pyo3

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0