Quickstart¶
Quickstart for both editions
The commands below install Commercial (latest published release 2.3.0). Complete the authenticated private-index setup first. Community (MIT, 2.0.9 on public PyPI) runs the same Python examples.
1) Install¶
Commercial installs from the authenticated private index. Keep the
"wolfxl>=2.1" pin: an unpinned wolfxl can resolve to Community from public
PyPI.
python -m pip install --upgrade "wolfxl>=2.1" --index-url https://packages.wolfxl.com/simple/
python -c "import wolfxl; print(wolfxl.__version__)"
The version check prints the resolved version, currently 2.3.0. To try the MIT
Community edition instead, run python -m pip install wolfxl with no private
index; see Install for the difference between the editions.
2) Write a Workbook¶
from wolfxl import Workbook, Font
wb = Workbook()
ws = wb.active
ws["A1"] = "Hello WolfXL"
ws["A1"].font = Font(bold=True)
wb.save("quickstart.xlsx")
wb.close()
3) Read It Back¶
from wolfxl import load_workbook
wb = load_workbook("quickstart.xlsx")
ws = wb[wb.sheetnames[0]]
print(ws["A1"].value)
wb.close()