Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

aspose_cells_python-23.9.0-py3-none-win_amd64.whl (54.9 MB view details)

Uploaded Python 3Windows x86-64

aspose_cells_python-23.9.0-py3-none-win32.whl (47.3 MB view details)

Uploaded Python 3Windows x86

aspose_cells_python-23.9.0-py3-none-macosx_10_14_x86_64.whl (68.8 MB view details)

Uploaded Python 3macOS 10.14+ x86-64

File details

Details for the file aspose_cells_python-23.9.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for aspose_cells_python-23.9.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 d95acab3df6e4c8f0722881afe815f7c6a6e975365fb916bd9389c32aa76a3df
MD5 f2d8e99b4b463ad017fa5a6f8900709e
BLAKE2b-256 4befc53d41247d905efad755e3848388fcb6df43d1c311224a0560bc7a563214

See more details on using hashes here.

File details

Details for the file aspose_cells_python-23.9.0-py3-none-win32.whl.

File metadata

File hashes

Hashes for aspose_cells_python-23.9.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 42ca2fb3e9eb9dd7b8e8206f912cd9f50499826657ae7411bb05bd2dcccbb9dd
MD5 5ecf754537fd31d7d6929d797e84a680
BLAKE2b-256 fbbe1948a40dc2c8fec441d307a9cd8368b2e521556ac0242b33fc2b7b4f248b

See more details on using hashes here.

File details

Details for the file aspose_cells_python-23.9.0-py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for aspose_cells_python-23.9.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4e7ad20a96b6f9f653ec0eca962e7862be229c76d4badbdb12784a7063519d15
MD5 bd15e65bb5d20609cecffe714e15ba93
BLAKE2b-256 5daa778d6fa207b4390ecda1f0e6b4f9cf2a81817a70933488d23b373c226478

See more details on using hashes here.

File details

Details for the file aspose_cells_python-23.9.0-py3-none-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for aspose_cells_python-23.9.0-py3-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 f4b74ea859d97f0dc47fab679e2abf56f7693d7d14704840f13c16f1f77d65b3
MD5 b41ea4a9c7e3443cdc7cf2c80cdd4935
BLAKE2b-256 cf74af810e97d25ef085a01a2b304d312986d6bce2f819a80138851830ea8358

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page