Modern Pythonic Excel processing library with plugin ecosystem
Project description
Aspose.Cells for Python (FOSS Edition)
Modern Pythonic Excel processing library with advanced plugin ecosystem for enhanced document conversion.
Overview
Aspose.Cells for Python is a high-performance Excel processing library that provides a clean, Pythonic API for working with Excel files. It offers both standalone functionality and seamless integration with popular document conversion frameworks through its plugin ecosystem.
Installation
From PyPI (Recommended)
# Core library
pip install aspose-cells-foss
# With MarkItDown plugin support
pip install aspose-cells-foss[markitdown]
# With Docling backend support
pip install aspose-cells-foss[docling]
# With all optional dependencies
pip install aspose-cells-foss[markitdown,docling]
From Source
# Clone repository
git clone https://github.com/aspose-cells/aspose-cells-python.git
cd aspose-cells-python
# Install in development mode
pip install -e .
# With plugin support
pip install -e .[markitdown] # MarkItDown plugin
pip install -e .[docling] # Docling backend
Quick Start
from aspose.cells import Workbook, FileFormat
# Create and populate workbook
wb = Workbook()
ws = wb.active
# Multiple ways to set data
ws['A1'] = "Product" # Excel-style
ws[0, 1] = "Price" # Python-style (0-based)
ws.cell(1, 3).value = "Qty" # Traditional method
# Batch operations
ws.append(["Laptop", 999.99, 5])
ws.append(["Mouse", 29.95, 50])
# Export to multiple formats
wb.save("products.xlsx", FileFormat.XLSX)
wb.save("products.csv", FileFormat.CSV)
json_str = wb.exportAs(FileFormat.JSON)
markdown_str = wb.exportAs(FileFormat.MARKDOWN)
Core Features
Multi-Access Cell Interface
Three flexible ways to work with cells:
- Excel-style:
ws['A1'] = value - Python-style:
ws[0, 1] = value(0-based indexing) - Traditional:
ws.cell(1, 3).value = value
Styling and Formatting
# Cell styling
ws['A1'].font.bold = True
ws['A1'].font.size = 14
ws['A1'].fill.color = "lightgray"
# Range styling
ws['A1:C1'].font.bold = True
Data Import/Export
# From records
records = [{"name": "Alice", "age": 25}, {"name": "Bob", "age": 30}]
ws.from_records(records)
# Export formats
formats = [FileFormat.XLSX, FileFormat.CSV, FileFormat.JSON, FileFormat.MARKDOWN]
Plugin Ecosystem
Aspose.Cells for Python extends functionality through specialized plugins for popular document conversion frameworks:
MarkItDown Plugin
Enhanced Excel-to-Markdown conversion with improved formatting capabilities.
Key Benefits:
- Hyperlink preservation and clean table formatting
- Configurable conversion parameters
- Enhanced output quality
# Install and use
pip install -e .[markitdown]
markitdown --use-plugins spreadsheet.xlsx -o output.md
→ View MarkItDown Plugin Documentation
Docling Backend
Document backend for IBM Docling framework.
Key Benefits:
- Enhanced Excel processing for complex spreadsheets
- Multi-format export (Markdown, JSON)
- Advanced document structure support
# Install and use
pip install -e .[docling]
from docling.datamodel.base_models import InputFormat
from docling.datamodel.document import InputDocument
from aspose.cells.plugins.docling_backend import CellsDocumentBackend
# Create input document with Aspose backend
input_doc = InputDocument(
path_or_stream="spreadsheet.xlsx",
format=InputFormat.XLSX,
backend=CellsDocumentBackend,
filename="spreadsheet.xlsx"
)
# Initialize backend and convert
backend = CellsDocumentBackend(in_doc=input_doc, path_or_stream="spreadsheet.xlsx")
document = backend.convert()
markdown_content = document.export_to_markdown()
→ View Docling Backend Documentation
License
This project is licensed under the Aspose Split License Agreement - see the LICENSE file for details.
Part of the Aspose.org open source ecosystem.
Requirements
- Python 3.8+
- Optional: markitdown>=0.1.0 (for MarkItDown plugin)
- Optional: docling (for Docling backend)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aspose_cells_foss-25.12.1.tar.gz.
File metadata
- Download URL: aspose_cells_foss-25.12.1.tar.gz
- Upload date:
- Size: 119.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29d18fbf55270bcc177e5c3d7ecde1b8b89333938b0982003e74eb7d83ad7a76
|
|
| MD5 |
6787c9b757c4e670cb41ecae4ad8665b
|
|
| BLAKE2b-256 |
547040ca1566c04fa18889bcf2b917f11a4283436c5212a358340d529788c05a
|
File details
Details for the file aspose_cells_foss-25.12.1-py3-none-any.whl.
File metadata
- Download URL: aspose_cells_foss-25.12.1-py3-none-any.whl
- Upload date:
- Size: 89.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f551a65da29f7b26a62158b2aabe6ba097fa805257762a064c5156ac82a01a22
|
|
| MD5 |
e68288b56d29f9dd70e17a2add7c66d4
|
|
| BLAKE2b-256 |
f1caa1f47059ae13d57d6ba25dea11e464f41f6ede75a4eddc8369b2d3dfae8d
|