A powerful library for manipulating and converting Excel (XLS, XLSX, XLSB), CSV, ODS, PDF, JSON, JPG, PNG, BMP, EMF, SVG and HTML files.
Project description
Product Page | Docs | API Reference | Demos | Blog | Code Samples | Free Support | Temporary License | EULA
Try our free online apps demonstrating some of the most popular Aspose.Cells functionality.
A powerful library for manipulating and converting Excel (XLS, XLSX, XLSB), CSV, ODS, PDF, JSON, JPG, PNG, BMP, SVG, EMF and HTML files.
Aspsoe.Cells API Features
Aspose.Cells offers a wide arrange of features for creating, reading, manipulating and saving Excel® files:
Spreadsheet generation & manipulation via API.
High-quality file format conversion & rendering.
Print Microsoft Excel® files to physical or virtual printers.
Combine, modify, protect, or parse Excel® sheets.
Apply worksheet formatting.
Configure and apply page setup for the worksheets.
Create & customize Excel® charts, Pivot Tables, conditional formatting rules, slicers, tables & spark-lines.
Convert Excel® charts to images & PDF.
Convert Excel® files to various other formats.
Formula calculation engine that supports all basic and advanced Excel functions.
Supported Read & Write Formats
Microsoft Excel®: XLS, XLSX, XLSB, XLSM, XLT, XLTX, XLTM, SpreadsheetML
OpenOffice: ODS, SXC, FODS
Text: JSON, TXT, CSV, TSV, Tab-Delimited
Web: HTML, MHTML
iWork®: Numbers
Save Excel® Files As
Microsoft Word®: DOCX
Microsoft PowerPoint®: PPTX
Microsoft Excel®: XLAM
Fixed Layout: PDF, XPS
Text: JSON, TXT, CSV, TSV, Tab-Delimited, XML
Image: TIFF, PNG, BMP, JPEG, GIF, SVG
Metafile: EMF
Markdown: MD
Create Excel File from scratch using Python
# import the python package
import aspose.cells
from aspose.cells import License, Workbook, FileFormatType
# Create a new Workbook
workbook = Workbook()
# Get the first worksheet
worksheet = workbook.worksheets[0]
# Get the "A1" cell
cells = worksheet.cells
cell = cells.get("A1")
# Write "Hello World" to "A1" in the first sheet
cell.put_value("Hello World!")
# save this workbook to XLSX
workbook.save("HelloWorld.xlsx")
Convert Excel XLSX File to PDF using Python
# import the python package
import aspose.cells
from aspose.cells import License, Workbook, FileFormatType
workbook = Workbook("bookwithChart.xlsx")
# save this workbook to resultFile,you can see a chart while open the file with MS-Excel*/
workbook.save("Convert.pdf");
Create Excel File and set style for the cells
import aspose.cells as ac
import aspose.pydrawing as ad
from aspose.cells import License, Workbook, FileFormatType
workbook = Workbook()
worksheet = workbook.worksheets[0]
# get cells style
style = worksheet.cells.style
# set font color
style.font.color = ad.Color.green
# set pattern
style.pattern = ac.BackgroundType.GRAY12
# set Background
style.background_color = ad.Color.red
# set Border
style.set_border(ac.BorderType.LEFT_BORDER, ac.CellBorderType.THIN, ad.Color.blue)
style.set_border(ac.BorderType.RIGHT_BORDER, ac.CellBorderType.DOUBLE, ad.Color.gold)
# set string value to cell 'A1'
cells = worksheet.cells
cell = cells.get("A1")
cell.put_value("Text")
# apply style to cell 'A1'
cell.set_style(style)
# save this workbook to resultFile
workbook.save("Style.xlsx")
Product Page | Docs | API Reference | Demos | Blog | Free Support | Temporary License | EULA
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 Distributions
Built Distributions
Hashes for aspose_cells_python-24.2.0-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ba779d34600932db95a25d510dd0df9777d6b6bff75909b7ad8bea34910f446 |
|
MD5 | 909ce73c294497136ce3e23893d66fa8 |
|
BLAKE2b-256 | 048f923f7e0afdafdb046f8aff8f9617c24851174a3f51180f45e88587fc423f |
Hashes for aspose_cells_python-24.2.0-py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6c2dccd5ac075792e10801ea88472b31840356ceba7e99b0d0e33527a535abe |
|
MD5 | 0afccfa851b7aaff914f6de88d5e5fab |
|
BLAKE2b-256 | 16468d2053454317d780e37b541092cee1789bbbaa459e246d0415b600b2e58d |
Hashes for aspose_cells_python-24.2.0-py3-none-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58fc3440c7e41d8d0a918fedaeadd1be263b0a7944fd6b278ffb557440efa814 |
|
MD5 | b6dd52689e6eeac59aeaff64b06ea468 |
|
BLAKE2b-256 | 95d418b6cb99f4387caab34e70bbc39df44ba2c2df83c68c0a5b5dd95fa38d78 |
Hashes for aspose_cells_python-24.2.0-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99e54a7c96899fb1b76811eb2a2665adbdad912b7c9cd5e89dfd1939d1c5e75c |
|
MD5 | ef20445b7bea30b3f8d7edf04a36965f |
|
BLAKE2b-256 | 45aee4b5f42d055038a14d7551da7a0cb697f33e8f009866a36fec2de78ec544 |
Hashes for aspose_cells_python-24.2.0-py3-none-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ca3a6badd7ed8e5f30cc314236bc55b03aa95916acbeccfd0a44876f12fb259 |
|
MD5 | 0eea1a4e1ecf1ae9d40d5a923784b71f |
|
BLAKE2b-256 | d65f00c33850a17325c99606c76f43f4d83bec478f1346617c854eafc351e92b |