GithubHelp home page GithubHelp logo

macmarrum / freeplane-packer-macmarrum Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nnako/freeplane-packer

0.0 0.0 0.0 29 KB

a small tool to export mindmaps with all its file dependencies into one zip container

License: GNU General Public License v3.0

Python 100.00%

freeplane-packer-macmarrum's Introduction

Freeplane-Packer

tooling for packing Freeplane map together with its file-based dependencies into one file container.

local installation

the following steps should be performed in order to build a working local development environment. for this, on windows systems, the standard dos console should be used. start it with <WIN> + <R> then input cmd then <RETURN>. if you want to use an IDE like Spyder, VScode, Pycharm, ... there should exist a proper way to handle activities like creation and use of virtual environments, ... here, the basic / classic way using a command prompt will be explained.

  1. walk into your project's parent folder (the place, you have your projects)

    cd <PROJECT-FOLDER-PARENT>
  2. clone this project into a new local project folder. optionally, you might specify a project folder, otherwise it will be named according to the repository's name:

    git clone https://github.com/nnako/freeplane-packer.git [ <PROJECT-FOLDER-PATH> ]
  3. create a Python virtual environment locally (make sure Python > v3.4 is being used, here)

    # cd into project folder
    cd <PROJECT-FOLDER-PATH>
    
    # install virtual environment within project folder
    python -m venv
    
    # activate virtuel environment (e.g. on Windows os)
    venv\Scripts\activate
  4. install all necessary packages using pip

    # MIT
    pip install gooey
    pip install lxml
    
    # GPL v3
    pip install freeplane-io

all these licenses must be checked prior to selling this application to a customer. currently, only the internal usage of the application can be granted. outputs (this would be the created containers) might be created and sent and used by any customer, though.

usage

start the tool either by using the built-in (simple) graphical user interface wher you can click with your mouse to set the needed paths:

# walk into your project folder
cd <PROJECT-FOLDER-PATH>

# activate your virtual environment (make installed modules available)
venv\Scripts\activate

# start application's GUI to insert start parameters
python3 gui.py

or use command line interface to start the CLI function. if you leave the MMX path blank, there will be a MMX file created next to the source mindmap file:

python3 packer.py pack <PATH-TO-YOUR-MINDMAP> [ <PATH-TO-MMX-FILE> ]

features

finished

+ rudimentary graphical user interface to select source / target mindmaps
+ identification of all used file paths / links within the mindmap
+ localization of identified files within the file systems
+ copy / paste of these linked files into a temporary folder ("files" subfolder)
+ modification / adjustment of file paths within the mindmap (now relative)
+ copy / paste modified source mindmap into the temporary folder
+ zip file creation for the temporary folder

todo

! recursive handling of links within linked mindmaps

test

there is no test concept, yet. please feel free to contribute one :-) .

freeplane-packer-macmarrum's People

Contributors

nnako avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.