Skip to main content

Python library for interacting with local installed MindManager(tm) on Windows and MacOS platform.

Project description

mindm

Python library for interacting with locally installed MindManager™ on Windows and macOS platforms.

PyPI version Documentation

Features

  • Direct automation hooks for MindManager via platform-specific connectors in mindm/
  • High-level document model, serialization helpers, and exporters in mindmap/
  • YAML, JSON, and Mermaid serialization/deserialization helpers for round-tripping maps
  • Sphinx documentation plus runnable snippets under examples/

Project Layout

mindm/
├── mindm/        # Platform connectors (MindManager COM, AppleScript, etc.)
├── mindmap/      # MindmapDocument model + serialization helpers
├── docs/         # Sphinx documentation (make docs → docs/_build/html)
├── examples/     # Usage snippets / sanity scripts

Installation

PyPI

pip install mindm

Local development

git clone https://github.com/robertZaufall/mindm
cd mindm
pip install -e ".[dev]"

Getting Started

Low-level example

Example for iterating over all topics in a mindmap and changing the topic text to uppercase:

import mindm.mindmanager

def iterate_topics(topic):
    text = m.get_text_from_topic(topic)
    m.set_text_to_topic(topic, text.upper())

    subtopics = m.get_subtopics_from_topic(topic)
    for subtopic in subtopics:
        iterate_topics(subtopic)

m = mindm.mindmanager.Mindmanager()
central_topic = m.get_central_topic()
iterate_topics(central_topic)

High-level examples

Example for loading a mindmap from an open mindmap document and cloning it to a new document:

import mindmap.mindmap as mm

document = mm.MindmapDocument()
document.get_mindmap()
document.create_mindmap()

Example for serializing a mindmap to YAML format:

import yaml
import mindmap.mindmap as mm
import mindmap.serialization as mms

document = mm.MindmapDocument()
document.get_mindmap()

guid_mapping = {}
mms.build_mapping(document.mindmap, guid_mapping)

yaml_data = mms.serialize_object(document.mindmap, guid_mapping)
print(yaml.dump(yaml_data, sort_keys=False))

Example for serializing / deserializing a mindmap to / from Mermaid format including all attributes:

import json
import mindmap.mindmap as mm
import mindmap.serialization as mms

document = mm.MindmapDocument()
document.get_mindmap()

guid_mapping = {}
mms.build_mapping(document.mindmap, guid_mapping)

serialized = mms.serialize_mindmap(document.mindmap, guid_mapping, id_only=False)
print(serialized)

deserialized = mms.deserialize_mermaid_full(serialized, guid_mapping)
print(json.dumps(mms.serialize_object_simple(deserialized), indent=1))

document_new = mm.MindmapDocument()
document_new.mindmap = deserialized
document_new.create_mindmap()

Example for serializing / deserializing a simplified Mermaid mindmap (text and indentation only):

import mindmap.mindmap as mm
import mindmap.serialization as mms

document = mm.MindmapDocument()
document.get_mindmap()

simple_mermaid = mms.serialize_mindmap_simple(document.mindmap)
print(simple_mermaid)

simple_root = mms.deserialize_mermaid_simple(simple_mermaid)

Example for deserializing a simplified Mermaid mindmap (text and indentation only):

import mindmap.serialization as mms

mermaid = """
mindmap
  Creating an AI startup
    Vision & Strategy
      Mission and Value
        Problem statement
        Value proposition
        Long term goals
"""

mindmap_root = mms.deserialize_mermaid_simple(mermaid)

Platform Specific Functionality

Platform Supported Not Supported
Windows topics, subtopics, notes, icons, images, tags, external/topic links, relationships, RTF floating topics, callouts, colors, lines, boundaries
macOS topics, subtopics, notes, relationships icons, images, tags, links, RTF, floating topics, callouts, colors, lines, boundaries

Development Workflow

  • pip install -e ".[dev]" to get linting, testing, and docs dependencies
  • make build (or python -m build) to create wheels and sdists in dist/
  • make docs to rebuild the HTML documentation under docs/_build/html
  • pytest for unit/integration coverage (add tests in tests/ or examples/)
  • python examples/test.py for a live smoke run against a connected MindManager instance

See make help for additional automation such as version bumps (make update-version) or GitHub releases.

Documentation

Generated docs publish to GitHub Pages: https://robertzaufall.github.io/mindm/.
Run make docs locally to validate new API additions before contributing changes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mindm-0.0.5.3.tar.gz (98.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mindm-0.0.5.3-py3-none-any.whl (99.5 kB view details)

Uploaded Python 3

File details

Details for the file mindm-0.0.5.3.tar.gz.

File metadata

  • Download URL: mindm-0.0.5.3.tar.gz
  • Upload date:
  • Size: 98.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for mindm-0.0.5.3.tar.gz
Algorithm Hash digest
SHA256 5ccf017d4ac35f5f15e2e79b72fe4ce09c3c02cc28ff3a41cc39f9ee3b3c52c5
MD5 1c2bbcb96c74bad1aa08c3838d5d48b0
BLAKE2b-256 6b462b97e646e7f46cf5451ea4075b3322ecfbe1d0bdf0923d3a8aa87a2ec1c5

See more details on using hashes here.

File details

Details for the file mindm-0.0.5.3-py3-none-any.whl.

File metadata

  • Download URL: mindm-0.0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 99.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for mindm-0.0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cfecb677b0762bde060db67eec3ab7c4264231885e3cd9ffc6853a4f86ed1d5c
MD5 ab17cadedf6353434967a3a79857507b
BLAKE2b-256 146b923408d79be9459212f7f4ff3a720e584dc07cadb4159b3d38d5cdfa6455

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page