A Python SDK for interacting with Monday's GraphQL API.
Project description
monday-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.
Available Types
MondayApiResponse: Represents the full response from a Monday API query, including data and account information.Data: Holds the core data returned from the API, such as boards, items, and complexity details.Board: Represents a Monday board, including items, updates, and activity logs.Item: Represents an item on a board, including its details and associated subitems.Column,ColumnValue: Represents columns and their values for an item.Group: Represents a group within a board.User: Represents a user associated with an update or activity log.Update: Represents an update on an item.ActivityLog: Represents an activity log entry on a board.ItemsPage: Represents a paginated collection of items.
Example Usage
Here is an example of how to use these types with the SDK to deserialize API responses:
from monday_sdk import MondayClient
client = MondayClient(token="your_token")
items = client.boards.fetch_all_items_by_board_id(board_id="your_board_id")
first_item_name = items[0].name
print(f"First item name: {first_item_name}")
By using these types, you can ensure type safety and better code completion support in your IDE, making your work with the Monday API more efficient and error-free.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file monday_api_python_sdk-1.6.5.tar.gz.
File metadata
- Download URL: monday_api_python_sdk-1.6.5.tar.gz
- Upload date:
- Size: 26.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40226ad235b3449489053e865425c8a3337038833e7450caef7cbfcc91dccf85
|
|
| MD5 |
7af8d22010a0f32cf97483bfb25f3b8a
|
|
| BLAKE2b-256 |
d005c3fc87628511abddf6d7c8f3081a654fc9c9d46d698a7ec216b6071d2176
|
Provenance
The following attestation bundles were made for monday_api_python_sdk-1.6.5.tar.gz:
Publisher:
pypa-publish.yml on mondaycom/monday-api-python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
monday_api_python_sdk-1.6.5.tar.gz -
Subject digest:
40226ad235b3449489053e865425c8a3337038833e7450caef7cbfcc91dccf85 - Sigstore transparency entry: 902558925
- Sigstore integration time:
-
Permalink:
mondaycom/monday-api-python-sdk@1d88c9cc47b7a0acd008edafb978a4399775c69b -
Branch / Tag:
refs/tags/v1.6.5 - Owner: https://github.com/mondaycom
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypa-publish.yml@1d88c9cc47b7a0acd008edafb978a4399775c69b -
Trigger Event:
release
-
Statement type:
File details
Details for the file monday_api_python_sdk-1.6.5-py3-none-any.whl.
File metadata
- Download URL: monday_api_python_sdk-1.6.5-py3-none-any.whl
- Upload date:
- Size: 30.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29d726beb45b8e740af55ca851cfbbdb8070ec5bba8d0d755dfc4f2b4e66c58a
|
|
| MD5 |
ef71d1463a438b5fc2a2d4cc19765bd9
|
|
| BLAKE2b-256 |
8186564be1ea8ca235725ae0b43dfd0b0115012a676055b93c94362f3b6690ee
|
Provenance
The following attestation bundles were made for monday_api_python_sdk-1.6.5-py3-none-any.whl:
Publisher:
pypa-publish.yml on mondaycom/monday-api-python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
monday_api_python_sdk-1.6.5-py3-none-any.whl -
Subject digest:
29d726beb45b8e740af55ca851cfbbdb8070ec5bba8d0d755dfc4f2b4e66c58a - Sigstore transparency entry: 902558975
- Sigstore integration time:
-
Permalink:
mondaycom/monday-api-python-sdk@1d88c9cc47b7a0acd008edafb978a4399775c69b -
Branch / Tag:
refs/tags/v1.6.5 - Owner: https://github.com/mondaycom
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypa-publish.yml@1d88c9cc47b7a0acd008edafb978a4399775c69b -
Trigger Event:
release
-
Statement type: