New-card-with-Python3-and-REST-API.md 1.3 KB

Wekan provides a python script to ease the call of the REST API from command line interface.

Context

Install

You need python3.

Windows

choco install python3
# REBOOT
pip3 install pip --upgrade
pip3 install json
python3 wekan.py

Debian/Ubuntu

sudo apt-get -y install python3 python3-pip python3-simplejson
sudo pip3 install pip --upgrade
chmod +x wekan.py
./wekan.py

Usage

Copy the api.py script to you machine. Newest Wekan Python CLI api.py here.

Then, in this script, look for and change:

  • wekanurl: https://boards.example.com => Your Wekan URL
  • username (could be username or username@example.com)
  • Only works with password login admin user. Does not work with LDAP, OAuth2 etc.

Keep in mind your Wekan credentials are potentially accessible in this file.

Then call it without any argument to see if everything is all right. You should just get usage examples.