Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: python-openxml/python-docx
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: andreas-schoch/python-docx
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 1 file changed
  • 1 contributor

Commits on Oct 28, 2020

  1. Initial OOXML loading support WIP

    ```python
    from io import BytesIO
    
    from docx import Document
    from docx.oxml import parse_xml
    
    if __name__ == '__main__':
        with open('wordopc.xml', 'rb') as opcXmlFile:
            ooxml: bytes = opcXmlFile.read()
    
            document = Document(ooxml)
            b = BytesIO()
            document.save(b)
    ```
    c-bik authored Oct 28, 2020
    Configuration menu
    Copy the full SHA
    2ab501c View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2020

  1. Finished and tested reloading

    ```python
    from io import BytesIO
    
    from docx import Document
    from docx.oxml import parse_xml
    
    if __name__ == '__main__':
        with open('text.xml', 'rb') as opcXmlFile:
            ooxml: bytes = opcXmlFile.read()
    
            document = Document(ooxml)
            b = BytesIO()
            document.save(b)
    
            b.seek(0)
    
            d = Document(b)
            print([p.text for p in d.paragraphs])
    ```
    c-bik authored Oct 30, 2020
    Configuration menu
    Copy the full SHA
    0c66b22 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2021

  1. Merge pull request #1 from LegartisTech/feature/load-from-ooxml-string

    Load from OOXML support (without test coverage)
    c-bik authored Feb 10, 2021
    Configuration menu
    Copy the full SHA
    ed7d429 View commit details
    Browse the repository at this point in the history
Loading