Skip to main content

ooxml: Python interface for working with OOXML files such as xlsx, docx, pptx.

For now only reading xlsx works.

Here’s how to use it to read xlsx file:

>>> from ooxml.spreadsheet import Spreadsheet
>>> workbook=Spreadsheet('book1.xlsx')             #read in book1.xlsx
>>> workbook.sheet_names
['Sheet1', 'Sheet3', 'Sheet2']
>>> sheet1 = workbook.sheet(1)                     #index start from 1, not 0
>>> row1 = sheet1.row(1)                           #you can get a row
>>> row1
<spreadsheet.Workrow object at 0xb7a8898c>
>>> row1.cell(1).value                             #access a cell value in a row
'1'
>>> sheet1.cell(2,1).value                         #access by sheet.cell(x,y), x is row, y is column
'2'
>>> sheet2 = workbook.sheet('Sheet2')              #use name instead of index to get a sheet
>>> cell = sheet2.cell(5,5)
>>> sheet2.save_csv('my.csv')                      #save content to csv

Writing xlsx, reading/writing docx, pptx will be added later.

Metadata

Release files for ooxml 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ooxml 0.2.1
File Size Uploaded Provenance
ooxml-0.2.1.tar.gz 4.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ooxml 0.2.1
File Interpreter ABI Platform
ooxml-0.2.1-py2.6.egg Legacy Egg format - - Details

Total release size: 19.5 kB

Release files / ooxml-0.2.1.tar.gz

Download URL ooxml-0.2.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
09d5c075fc67eec5a95be15f9bbda24ab6106dc48a5856a35b9ed7866e78b0f0
BLAKE2b-256 checksum
How to use checksums
b57c9ed5fa5831548dcd866055d8faa2036b019e51551a2d3ce28f68a9c63969
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ooxml-0.2.1-py2.6.egg

Download URL ooxml-0.2.1-py2.6.egg
Size 15.2 kB
Tags Egg
SHA-256 checksum
How to use checksums
7a8a7406c2b3a63ce1933ac6e64bacec73eebc1eb9c3890402302d4c38ebaf38
BLAKE2b-256 checksum
How to use checksums
774c0528be17be71872a9e38ce0b63ca74ca73d14a2d5b8b8c7ea0c1ba8c3951
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ooxml 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page