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.3.0-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d76fa3a4dbab7f7b5903f3710557c8341a6c0a33267ad674ecaed8fefa462c5 |
|
MD5 | 989af37e26ec322702c6ac682437872f |
|
BLAKE2b-256 | 86d7046fbcde7bda94eae215dbf2478fffe83f3e875e31e33b5771344f284e63 |
Hashes for aspose_cells_python-24.3.0-py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0683e3b5d6c60463c7732fcf7901a83649d793d91234ee568276a2fc095e5c03 |
|
MD5 | 24fcb7ff51c037e80318a33e9234a3d3 |
|
BLAKE2b-256 | 1ccd482e8fa0ceecf8e6db3274bbc3417a913ddd99c9cea7e55681eb0be934c8 |
Hashes for aspose_cells_python-24.3.0-py3-none-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4ba6082bc1c63e69111f6f340f3dce40c6a81d10bffa7ca2190ed707066afc5 |
|
MD5 | 5e52652350168a6e0a3dcfbfc3ca19f8 |
|
BLAKE2b-256 | 0f74655862a8b6d2d2495123b0863ca9909b291782014903364bfbac5be7ae50 |
Hashes for aspose_cells_python-24.3.0-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fdde4a33940861f340dde1b0349c34a1ca4692008347732619f49b851e83f5c |
|
MD5 | 84fb9485ce79cc7114b7d64242104064 |
|
BLAKE2b-256 | bd1d830344afb036607490e7efe4d9dc1eab537c48b59e2d58966cfc3d836ec7 |
Hashes for aspose_cells_python-24.3.0-py3-none-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b4b11812fece63bfe7c948ef93a1fc57cf646d453e7ce9c826568991eef6dd8 |
|
MD5 | fa9a7edf2629e139b04ff68e23e5f460 |
|
BLAKE2b-256 | 374525fb7a8913ddb1fece5ce6e3b41fb0bed27e24a68517796ff655a74b3eb7 |