A Python SDK for interacting with Monday's GraphQL API.
Maintained. Last release 4 months ago, commits in 2 of the last 26 weeks. Weaker on commit activity.
pip install monday-api-python-sdkmonday-api-python-sdk
A Python SDK for interacting with Monday"s GraphQL API.
Table of Contents
Installation
To install the SDK, use pip:
pip install monday-api-python-sdk
Authentication
To use the SDK, you need to authenticate with your Monday API token:
from monday_sdk import MondayClient, MondayApiResponse, Board
client = MondayClient(token="your_token")
Examples
Here are some examples of how to use the SDK:
Example 1: Create a new item
from monday_sdk import MondayClient
client = MondayClient(token="your_token")
column_values = {
"status_column_id": "In Progress", # Replace with your actual status column ID and value
"date_column_id": "2025-01-06", # Replace with your actual date column ID and date (YYYY-MM-DD format)
"text_column_id": "Important task" # Replace with your actual text column ID and value
}
item = client.items.create_item(
board_id="your_board_id",
group_id="your_group_id",
item_name="New Item",
column_values=column_values
)
print(item)
Example 2: Create an Update and Update Column Values
from monday_sdk import MondayClient, StatusColumnValue, DateColumnValue
client = MondayClient(token="your_token")
# Create an update for an item
update_response = client.updates.create_update(
item_id="your_item_id",
update_value="This is a new update message for the item."
)
# Change a status column value
status_response = client.items.change_status_column_value(
board_id="your_board_id",
item_id="your_item_id",
column_id="status_column_id", # Replace with the actual column ID
value="Done" # Replace with the desired status value
)
print(f"Status column updated: {status_response}")
# Change a date column value
date_response = client.items.change_date_column_value(
board_id="your_board_id",
item_id="your_item_id",
column_id="date_column_id",
timestamp="2025-01-06"
)
Response Types
The SDK provides structured types to help you work with API responses more effectively. These types allow you to easily access and manipulate the data returned by the API.