Skip to content

bjb28/planka-utility

Repository files navigation

Planka Import Utility

Docker Pulls GitHub Coverage Status Total alerts Language grade: Python

A python utility to import a structured JSON file into Planka

Functions

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.

Scripts

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.

Usage

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.txt

After the scripts have been installed, they can be run like any other script:

planka-import

Pull or build Docker image

Pull bjb28/planka-utility from the Docker repository:

docker pull bjb28/planka-utility

Or build planka-utility from source:

git clone https://github.com/bjb28/planka-utility.git
cd planka-utility
docker build --tag planka-utility .

Run scripts via Docker

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.

License

This is CC0 1.0 Universal

About

A python utility to import a structured JSON ino [Planka](https://planka.app/)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published