/python-api-client

Python API Client for Kanboard

Primary LanguagePythonMIT LicenseMIT

Python API Client for Kanboard

https://travis-ci.org/kanboard/python-api-client.svg?branch=master

Minimalist Kanboard Python client.

  • Author: Frédéric Guillot
  • License: MIT

Installation

pip install kanboard

This library is compatible with Python 2.7, Python 3.4 and 3.5.

Examples

Methods and arguments are the same as the JSON-RPC procedures described in the official documentation.

Python methods are dynamically mapped to the API procedures. You must use named arguments.

Create a new team project

from kanboard import Kanboard

kb = Kanboard('http://localhost/jsonrpc.php', 'jsonrpc', 'your_api_token')
project_id = kb.create_project(name='My project')

Authenticate as user

from kanboard import Kanboard

kb = Kanboard('http://localhost/jsonrpc.php', 'admin', 'admin')
kb.get_my_projects()

Create a new task

from kanboard import Kanboard

kb = Kanboard('http://localhost/jsonrpc.php', 'jsonrpc', 'your_api_token')
project_id = kb.create_project(name='My project')
task_id = kb.create_task(project_id=project_id, title='My task title')

See the official API documentation for the complete list of methods and arguments.