Skip to main content

clickupython: A Python client for the ClickUp API

Project description

Documentation Status CodeFactor Build Status Coverage Status Code style:black

clickupython

A client for working with the ClickUp API V2. It can be used to interact with the ClickUp API in your projects.

There are two ways to authenticate with ClickUp API 2.0, with a personal token or creating an application and authenticating with an OAuth2 flow.

IMPORTANT - If you are creating an application for other's to use, it is highly recommended that you use the OAuth2 flow.

Documentation: Full documentation and examples can be found here: clickupython documentation

Instructions

1) Installing

pip install clickupython

2) Library Usage

Using clickupython in your application takes just a couple quick steps.

To use the client for a personal account context (no actions on behalf of another user)

from clickupython import ClickUpClient

API_KEY = 'YOUR API KEY'

client = ClickUpClient(API_KEY)

# Example request
c = client.ClickUpClient(API_KEY)
t = c.create_task("list_id", name="Test task", due_date="march 2 2021")

print(t.name)

For more examples, please refer to the Documentation

Current ClickUpClient Functions

Task

  • get_task(task_id)
  • get_tasks(list_id, archived, page, order_by, reverse, subtasks, statuses, include_closed, assignees, due_date_gt, due_date_lt, date_created_gt, date_created_lt, date_updated_gt, date_updated_lt)
  • create_task(list_id, name, description, priority, assignees, tags, status, due_date, start_date, notify_all)
  • update_task(task_id, name, description, status, priority, time_estimate, archived, add_assignees,remove_assignees

List

  • get_list(list_id)
  • get_lists(folder_id)
  • create_list(folder_id, name, content, due_date, priority, status)
  • create_folderless_list(space_id, name, content, due_date, priority, assignee, status)
  • update_list(list_id, name, content, due_date, due_date_time, priority, assignee, unset_status)
  • delete_list(list_id)
  • add_task_to_list(task_id, list_id)
  • remove_task_from_list(task_id, list_id)

Folder

  • get_folder(folder_id)
  • get_folders(space_id)
  • create_folder(space_id, name)
  • update_folder(folder_id, name)
  • delete_folder(folder_id)

Attachments

upload_attachment(task_id, file_path)

Comments

  • get_task_comments(task_id)
  • get_list_comments(list_id)
  • get_chat_comments(view_id)
  • update_comment(comment_id)
  • delete_comment(comment_id)
  • create_task_comment(task_id)

Teams

  • get_teams()

Checklists

  • create_checklist(task_id, name)
  • create_checklist_item(checklist_id, name, assignee)
  • delete_checklist_item(checklist_id, checklist_item_id)
  • update_checklist_item(checklist_id, checklist_item_id, name, resolved, parent)

Goals

  • create_goal(team_id, name, due_date, description, multiple_owners, owners, color)
  • update_goal(goal_id, name, due_date, description, rem_owners, add_owners, color)
  • delete_goal(goal_id)
  • get_goal(goal_id)
  • get_goals(team_id, include_completed)

Members

  • get_task_members(task_id)
  • get_list_members(list_id)

Tags

  • get_space_tags(space_id)
  • create_space_tag(space_id, name)
  • update_tag(space_id, name, new_name)
  • tag_task(task_id, tag_name)
  • untag_task(task_id, tag_name)

Spaces

  • create_space(team_id, name, features)
  • delete_space(space_id)
  • get_space(space_id)
  • get_spaces( team_id, archived)

Time Tracking

  • get_time_entries_in_range(team_id, start_date, end_date, assignees)
  • get_single_time_entry(team_id, timer_id)
  • start_timer(team_id, timer_id)
  • stop_timer(team_id)

Contact

Zach Johnson & Robert Mullis

Email: imzachjohnson@gmail.com, phoenix.scooter@gmail.com

Acknowledgements

License

Distributed under the GNU General Public License v3.0. See LICENSE for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clickupython-1.0.1.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

clickupython-1.0.1-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file clickupython-1.0.1.tar.gz.

File metadata

  • Download URL: clickupython-1.0.1.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for clickupython-1.0.1.tar.gz
Algorithm Hash digest
SHA256 514b0a81d40f4608280a358d067203fee6d7c4c1c2bd1c33b48184db8fc3fce0
MD5 adcb2a13b410c1d45e9113f1af3c489f
BLAKE2b-256 90fe5e376e7df49a4a861fc3438926b633f724965949f265a6e394192e45f459

See more details on using hashes here.

File details

Details for the file clickupython-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: clickupython-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for clickupython-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 832353af49e4a5ecbbda580834f1332720797e0ca8a1e02913d314d74e5c32bd
MD5 b91663262d062e2131e65722d19dfdfd
BLAKE2b-256 0d8d760845878e54e8e66aeb41cbe8c4664933792c7ea81b1b46497004f8b611

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page