Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    ooxml 0.2.1

    Download button

    No screenshots available
    Downloads: 192  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Wensheng Wang | More programs
    MIT/X Consortium Lic... / FREE
    March 6th, 2011, 12:54 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    ooxml description

    Python interface for working with OOXML files such as docx, xlsx

    ooxml is a 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.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    Python interface | office documents | xlsx | docx | pptx

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM