A python utility to import a structured JSON file into Planka
This utility is currently in the pre-Alpha stages with significant limitations. However, creating a new project with pre-defined boards, lists, cards, and tasks works. The functionality to load cards into a previously created project works as long as there are currently no cards in that specific list.
planka-import provides the following options:
--load- When provided a project name and JSON file, a new project is created and populated form the JSON.--new- When provided a project name and JSON file, a project will be updated to include the JSON file.--template- KNOWN BUG When provided a project name, a JSON file is produced to be used as a template for the other options.
The script in this project can be executed either in a local Python environment or in a Docker container.
To install the scripts in your local Python environment:
git clone https://github.com/bjb28/planka-utility.git
cd planka-utility
pip install --requirement requirements.txtAfter the scripts have been installed, they can be run like any other script:
planka-importPull bjb28/planka-utility from the Docker repository:
docker pull bjb28/planka-utilityOr build planka-utility from source:
git clone https://github.com/bjb28/planka-utility.git
cd planka-utility
docker build --tag planka-utility .The easiest way to use the containerized scripts is to alias them in your local shell:
eval "$(docker run planka-utility)"That will add aliases to your current shell for all of the
scripts mentioned above, plus an additional one for
planka-utility-bash, which can be used to start up a bash shell inside
a planka-utility container.
This is CC0 1.0 Universal