Installation¶
Choose the installation route for your use. This page covers prerequisites, minimal steps, verification and common errors.
Prerequisites¶
- Python 3.10+.
- pip to use the package, or Poetry to develop it and its documentation.
- openpyxl, installed as a package dependency for XLSX reading and writing.
- Robot Framework, installed separately if you use the Robot wrapper.
Step-by-step installation¶
Initial configuration¶
No configuration file, environment variables or extra bootstrap is required. Prepare a CSV, JSON or XLSX file, or a list of dictionaries in memory.
Basic commands¶
| Command | Purpose |
|---|---|
pip install pytabify |
Install the package |
poetry install |
Prepare development dependencies |
python -c "from pytabify import DataTableCreator; print('ok')" |
Verify minimal installation |
poetry run mkdocs serve |
Preview the English source pages |
poetry run python docs/scripts/build_docs.py |
Validate the complete bilingual site and Libdoc |
Minimal verification¶
Use mkdocs serve to iterate on one language. Build the complete site with docs/scripts/build_docs.py and serve site/ with python -m http.server 8000 --directory site to preview both languages.
Execution examples¶
Important parameters¶
| Parameter | Used by | Purpose |
|---|---|---|
path |
DataTableCreator.from_file(...) |
Input file |
sheet_name |
XLSX reading | Sheet selection |
encoding |
CSV/JSON reading and writing | File encoding |
When installation works but loading or saving fails, check these parameters first.
Development dependencies include pytest (unit/acceptance tests), Ruff (lint/format), mypy (static types) and mkdocs-material (documentation). If MkDocs is unavailable, install the development group using poetry install.
Common installation or execution errors¶
- Incompatible Python: check
python --version; versions below 3.10 are unsupported. - MkDocs missing: run
poetry installwith development dependencies. - XLSX without sheet_name: provide the exact workbook sheet name.
- Unsupported extension: only CSV, JSON and XLSX are resolved; this is a format error rather than an installation error.