Skip to main content

Prefect integrations interacting with Monday

Project description

prefect-monday

PyPI

Welcome!

Prefect integrations interacting with monday.com.

The tasks within this collection were created by a code generator using the service's GraphQL schema.

Getting Started

Python setup

Requires an installation of Python 3.7+.

We recommend using a Python virtual environment manager such as pipenv, conda or virtualenv.

These tasks are designed to work with Prefect 2.0. For more information about how to use Prefect, please refer to the Prefect documentation.

Installation

Install prefect-monday with pip:

pip install prefect-monday

Then, register to view the block on Prefect Cloud:

prefect block register -m prefect_monday.credentials

Query personal account info

Note, to use the load method, you must already have a block document saved through code or saved through the UI.

from prefect import flow

from prefect_monday.credentials import MondayCredentials
from prefect_monday.me import query_me

@flow
def query_me_flow():
    monday_credentials = MondayCredentials.load("BLOCK_NAME")
    result = query_me(monday_credentials)
    return result

query_me_flow()

Query available boards

from prefect import flow

from prefect_monday.credentials import MondayCredentials
from prefect_monday.boards import query_boards

@flow
def query_boards_flow():
    monday_credentials = MondayCredentials.load("BLOCK_NAME")
    boards = query_boards(monday_credentials=monday_credentials)
    return boards

query_boards_flow()

Create new workspace

from prefect import flow

from prefect_monday.credentials import MondayCredentials
from prefect_monday.mutations import create_workspace
from prefect_monday.schemas import graphql_schema

@flow
def create_workspace_flow():
    monday_credentials = MondayCredentials.load("BLOCK_NAME")
    workspace = create_workspace(
        "integrations-test-workspace",
        graphql_schema.WorkspaceKind.open,
        monday_credentials=monday_credentials
    )
    return workspace

create_workspace_flow()

Resources

If you encounter any bugs while using prefect-monday, feel free to open an issue in the prefect-monday repository.

If you have any questions or issues while using prefect-monday, you can find help in either the Prefect Discourse forum or the Prefect Slack community.

Feel free to ⭐️ or watch prefect-monday for updates too!

Development

If you'd like to install a version of prefect-monday for development, clone the repository and perform an editable install with pip:

git clone https://github.com/PrefectHQ/prefect-monday.git

cd prefect-monday/

pip install -e ".[dev]"

# Install linting pre-commit hooks
pre-commit install

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

prefect-monday-0.2.2.tar.gz (60.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prefect_monday-0.2.2-py3-none-any.whl (76.2 kB view details)

Uploaded Python 3

File details

Details for the file prefect-monday-0.2.2.tar.gz.

File metadata

  • Download URL: prefect-monday-0.2.2.tar.gz
  • Upload date:
  • Size: 60.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for prefect-monday-0.2.2.tar.gz
Algorithm Hash digest
SHA256 9e70f0a80ad7dc3d2741e45622f87a28bb7faff65d781908c517e82278e61f3e
MD5 7aa8ac97ffc9adb91a476f2c1dbeffe6
BLAKE2b-256 eb3d65b5a29de10874998a215018517bdb2f92c06e829db4571cee8f9525eed5

See more details on using hashes here.

File details

Details for the file prefect_monday-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: prefect_monday-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 76.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for prefect_monday-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4d3139d1de7b5d7d5ea7dbacd9c4280270c88ba9be02b95220512aee163ef9ef
MD5 01564b62dd0af43a21bf42737d695ab9
BLAKE2b-256 279516dc234a9187b130cb922a148858951a3ce50d62c2bd20f9717c8c91b33d

See more details on using hashes here.

Supported by

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