Skip to main content

A Python library to read/write Excel 2010 xlsx/xlsm files

Project description

coverage status

Introduction

openpyxl is a Python library to read/write Excel 2010 xlsx/xlsm/xltx/xltm files.

It was born from lack of existing library to read/write natively from Python the Office Open XML format.

All kudos to the PHPExcel team as openpyxl was initially based on PHPExcel.

Security

By default openpyxl does not guard against quadratic blowup or billion laughs xml attacks. To guard against these attacks install defusedxml.

Mailing List

The user list can be found on http://groups.google.com/group/openpyxl-users

Sample code:

from openpyxl import Workbook
wb = Workbook()

# grab the active worksheet
ws = wb.active

# Data can be assigned directly to cells
ws['A1'] = 42

# Rows can also be appended
ws.append([1, 2, 3])

# Python types will automatically be converted
import datetime
ws['A2'] = datetime.datetime.now()

# Save the file
wb.save("sample.xlsx")

Documentation

The documentation is at: https://openpyxl.readthedocs.io

  • installation methods

  • code examples

  • instructions for contributing

Release notes: https://openpyxl.readthedocs.io/en/stable/changes.html

Project details


Download files

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

Source Distribution

xmopenpyxl-3.1.4.1.tar.gz (187.9 kB view details)

Uploaded Source

Built Distribution

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

xmopenpyxl-3.1.4.1-py2.py3-none-any.whl (252.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file xmopenpyxl-3.1.4.1.tar.gz.

File metadata

  • Download URL: xmopenpyxl-3.1.4.1.tar.gz
  • Upload date:
  • Size: 187.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for xmopenpyxl-3.1.4.1.tar.gz
Algorithm Hash digest
SHA256 4c5a01f88ee1229154dca9cc5ecdd3e68da60f72470237c1ee0673adaccd78d8
MD5 b10fca81780a2896314d9f116dcff309
BLAKE2b-256 6dbc84d82ff8c5810a5d6b81797b4b8f2d6025abced3b1233c1f5efb43db67f1

See more details on using hashes here.

File details

Details for the file xmopenpyxl-3.1.4.1-py2.py3-none-any.whl.

File metadata

  • Download URL: xmopenpyxl-3.1.4.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 252.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for xmopenpyxl-3.1.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 38eaad6d75576b5f6c77c3d08d157b4cec105e3ac3645dc518478d50a24a7315
MD5 326888641c3da0b51dbef292bc932e8f
BLAKE2b-256 99a0b1304a03b1a49b7256e1d36cb27c3816f23285cd5428dbfc4a5528dd38fc

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