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

    python-docx 0.2.0

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Mike MacCana | More programs
    MIT/X Consortium Lic... / FREE
    January 14th, 2012, 18:59 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    python-docx description

    The docx module creates, reads and writes Microsoft Office Word 2007 docx files

    python-docx is a Python module that creates, reads and writes Microsoft Office Word 2007 docx files.

    These are referred to as 'WordML', 'Office Open XML' and 'Open XML' by Microsoft.

    These documents can be opened in Microsoft Office 2007 / 2010, Microsoft Mac Office 2008, Google Docs, OpenOffice.org 3, and Apple iWork 08.

    They also validate as well formed XML.

    The module was created when I was looking for a Python support for MS Word .doc files, but could only find various hacks involving COM automation, calling .net or Java, or automating OpenOffice or MS Office.

    Getting started

    Making and Modifying Documents

    - Just download python docx.
    - Use pip or easy_install to fetch the lxml and PIL modules.
    - Then run:

    example-makedocument.py

    Congratulations, you just made and then modified a Word document!

    Extracting Text from a Document

    If you just want to extract the text from a Word file, run:

    example-extracttext.py 'Some word file.docx' 'new file.txt'

    We love forks, changes and pull requests!

    - Check out the HACKING to add your own changes!
    - For this project on github
    - Send a pull request via github and we'll add your changes!


    Product's homepage

    Here are some key features of "python-docx":

    Making documents:

    · Features for making documents include...

    · Paragraphs
    · Bullets
    · Numbered lists
    · Document properties (author, company, etc)
    · Multiple levels of headings
    · Tables
    · Section and page breaks
    · Images

    Editing documents:

    · Thanks to the awesomeness of the lxml module, we can...

    · Search and replace
    · Extract plain text of document
    · Add and delete items anywhere within the document
    · Change document properties
    · Run xpath queries against particular locations in the document - useful for retrieving data from user-completed templates.

    Requirements:

    · Python

      


    TAGS:

    docx reader | docx writer | docx viewer | Python | docx | reader

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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