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.12.0-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b2c6055e6f92653596a2e73beb11b0af0d02974081cc2c4ab7fd8f98dbcc9d4 |
|
MD5 | d44daf0cfca14fd7774c8afe77809af2 |
|
BLAKE2b-256 | f8450b340ba716f9a3ad01312640466bddfe84274b43959e4b987ef2bc901f4f |
Hashes for aspose_cells_python-23.12.0-py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3014947fbe1d0a26090ed7c8cc60bc77f12439cf0d9f7ad7fcf50d8b5786c74d |
|
MD5 | c3ade4bfa53831c6e44e18957ba8530f |
|
BLAKE2b-256 | 162f0dff3d225d8e12736c9513d85cb0f34bdfc4fcae20fd512a4f3dd80a4555 |
Hashes for aspose_cells_python-23.12.0-py3-none-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb4f4d7306c90617a9e4ac2cbd127cfae6eddf06a1ebda453289d7f049b2978b |
|
MD5 | a6abb5cc13944992073937788208e2d4 |
|
BLAKE2b-256 | c3e89213fcd8f94e8698ca53428a46ceb57e8cf3d65b5f1e64a22eedaa9178a6 |
Hashes for aspose_cells_python-23.12.0-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b792e2bd7f02621571dbf57805fe02a5b0dab25ac136100903537f3087d96996 |
|
MD5 | a8007a17ff44a31aee4959142ee468eb |
|
BLAKE2b-256 | c7ed6fe22db50962351d336ac03a35dc6d040d77a088dbe299386a70daf1f22e |
Hashes for aspose_cells_python-23.12.0-py3-none-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | daf19752ca417dbaf774b7350a8879a4f48e093ac03a5f8894fe4e72244cb6d5 |
|
MD5 | 5802d5454926d54d9261525576118a3c |
|
BLAKE2b-256 | 0fb663a42f2d5af5363858ac2b7a342750184f0ae03ccbe49daa7a6939c55508 |