Registry / data / aspose-cells

aspose-cells

JSON →
library26.4.0pypypi✓ verified 80d ago

Aspose.Cells for Python via Java is a high-performance library for Excel file manipulation and conversion. Current version 26.4.0 supports Python 3.8–3.13. It allows creating, editing, and converting spreadsheets (XLS, XLSX, XLSB, ODS, CSV, HTML) without Microsoft Office. Release cadence: monthly updates.

pip install aspose-cells
INSTALL
IMPORT
SIG · ASPOSE-CELLS
A
aspose-cells
datapythonv26.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JObject
from asposecells import JObject
from asposecells.api import License

Minimal example: create a workbook, add text, save as XLSX.

import os from asposecells.api import Workbook, License, SaveFormat, FileFormatType # Set license (optional; if not set, watermark appears) # license = License() # license.set_license(os.environ.get('ASPOSE_LICENSE_PATH', '')) # Create a new workbook wb = Workbook() # Get the first worksheet ws = wb.getWorksheets().get(0) # Add text ws.getCells().get("A1").putValue("Hello, Aspose.Cells!") # Save as XLSX wb.save("output.xlsx", SaveFormat.XLSX) print("Excel file created successfully.")
Debug
Known issues
breakingAspose.Cells for Python via Java requires Java Runtime (JRE) installed. The library uses a Java bridge via JPype. Without JRE, import fails.
fix
Install Java 8 or later (e.g., OpenJDK) and ensure JAVA_HOME is set.
affects: all
gotchaThe library is not recommended for headless Linux servers without a display? Actually, it works headless, but some chart rendering requires a display. Use Xvfb or set Java AWT headless property.
fix
Set environment variable: JAVA_OPTS='-Djava.awt.headless=true' or in code: import os; os.environ['JAVA_OPTS'] = '-Djava.awt.headless=true' before importing asposecells.
affects: all
deprecatedThe method `Workbook.save(String, SaveFormat)` with file format argument is deprecated in favor of `Workbook.save(String, SaveOptions)`. The old overload still works but may raise warnings.
fix
Use SaveOptions subclasses (e.g., XlsxSaveOptions()) or use SaveFormat directly but prepare for removal.
affects: >=23.7
gotchaImporting from asposecells directly (e.g., `import asposecells`) does not expose classes. Must import from asposecells.api.
fix
Use `from asposecells.api import Workbook` instead of `import asposecells`.
affects: all
Upgrade
Version history
26.4.0latest on PyPI · released Apr 10, 2026
Audit
Dependencies
jpype1requiredRequired for Java bridge; automatically installed
Agent activity
31 hits · last 30 days
node
28
OpenAI (training)
1
Resources
aspose-cells — pip install aspose-cells · libregistry