XMind SDK for Python

repository·master·Indexed 19 days ago

https://github.com/xmindltd/xmind-sdk-python

A Python library for programmatically manipulating XMind files and building XMind extensions, featuring functions to load and save .xmind workbooks.

Tokens
315
Snippets
2
Records
2
Agent score
16%

What's inside xmind-sdk-python

  1. Load and save XMind files

    master

    You can work with XMind files by loading an existing .xmind file using xmind.load() and saving your changes using xmind.save().

    When saving, if you do not provide a path, the SDK will save the workbook to the path that was originally set when the file was loaded. To save to a different location, provide the target path as the second argument.

    import xmind
    
    # Load an existing XMind file
    workbook = xmind.load('/path/to/file.xmind')
    
    # Save changes to the original path
    xmind.save(workbook)
    
    # Or save to a specific new path
    xmind.save(workbook, '/save/file/to/path.xmind')
  2. Install XMind SDK for python

    master

    To install the XMind SDK, clone the repository locally and run the setup script. It is highly recommended to use an isolated Python environment like virtualenv for the installation.

    git clone https://github.com/xmindltd/xmind-sdk-python.git
    cd xmind-sdk-python
    python setup.py install