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-23.11.0-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a49a619325e0083c061a6628a70a02fd22088691c40aa950637ece5d97a0784 |
|
MD5 | 30a9d13669942b18bf472a2c04117c8b |
|
BLAKE2b-256 | 214eb315de9dbed25c5df5229d4e37805cfb3b2635da8ebf317abb3792cd1bdc |
Hashes for aspose_cells_python-23.11.0-py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7e6d0f2e2c717d0b9121bb1fed97e4462128fa3446a8d2764430113cc2b1de2 |
|
MD5 | 85c0908ea31da189a28904bea4c98f3b |
|
BLAKE2b-256 | 801a3c17ef8379d901345c9fac93d6f4513cf575245a1e31311f8c807efdb2c1 |
Hashes for aspose_cells_python-23.11.0-py3-none-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9e7e213592b3534870b31c2e77ca6910263daf05ce65632f8c48d94166431b0 |
|
MD5 | e23f61586d687913bd3874d7665b1ab9 |
|
BLAKE2b-256 | f409764512f99bbf5bb6536aa0f8a81a90d3756e9620d324dedd0fbb5734f2bd |
Hashes for aspose_cells_python-23.11.0-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18dc35e172871539414fd682f7c9b4de747cbd1b1afcbb95b2546caf18bd2ee0 |
|
MD5 | 80ff7e4ceb19d1d0998db3bf2bb5ac14 |
|
BLAKE2b-256 | adb160f7c7461dbef2bda01a55368ef8e7a4a1ff2aa9f70950717f8cfc6ff1cc |
Hashes for aspose_cells_python-23.11.0-py3-none-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1034bb97a32fa9852aa3cfdecaea651f0a8dae06386d0c2ac65cc6b0d47b59be |
|
MD5 | 5827df2d1d52b256051bb952f40e2713 |
|
BLAKE2b-256 | 6126715eb8fbf6a2cfd34f1be8be284a28d5ddec43b5dc24d63e18d3bdda6edd |