python-docx - replacing characters
Question: I am trying to build a small program in which I open a docx document and
replace characters by others, to do some old school caesar-style encrypting,
after checking the documentation: [ <https://python-docx.readthedocs.io> ] I
am afraid I can't find the object methods and attributes, the documentation
just kind-of explains how to do certain stuff like creating paragraphs and
sections but I can't find anything on retrieving document data and parsing. I
would like to find a list of the objects in the document so I can parse
through them.

I would like to do something like this:

    
    
    from docx import Document
    document = Document('essay.docx')
    
    paragraph = []
    for i in document:
        paragraph.append(i)
    
    for i in paragraph:
        for y in i:
            y.replace("a", "y")
    
    ... 
    

Can python-docx do something like this? If so where would I find the
documentation that could show me how to do it?

If maybe I am using the incorrect library I would also appreciate it if you
could point it out.


Answer: The API documentation is indexed (i.e. its table of contents appears) on the
page you link to and describes all the objects and methods. <https://python-
docx.readthedocs.io/en/latest/#api-documentation>

